DedicatedHostUpdate Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. UpdateResource - com.
azure. resourcemanager. compute. models. DedicatedHostUpdate
- com.
- com.
public final class DedicatedHostUpdate
extends UpdateResource
Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated.
Constructor | Description |
---|---|
Dedicated |
Creates an instance of Dedicated |
Modifier and Type | Method and Description |
---|---|
Boolean |
auto Get the auto |
static
Dedicated |
from Reads an instance of Dedicated |
String |
host Get the host |
Dedicated |
instance Get the instance |
Dedicated |
license Get the license |
Integer |
platform Get the platform |
String |
provisioning Get the provisioning |
Offset |
provisioning Get the provisioning |
Sku |
sku()
Get the sku property: [List all available dedicated host sizes for resizing] (https://docs. |
Offset |
time Get the time |
Json |
to |
void |
validate()
Validates the instance. |
List<Sub |
virtual Get the virtual |
Dedicated |
with Set the auto |
Dedicated |
with Set the license |
Dedicated |
with Set the platform |
Dedicated |
with Set the sku property: [List all available dedicated host sizes for resizing] (https://docs. |
Dedicated |
with Set the tags property: Resource tags. |
Methods inherited from UpdateResource
Methods inherited from java.lang.Object
DedicatedHostUpdate
public DedicatedHostUpdate()
Creates an instance of DedicatedHostUpdate class.
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:
fromJson
public static DedicatedHostUpdate fromJson(JsonReader jsonReader)
Reads an instance of DedicatedHostUpdate from the JsonReader.
Parameters:
Returns:
Throws:
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:
instanceView
public DedicatedHostInstanceView instanceView()
Get the instanceView property: The dedicated host instance view.
Returns:
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:
platformFaultDomain
public Integer platformFaultDomain()
Get the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state, which only appears in the response.
Returns:
provisioningTime
public OffsetDateTime provisioningTime()
Get the provisioningTime property: The date when the host was first provisioned.
Returns:
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:
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DedicatedHostUpdate.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
DedicatedHostUpdate.validate()virtualMachines
public List
Get the virtualMachines property: A list of references to all virtual machines in the Dedicated Host.
Returns:
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:
Returns:
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:
Returns:
withPlatformFaultDomain
public DedicatedHostUpdate withPlatformFaultDomain(Integer platformFaultDomain)
Set the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.
Parameters:
Returns:
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:
Returns:
withTags
public DedicatedHostUpdate withTags(Map
Set the tags property: Resource tags.
Overrides:
DedicatedHostUpdate.withTags(Map<String,String> tags)Parameters:
Azure SDK for Java-feedback
Azure SDK for Java is een open source project. Selecteer een koppeling om feedback te geven: