Class PlacementPolicyProperties
java.lang.Object
com.azure.resourcemanager.avs.models.PlacementPolicyProperties
- Direct Known Subclasses:
VmHostPlacementPolicyProperties
,VmPlacementPolicyProperties
Abstract placement policy properties.
-
Constructor Summary
ConstructorDescriptionCreates an instance of PlacementPolicyProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the displayName property: Display name of the placement policy.Get the provisioningState property: The provisioning state.state()
Get the state property: Whether the placement policy is enabled or disabled.void
validate()
Validates the instance.withDisplayName
(String displayName) Set the displayName property: Display name of the placement policy.withState
(PlacementPolicyState state) Set the state property: Whether the placement policy is enabled or disabled.
-
Constructor Details
-
PlacementPolicyProperties
public PlacementPolicyProperties()Creates an instance of PlacementPolicyProperties 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 PlacementPolicyProperties object itself.
-
displayName
Get the displayName property: Display name of the placement policy.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name of the placement policy.- Parameters:
displayName
- the displayName value to set.- Returns:
- the PlacementPolicyProperties object itself.
-
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.
-