Class DedicatedHostGroupInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.compute.fluent.models.DedicatedHostGroupInner
-
public final class DedicatedHostGroupInner extends com.azure.core.management.ResourceSpecifies information about the dedicated host group that the dedicated hosts should be assigned to. <br><br> 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 Summary
Constructors Constructor Description DedicatedHostGroupInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SubResourceReadOnly>hosts()Get the hosts property: A list of references to all dedicated hosts in the dedicated host group.DedicatedHostGroupInstanceViewinstanceView()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.IntegerplatformFaultDomainCount()Get the platformFaultDomainCount property: Number of fault domains that the host group can span.BooleansupportAutomaticPlacement()Get the supportAutomaticPlacement property: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group.voidvalidate()Validates the instance.DedicatedHostGroupInnerwithLocation(String location)DedicatedHostGroupInnerwithPlatformFaultDomainCount(Integer platformFaultDomainCount)Set the platformFaultDomainCount property: Number of fault domains that the host group can span.DedicatedHostGroupInnerwithSupportAutomaticPlacement(Boolean supportAutomaticPlacement)Set the supportAutomaticPlacement property: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group.DedicatedHostGroupInnerwithTags(Map<String,String> tags)DedicatedHostGroupInnerwithZones(List<String> zones)Set the zones property: Availability Zone to use for this host group.List<String>zones()Get the zones property: Availability Zone to use for this host group.
-
-
-
Method Detail
-
zones
public List<String> zones()
Get the zones property: Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone.- Returns:
- the zones value.
-
withZones
public DedicatedHostGroupInner withZones(List<String> zones)
Set the zones property: Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone.- Parameters:
zones- the zones value to set.- Returns:
- the DedicatedHostGroupInner object itself.
-
withLocation
public DedicatedHostGroupInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public DedicatedHostGroupInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.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. <br><br>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. <br><br>Minimum api-version: 2020-06-01.- Parameters:
supportAutomaticPlacement- the supportAutomaticPlacement value to set.- Returns:
- the DedicatedHostGroupInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-