Class PlacementPolicyUpdateProperties

java.lang.Object
com.azure.resourcemanager.avs.fluent.models.PlacementPolicyUpdateProperties

public final class PlacementPolicyUpdateProperties extends Object
The properties of a placement policy resource that may be updated.
  • Constructor Details

    • PlacementPolicyUpdateProperties

      public PlacementPolicyUpdateProperties()
      Creates an instance of PlacementPolicyUpdateProperties 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 PlacementPolicyUpdateProperties object itself.
    • vmMembers

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

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

      public List<String> hostMembers()
      Get the hostMembers property: Host members list.
      Returns:
      the hostMembers value.
    • withHostMembers

      public PlacementPolicyUpdateProperties withHostMembers(List<String> hostMembers)
      Set the hostMembers property: Host members list.
      Parameters:
      hostMembers - the hostMembers value to set.
      Returns:
      the PlacementPolicyUpdateProperties object itself.
    • affinityStrength

      public AffinityStrength affinityStrength()
      Get the affinityStrength property: vm-host placement policy affinity strength (should/must).
      Returns:
      the affinityStrength value.
    • withAffinityStrength

      public PlacementPolicyUpdateProperties withAffinityStrength(AffinityStrength affinityStrength)
      Set the affinityStrength property: vm-host placement policy affinity strength (should/must).
      Parameters:
      affinityStrength - the affinityStrength value to set.
      Returns:
      the PlacementPolicyUpdateProperties object itself.
    • azureHybridBenefitType

      public AzureHybridBenefitType azureHybridBenefitType()
      Get the azureHybridBenefitType property: placement policy azure hybrid benefit opt-in type.
      Returns:
      the azureHybridBenefitType value.
    • withAzureHybridBenefitType

      public PlacementPolicyUpdateProperties withAzureHybridBenefitType(AzureHybridBenefitType azureHybridBenefitType)
      Set the azureHybridBenefitType property: placement policy azure hybrid benefit opt-in type.
      Parameters:
      azureHybridBenefitType - the azureHybridBenefitType value to set.
      Returns:
      the PlacementPolicyUpdateProperties object itself.
    • validate

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