Class PlacementPolicyProperties
- java.lang.Object
-
- com.azure.resourcemanager.avs.models.PlacementPolicyProperties
-
- Direct Known Subclasses:
VmHostPlacementPolicyProperties
,VmPlacementPolicyProperties
public class PlacementPolicyProperties extends Object
Abstract placement policy properties.
-
-
Constructor Summary
Constructors Constructor Description PlacementPolicyProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
displayName()
Get the displayName property: Display name of the placement policy.PlacementPolicyProvisioningState
provisioningState()
Get the provisioningState property: The provisioning state.PlacementPolicyState
state()
Get the state property: Whether the placement policy is enabled or disabled.void
validate()
Validates the instance.PlacementPolicyProperties
withDisplayName(String displayName)
Set the displayName property: Display name of the placement policy.PlacementPolicyProperties
withState(PlacementPolicyState state)
Set the state property: Whether the placement policy is enabled or disabled.
-
-
-
Method Detail
-
state
public PlacementPolicyState state()
Get the state property: Whether the placement policy is enabled or disabled.- Returns:
- the state value.
-
withState
public PlacementPolicyProperties withState(PlacementPolicyState state)
Set the state property: Whether the placement policy is enabled or disabled.- Parameters:
state
- the state value to set.- Returns:
- the PlacementPolicyProperties object itself.
-
displayName
public String displayName()
Get the displayName property: Display name of the placement policy.- Returns:
- the displayName value.
-
withDisplayName
public PlacementPolicyProperties withDisplayName(String displayName)
Set the displayName property: Display name of the placement policy.- Parameters:
displayName
- the displayName value to set.- Returns:
- the PlacementPolicyProperties object itself.
-
provisioningState
public PlacementPolicyProvisioningState provisioningState()
Get the provisioningState property: The provisioning state.- Returns:
- the provisioningState value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-