Lezen in het Engels

Delen via


DedicatedHostUpdate Class

public final class DedicatedHostUpdate
extends UpdateResource

Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated.

Constructor Summary

Constructor Description
DedicatedHostUpdate()

Creates an instance of DedicatedHostUpdate 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 DedicatedHostUpdate fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostUpdate from the JsonReader.

String hostId()

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

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.

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: [List all available dedicated host sizes for resizing] (https://docs.microsoft.com/rest/api/compute/dedicated-hosts/listavailablesizes).

OffsetDateTime timeCreated()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<SubResourceReadOnly> virtualMachines()

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

DedicatedHostUpdate withAutoReplaceOnFailure(Boolean autoReplaceOnFailure)

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

DedicatedHostUpdate withLicenseType(DedicatedHostLicenseTypes licenseType)

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

DedicatedHostUpdate withPlatformFaultDomain(Integer platformFaultDomain)

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

DedicatedHostUpdate withSku(Sku sku)

Set the sku property: [List all available dedicated host sizes for resizing] (https://docs.microsoft.com/rest/api/compute/dedicated-hosts/listavailablesizes).

DedicatedHostUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from UpdateResource

Methods inherited from java.lang.Object

Constructor Details

DedicatedHostUpdate

public DedicatedHostUpdate()

Creates an instance of DedicatedHostUpdate 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 DedicatedHostUpdate fromJson(JsonReader jsonReader)

Reads an instance of DedicatedHostUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DedicatedHostUpdate if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DedicatedHostUpdate.

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.

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.

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: [List all available dedicated host sizes for resizing] (https://docs.microsoft.com/rest/api/compute/dedicated-hosts/listavailablesizes). Resizing can be only used to scale up DedicatedHost. Only name is required to be set.

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:

DedicatedHostUpdate.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DedicatedHostUpdate.validate()

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 DedicatedHostUpdate 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 DedicatedHostUpdate object itself.

withLicenseType

public DedicatedHostUpdate 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 DedicatedHostUpdate object itself.

withPlatformFaultDomain

public DedicatedHostUpdate 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 DedicatedHostUpdate object itself.

withSku

public DedicatedHostUpdate withSku(Sku sku)

Set the sku property: [List all available dedicated host sizes for resizing] (https://docs.microsoft.com/rest/api/compute/dedicated-hosts/listavailablesizes). Resizing can be only used to scale up DedicatedHost. Only name is required to be set.

Parameters:

sku - the sku value to set.

Returns:

the DedicatedHostUpdate object itself.

withTags

public DedicatedHostUpdate withTags(Map tags)

Set the tags property: Resource tags.

Overrides:

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

Parameters:

tags

Applies to

Azure SDK for Java

Latest