Class DedicatedHostGroupProperties
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.DedicatedHostGroupProperties
-
public final class DedicatedHostGroupProperties extends Object
Dedicated Host Group Properties.
-
-
Constructor Summary
Constructors Constructor Description DedicatedHostGroupProperties()
-
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.intplatformFaultDomainCount()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.DedicatedHostGroupPropertieswithPlatformFaultDomainCount(int platformFaultDomainCount)Set the platformFaultDomainCount property: Number of fault domains that the host group can span.DedicatedHostGroupPropertieswithSupportAutomaticPlacement(Boolean supportAutomaticPlacement)Set the supportAutomaticPlacement property: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group.
-
-
-
Method Detail
-
platformFaultDomainCount
public int platformFaultDomainCount()
Get the platformFaultDomainCount property: Number of fault domains that the host group can span.- Returns:
- the platformFaultDomainCount value.
-
withPlatformFaultDomainCount
public DedicatedHostGroupProperties withPlatformFaultDomainCount(int platformFaultDomainCount)
Set the platformFaultDomainCount property: Number of fault domains that the host group can span.- Parameters:
platformFaultDomainCount- the platformFaultDomainCount value to set.- Returns:
- the DedicatedHostGroupProperties 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 DedicatedHostGroupProperties 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 DedicatedHostGroupProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-