DedicatedHostGroupInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. compute. fluent. models. DedicatedHostGroupInner
- com.
- com.
- com.
public final class DedicatedHostGroupInner
extends 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 Summary
Constructor | Description |
---|---|
DedicatedHostGroupInner() |
Creates an instance of Dedicated |
Method Summary
Modifier and Type | Method and Description |
---|---|
Dedicated |
additionalCapabilities()
Get the additional |
static
Dedicated |
fromJson(JsonReader jsonReader)
Reads an instance of Dedicated |
List<Sub |
hosts()
Get the hosts property: A list of references to all dedicated hosts in the dedicated host group. |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Dedicated |
instanceView()
Get the instance |
String |
name()
Get the name property: The name of the resource. |
Integer |
platformFaultDomainCount()
Get the platform |
Boolean |
supportAutomaticPlacement()
Get the support |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Dedicated |
withAdditionalCapabilities(DedicatedHostGroupPropertiesAdditionalCapabilities additionalCapabilities)
Set the additional |
Dedicated |
withLocation(String location) |
Dedicated |
withPlatformFaultDomainCount(Integer platformFaultDomainCount)
Set the platform |
Dedicated |
withSupportAutomaticPlacement(Boolean supportAutomaticPlacement)
Set the support |
Dedicated |
withTags(Map<String,String> tags) |
Dedicated |
withZones(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. |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
DedicatedHostGroupInner
public DedicatedHostGroupInner()
Creates an instance of DedicatedHostGroupInner class.
Method Details
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:
fromJson
public static DedicatedHostGroupInner fromJson(JsonReader jsonReader)
Reads an instance of DedicatedHostGroupInner from the JsonReader.
Parameters:
Returns:
Throws:
hosts
public List
Get the hosts property: A list of references to all dedicated hosts in the dedicated host group.
Returns:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
DedicatedHostGroupInner.id()Returns:
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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
DedicatedHostGroupInner.name()Returns:
platformFaultDomainCount
public Integer platformFaultDomainCount()
Get the platformFaultDomainCount property: Number of fault domains that the host group can span.
Returns:
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DedicatedHostGroupInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
DedicatedHostGroupInner.type()Returns:
validate
public void validate()
Validates the instance.
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:
Returns:
withLocation
public DedicatedHostGroupInner withLocation(String location)
Overrides:
DedicatedHostGroupInner.withLocation(String location)Parameters:
withPlatformFaultDomainCount
public DedicatedHostGroupInner withPlatformFaultDomainCount(Integer platformFaultDomainCount)
Set the platformFaultDomainCount property: Number of fault domains that the host group can span.
Parameters:
Returns:
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:
Returns:
withTags
public DedicatedHostGroupInner withTags(Map
Overrides:
DedicatedHostGroupInner.withTags(Map<String,String> tags)Parameters:
withZones
public DedicatedHostGroupInner withZones(List
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:
Returns:
zones
public List
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:
Applies to
Azure SDK for Java