Partager via


DedicatedHostGroupInner Class

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 DedicatedHostGroupInner class.

Method Summary

Modifier and Type Method and Description
DedicatedHostGroupPropertiesAdditionalCapabilities additionalCapabilities()

Get the additionalCapabilities property: Enables or disables a capability on the dedicated host group.

static DedicatedHostGroupInner fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostGroupInner from the JsonReader.

List<SubResourceReadOnly> 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.

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.

String name()

Get the name property: The name of the resource.

Integer platformFaultDomainCount()

Get the platformFaultDomainCount property: Number of fault domains that the host group can span.

Boolean supportAutomaticPlacement()

Get the supportAutomaticPlacement property: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DedicatedHostGroupInner withAdditionalCapabilities(DedicatedHostGroupPropertiesAdditionalCapabilities additionalCapabilities)

Set the additionalCapabilities property: Enables or disables a capability on the dedicated host group.

DedicatedHostGroupInner withLocation(String location)
DedicatedHostGroupInner withPlatformFaultDomainCount(Integer platformFaultDomainCount)

Set the platformFaultDomainCount property: Number of fault domains that the host group can span.

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.

DedicatedHostGroupInner withTags(Map<String,String> tags)
DedicatedHostGroupInner 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:

the additionalCapabilities value.

fromJson

public static DedicatedHostGroupInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

hosts

public List hosts()

Get the hosts property: A list of references to all dedicated hosts in the dedicated host group.

Returns:

the hosts value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DedicatedHostGroupInner.id()

Returns:

the id 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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DedicatedHostGroupInner.name()

Returns:

the name value.

platformFaultDomainCount

public Integer platformFaultDomainCount()

Get the platformFaultDomainCount property: Number of fault domains that the host group can span.

Returns:

the platformFaultDomainCount 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DedicatedHostGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DedicatedHostGroupInner.type()

Returns:

the type value.

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:

additionalCapabilities - the additionalCapabilities value to set.

Returns:

the DedicatedHostGroupInner object itself.

withLocation

public DedicatedHostGroupInner withLocation(String location)

Overrides:

DedicatedHostGroupInner.withLocation(String location)

Parameters:

location

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.

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.

withTags

public DedicatedHostGroupInner withTags(Map tags)

Overrides:

DedicatedHostGroupInner.withTags(Map<String,String> tags)

Parameters:

tags

withZones

public DedicatedHostGroupInner withZones(List 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.

zones

public List 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.

Applies to