Class PlacementPolicyUpdate
java.lang.Object
com.azure.resourcemanager.avs.models.PlacementPolicyUpdate
An update of a DRS placement policy resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the affinityStrength property: vm-host placement policy affinity strength (should/must).Get the azureHybridBenefitType property: placement policy azure hybrid benefit opt-in type.Get the hostMembers property: Host members list.state()
Get the state property: Whether the placement policy is enabled or disabled.void
validate()
Validates the instance.Get the vmMembers property: Virtual machine members list.withAffinityStrength
(AffinityStrength affinityStrength) Set the affinityStrength property: vm-host placement policy affinity strength (should/must).withAzureHybridBenefitType
(AzureHybridBenefitType azureHybridBenefitType) Set the azureHybridBenefitType property: placement policy azure hybrid benefit opt-in type.withHostMembers
(List<String> hostMembers) Set the hostMembers property: Host members list.withState
(PlacementPolicyState state) Set the state property: Whether the placement policy is enabled or disabled.withVmMembers
(List<String> vmMembers) Set the vmMembers property: Virtual machine members list.
-
Constructor Details
-
PlacementPolicyUpdate
public PlacementPolicyUpdate()Creates an instance of PlacementPolicyUpdate class.
-
-
Method Details
-
state
Get the state property: Whether the placement policy is enabled or disabled.- Returns:
- the state value.
-
withState
Set the state property: Whether the placement policy is enabled or disabled.- Parameters:
state
- the state value to set.- Returns:
- the PlacementPolicyUpdate object itself.
-
vmMembers
Get the vmMembers property: Virtual machine members list.- Returns:
- the vmMembers value.
-
withVmMembers
Set the vmMembers property: Virtual machine members list.- Parameters:
vmMembers
- the vmMembers value to set.- Returns:
- the PlacementPolicyUpdate object itself.
-
hostMembers
Get the hostMembers property: Host members list.- Returns:
- the hostMembers value.
-
withHostMembers
Set the hostMembers property: Host members list.- Parameters:
hostMembers
- the hostMembers value to set.- Returns:
- the PlacementPolicyUpdate object itself.
-
affinityStrength
Get the affinityStrength property: vm-host placement policy affinity strength (should/must).- Returns:
- the affinityStrength value.
-
withAffinityStrength
Set the affinityStrength property: vm-host placement policy affinity strength (should/must).- Parameters:
affinityStrength
- the affinityStrength value to set.- Returns:
- the PlacementPolicyUpdate object itself.
-
azureHybridBenefitType
Get the azureHybridBenefitType property: placement policy azure hybrid benefit opt-in type.- Returns:
- the azureHybridBenefitType value.
-
withAzureHybridBenefitType
public PlacementPolicyUpdate withAzureHybridBenefitType(AzureHybridBenefitType azureHybridBenefitType) Set the azureHybridBenefitType property: placement policy azure hybrid benefit opt-in type.- Parameters:
azureHybridBenefitType
- the azureHybridBenefitType value to set.- Returns:
- the PlacementPolicyUpdate object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-