Class VmPlacementPolicyProperties

java.lang.Object
com.azure.resourcemanager.avs.models.PlacementPolicyProperties
com.azure.resourcemanager.avs.models.VmPlacementPolicyProperties

public final class VmPlacementPolicyProperties extends PlacementPolicyProperties
VM-VM placement policy properties.
  • Constructor Details

    • VmPlacementPolicyProperties

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

    • vmMembers

      public List<String> vmMembers()
      Get the vmMembers property: Virtual machine members list.
      Returns:
      the vmMembers value.
    • withVmMembers

      public VmPlacementPolicyProperties withVmMembers(List<String> vmMembers)
      Set the vmMembers property: Virtual machine members list.
      Parameters:
      vmMembers - the vmMembers value to set.
      Returns:
      the VmPlacementPolicyProperties object itself.
    • affinityType

      public AffinityType affinityType()
      Get the affinityType property: placement policy affinity type.
      Returns:
      the affinityType value.
    • withAffinityType

      public VmPlacementPolicyProperties withAffinityType(AffinityType affinityType)
      Set the affinityType property: placement policy affinity type.
      Parameters:
      affinityType - the affinityType value to set.
      Returns:
      the VmPlacementPolicyProperties object itself.
    • withState

      Set the state property: Whether the placement policy is enabled or disabled.
      Overrides:
      withState in class PlacementPolicyProperties
      Parameters:
      state - the state value to set.
      Returns:
      the PlacementPolicyProperties object itself.
    • withDisplayName

      public VmPlacementPolicyProperties withDisplayName(String displayName)
      Set the displayName property: Display name of the placement policy.
      Overrides:
      withDisplayName in class PlacementPolicyProperties
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the PlacementPolicyProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class PlacementPolicyProperties
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.