VirtualMachinePlacementHint Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. VirtualMachinePlacementHint
- com.
Implements
public final class VirtualMachinePlacementHint
implements JsonSerializable<VirtualMachinePlacementHint>
VirtualMachinePlacementHint represents a single scheduling hint of the virtual machine.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualMachinePlacementHint() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
|
Virtual |
hintType()
Get the hint |
| String |
resourceId()
Get the resource |
|
Virtual |
schedulingExecution()
Get the scheduling |
|
Virtual |
scope()
Get the scope property: The scope for the virtual machine affinity or anti-affinity placement hint. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Virtual |
withHintType(VirtualMachinePlacementHintType hintType)
Set the hint |
|
Virtual |
withResourceId(String resourceId)
Set the resource |
|
Virtual |
withSchedulingExecution(VirtualMachineSchedulingExecution schedulingExecution)
Set the scheduling |
|
Virtual |
withScope(VirtualMachinePlacementHintPodAffinityScope scope)
Set the scope property: The scope for the virtual machine affinity or anti-affinity placement hint. |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachinePlacementHint
public VirtualMachinePlacementHint()
Creates an instance of VirtualMachinePlacementHint class.
Method Details
fromJson
public static VirtualMachinePlacementHint fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachinePlacementHint from the JsonReader.
Parameters:
Returns:
Throws:
hintType
public VirtualMachinePlacementHintType hintType()
Get the hintType property: The specification of whether this hint supports affinity or anti-affinity with the referenced resources.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The resource ID of the target object that the placement hints will be checked against, e.g., the bare metal node to host the virtual machine.
Returns:
schedulingExecution
public VirtualMachineSchedulingExecution schedulingExecution()
Get the schedulingExecution property: The indicator of whether the hint is a hard or soft requirement during scheduling.
Returns:
scope
public VirtualMachinePlacementHintPodAffinityScope scope()
Get the scope property: The scope for the virtual machine affinity or anti-affinity placement hint. It should always be "Machine" in the case of node affinity.
Returns:
toJson
validate
public void validate()
Validates the instance.
withHintType
public VirtualMachinePlacementHint withHintType(VirtualMachinePlacementHintType hintType)
Set the hintType property: The specification of whether this hint supports affinity or anti-affinity with the referenced resources.
Parameters:
Returns:
withResourceId
public VirtualMachinePlacementHint withResourceId(String resourceId)
Set the resourceId property: The resource ID of the target object that the placement hints will be checked against, e.g., the bare metal node to host the virtual machine.
Parameters:
Returns:
withSchedulingExecution
public VirtualMachinePlacementHint withSchedulingExecution(VirtualMachineSchedulingExecution schedulingExecution)
Set the schedulingExecution property: The indicator of whether the hint is a hard or soft requirement during scheduling.
Parameters:
Returns:
withScope
public VirtualMachinePlacementHint withScope(VirtualMachinePlacementHintPodAffinityScope scope)
Set the scope property: The scope for the virtual machine affinity or anti-affinity placement hint. It should always be "Machine" in the case of node affinity.
Parameters:
Returns: