Class DedicatedHostGroupInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.compute.fluent.models.DedicatedHostGroupInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class DedicatedHostGroupInner extends com.azure.core.management.Resource
Specifies information about the dedicated host group that the dedicated hosts should be assigned to. Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group.
  • Constructor Details

    • DedicatedHostGroupInner

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

    • zones

      public List<String> zones()
      Get the zones property: The availability zones.
      Returns:
      the zones value.
    • withZones

      public DedicatedHostGroupInner withZones(List<String> zones)
      Set the zones property: The availability zones.
      Parameters:
      zones - the zones value to set.
      Returns:
      the DedicatedHostGroupInner object itself.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Returns:
      the systemData value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • withLocation

      public DedicatedHostGroupInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public DedicatedHostGroupInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • platformFaultDomainCount

      public Integer platformFaultDomainCount()
      Get the platformFaultDomainCount property: Number of fault domains that the host group can span.
      Returns:
      the platformFaultDomainCount value.
    • withPlatformFaultDomainCount

      public DedicatedHostGroupInner withPlatformFaultDomainCount(Integer platformFaultDomainCount)
      Set the platformFaultDomainCount property: Number of fault domains that the host group can span.
      Parameters:
      platformFaultDomainCount - the platformFaultDomainCount value to set.
      Returns:
      the DedicatedHostGroupInner object itself.
    • hosts

      public List<SubResourceReadOnly> hosts()
      Get the hosts property: A list of references to all dedicated hosts in the dedicated host group.
      Returns:
      the hosts value.
    • instanceView

      public DedicatedHostGroupInstanceView instanceView()
      Get the instanceView property: The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group.
      Returns:
      the instanceView value.
    • supportAutomaticPlacement

      public Boolean supportAutomaticPlacement()
      Get the supportAutomaticPlacement property: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. Minimum api-version: 2020-06-01.
      Returns:
      the supportAutomaticPlacement value.
    • withSupportAutomaticPlacement

      public DedicatedHostGroupInner withSupportAutomaticPlacement(Boolean supportAutomaticPlacement)
      Set the supportAutomaticPlacement property: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. Minimum api-version: 2020-06-01.
      Parameters:
      supportAutomaticPlacement - the supportAutomaticPlacement value to set.
      Returns:
      the DedicatedHostGroupInner object itself.
    • additionalCapabilities

      public DedicatedHostGroupPropertiesAdditionalCapabilities additionalCapabilities()
      Get the additionalCapabilities property: Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01.
      Returns:
      the additionalCapabilities value.
    • withAdditionalCapabilities

      public DedicatedHostGroupInner withAdditionalCapabilities(DedicatedHostGroupPropertiesAdditionalCapabilities additionalCapabilities)
      Set the additionalCapabilities property: Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01.
      Parameters:
      additionalCapabilities - the additionalCapabilities value to set.
      Returns:
      the DedicatedHostGroupInner object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.Resource
      Throws:
      IOException
    • fromJson

      public static DedicatedHostGroupInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DedicatedHostGroupInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DedicatedHostGroupInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the DedicatedHostGroupInner.