DedicatedHostInner Class

public final class DedicatedHostInner
extends Resource

Specifies information about the Dedicated host.

Constructor Summary

Constructor Description
DedicatedHostInner()

Creates an instance of DedicatedHostInner class.

Method Summary

Modifier and Type Method and Description
Boolean autoReplaceOnFailure()

Get the autoReplaceOnFailure property: Specifies whether the dedicated host should be replaced automatically in case of a failure.

static DedicatedHostInner fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostInner from the JsonReader.

String hostId()

Get the hostId property: A unique id generated and assigned to the dedicated host by the platform.

String id()

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

DedicatedHostInstanceView instanceView()

Get the instanceView property: The dedicated host instance view.

DedicatedHostLicenseTypes licenseType()

Get the licenseType property: Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

String name()

Get the name property: The name of the resource.

Integer platformFaultDomain()

Get the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.

String provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

OffsetDateTime provisioningTime()

Get the provisioningTime property: The date when the host was first provisioned.

Sku sku()

Get the sku property: SKU of the dedicated host for Hardware Generation and VM family.

OffsetDateTime timeCreated()

Get the timeCreated property: Specifies the time at which the Dedicated Host resource was created.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

List<SubResourceReadOnly> virtualMachines()

Get the virtualMachines property: A list of references to all virtual machines in the Dedicated Host.

DedicatedHostInner withAutoReplaceOnFailure(Boolean autoReplaceOnFailure)

Set the autoReplaceOnFailure property: Specifies whether the dedicated host should be replaced automatically in case of a failure.

DedicatedHostInner withLicenseType(DedicatedHostLicenseTypes licenseType)

Set the licenseType property: Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

DedicatedHostInner withLocation(String location)
DedicatedHostInner withPlatformFaultDomain(Integer platformFaultDomain)

Set the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.

DedicatedHostInner withSku(Sku sku)

Set the sku property: SKU of the dedicated host for Hardware Generation and VM family.

DedicatedHostInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DedicatedHostInner

public DedicatedHostInner()

Creates an instance of DedicatedHostInner class.

Method Details

autoReplaceOnFailure

public Boolean autoReplaceOnFailure()

Get the autoReplaceOnFailure property: Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided.

Returns:

the autoReplaceOnFailure value.

fromJson

public static DedicatedHostInner fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DedicatedHostInner 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.

hostId

public String hostId()

Get the hostId property: A unique id generated and assigned to the dedicated host by the platform. Does not change throughout the lifetime of the host.

Returns:

the hostId value.

id

public String id()

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

Overrides:

DedicatedHostInner.id()

Returns:

the id value.

instanceView

public DedicatedHostInstanceView instanceView()

Get the instanceView property: The dedicated host instance view.

Returns:

the instanceView value.

licenseType

public DedicatedHostLicenseTypes licenseType()

Get the licenseType property: Specifies the software license type that will be applied to the VMs deployed on the dedicated host. Possible values are: **None,** **Windows_Server_Hybrid,** **Windows_Server_Perpetual.** The default value is: **None.**.

Returns:

the licenseType value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DedicatedHostInner.name()

Returns:

the name value.

platformFaultDomain

public Integer platformFaultDomain()

Get the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.

Returns:

the platformFaultDomain value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

Returns:

the provisioningState value.

provisioningTime

public OffsetDateTime provisioningTime()

Get the provisioningTime property: The date when the host was first provisioned.

Returns:

the provisioningTime value.

sku

public Sku sku()

Get the sku property: SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values.

Returns:

the sku value.

timeCreated

public OffsetDateTime timeCreated()

Get the timeCreated property: Specifies the time at which the Dedicated Host resource was created. Minimum api-version: 2021-11-01.

Returns:

the timeCreated value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DedicatedHostInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DedicatedHostInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualMachines

public List virtualMachines()

Get the virtualMachines property: A list of references to all virtual machines in the Dedicated Host.

Returns:

the virtualMachines value.

withAutoReplaceOnFailure

public DedicatedHostInner withAutoReplaceOnFailure(Boolean autoReplaceOnFailure)

Set the autoReplaceOnFailure property: Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided.

Parameters:

autoReplaceOnFailure - the autoReplaceOnFailure value to set.

Returns:

the DedicatedHostInner object itself.

withLicenseType

public DedicatedHostInner withLicenseType(DedicatedHostLicenseTypes licenseType)

Set the licenseType property: Specifies the software license type that will be applied to the VMs deployed on the dedicated host. Possible values are: **None,** **Windows_Server_Hybrid,** **Windows_Server_Perpetual.** The default value is: **None.**.

Parameters:

licenseType - the licenseType value to set.

Returns:

the DedicatedHostInner object itself.

withLocation

public DedicatedHostInner withLocation(String location)

Overrides:

DedicatedHostInner.withLocation(String location)

Parameters:

location

withPlatformFaultDomain

public DedicatedHostInner withPlatformFaultDomain(Integer platformFaultDomain)

Set the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.

Parameters:

platformFaultDomain - the platformFaultDomain value to set.

Returns:

the DedicatedHostInner object itself.

withSku

public DedicatedHostInner withSku(Sku sku)

Set the sku property: SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values.

Parameters:

sku - the sku value to set.

Returns:

the DedicatedHostInner object itself.

withTags

public DedicatedHostInner withTags(Map tags)

Overrides:

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

Parameters:

tags

Applies to