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 Details

    • PlacementPolicyProperties

      public PlacementPolicyProperties()
      Creates an instance of PlacementPolicyProperties class.
  • Method Details

    • state

      public PlacementPolicyState 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

      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.