Class PlacementPolicyUpdate
- java.lang.Object
-
- com.azure.resourcemanager.avs.models.PlacementPolicyUpdate
-
public final class PlacementPolicyUpdate extends Object
An update of a DRS placement policy resource.
-
-
Constructor Summary
Constructors Constructor Description PlacementPolicyUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
hostMembers()
Get the hostMembers property: Host members list.PlacementPolicyState
state()
Get the state property: Whether the placement policy is enabled or disabled.void
validate()
Validates the instance.List<String>
vmMembers()
Get the vmMembers property: Virtual machine members list.PlacementPolicyUpdate
withHostMembers(List<String> hostMembers)
Set the hostMembers property: Host members list.PlacementPolicyUpdate
withState(PlacementPolicyState state)
Set the state property: Whether the placement policy is enabled or disabled.PlacementPolicyUpdate
withVmMembers(List<String> vmMembers)
Set the vmMembers property: Virtual machine members list.
-
-
-
Method Detail
-
state
public PlacementPolicyState state()
Get the state property: Whether the placement policy is enabled or disabled.- Returns:
- the state value.
-
withState
public PlacementPolicyUpdate withState(PlacementPolicyState state)
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
public List<String> vmMembers()
Get the vmMembers property: Virtual machine members list.- Returns:
- the vmMembers value.
-
withVmMembers
public PlacementPolicyUpdate withVmMembers(List<String> vmMembers)
Set the vmMembers property: Virtual machine members list.- Parameters:
vmMembers
- the vmMembers value to set.- Returns:
- the PlacementPolicyUpdate object itself.
-
hostMembers
public List<String> hostMembers()
Get the hostMembers property: Host members list.- Returns:
- the hostMembers value.
-
withHostMembers
public PlacementPolicyUpdate withHostMembers(List<String> hostMembers)
Set the hostMembers property: Host members list.- Parameters:
hostMembers
- the hostMembers value to set.- Returns:
- the PlacementPolicyUpdate object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-