Class VmHostPlacementPolicyProperties
- java.lang.Object
-
- com.azure.resourcemanager.avs.models.PlacementPolicyProperties
-
- com.azure.resourcemanager.avs.models.VmHostPlacementPolicyProperties
-
public final class VmHostPlacementPolicyProperties extends PlacementPolicyProperties
VM-Host placement policy properties.
-
-
Constructor Summary
Constructors Constructor Description VmHostPlacementPolicyProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AffinityType
affinityType()
Get the affinityType property: placement policy affinity type.List<String>
hostMembers()
Get the hostMembers property: Host members list.void
validate()
Validates the instance.List<String>
vmMembers()
Get the vmMembers property: Virtual machine members list.VmHostPlacementPolicyProperties
withAffinityType(AffinityType affinityType)
Set the affinityType property: placement policy affinity type.VmHostPlacementPolicyProperties
withDisplayName(String displayName)
Set the displayName property: Display name of the placement policy.VmHostPlacementPolicyProperties
withHostMembers(List<String> hostMembers)
Set the hostMembers property: Host members list.VmHostPlacementPolicyProperties
withState(PlacementPolicyState state)
Set the state property: Whether the placement policy is enabled or disabled.VmHostPlacementPolicyProperties
withVmMembers(List<String> vmMembers)
Set the vmMembers property: Virtual machine members list.-
Methods inherited from class com.azure.resourcemanager.avs.models.PlacementPolicyProperties
displayName, provisioningState, state
-
-
-
-
Method Detail
-
vmMembers
public List<String> vmMembers()
Get the vmMembers property: Virtual machine members list.- Returns:
- the vmMembers value.
-
withVmMembers
public VmHostPlacementPolicyProperties withVmMembers(List<String> vmMembers)
Set the vmMembers property: Virtual machine members list.- Parameters:
vmMembers
- the vmMembers value to set.- Returns:
- the VmHostPlacementPolicyProperties object itself.
-
hostMembers
public List<String> hostMembers()
Get the hostMembers property: Host members list.- Returns:
- the hostMembers value.
-
withHostMembers
public VmHostPlacementPolicyProperties withHostMembers(List<String> hostMembers)
Set the hostMembers property: Host members list.- Parameters:
hostMembers
- the hostMembers value to set.- Returns:
- the VmHostPlacementPolicyProperties object itself.
-
affinityType
public AffinityType affinityType()
Get the affinityType property: placement policy affinity type.- Returns:
- the affinityType value.
-
withAffinityType
public VmHostPlacementPolicyProperties withAffinityType(AffinityType affinityType)
Set the affinityType property: placement policy affinity type.- Parameters:
affinityType
- the affinityType value to set.- Returns:
- the VmHostPlacementPolicyProperties object itself.
-
withState
public VmHostPlacementPolicyProperties withState(PlacementPolicyState state)
Set the state property: Whether the placement policy is enabled or disabled.- Overrides:
withState
in classPlacementPolicyProperties
- Parameters:
state
- the state value to set.- Returns:
- the PlacementPolicyProperties object itself.
-
withDisplayName
public VmHostPlacementPolicyProperties withDisplayName(String displayName)
Set the displayName property: Display name of the placement policy.- Overrides:
withDisplayName
in classPlacementPolicyProperties
- Parameters:
displayName
- the displayName value to set.- Returns:
- the PlacementPolicyProperties object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classPlacementPolicyProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-