DedicatedHostInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. compute. fluent. models. DedicatedHostInner
- com.
- com.
- com.
public final class DedicatedHostInner
extends Resource
Specifies information about the Dedicated host.
Constructor Summary
Constructor | Description |
---|---|
DedicatedHostInner() |
Creates an instance of Dedicated |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
autoReplaceOnFailure()
Get the auto |
static
Dedicated |
fromJson(JsonReader jsonReader)
Reads an instance of Dedicated |
String |
hostId()
Get the host |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Dedicated |
instanceView()
Get the instance |
Dedicated |
licenseType()
Get the license |
String |
name()
Get the name property: The name of the resource. |
Integer |
platformFaultDomain()
Get the platform |
String |
provisioningState()
Get the provisioning |
Offset |
provisioningTime()
Get the provisioning |
Sku |
sku()
Get the sku property: SKU of the dedicated host for Hardware Generation and VM family. |
Offset |
timeCreated()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
List<Sub |
virtualMachines()
Get the virtual |
Dedicated |
withAutoReplaceOnFailure(Boolean autoReplaceOnFailure)
Set the auto |
Dedicated |
withLicenseType(DedicatedHostLicenseTypes licenseType)
Set the license |
Dedicated |
withLocation(String location) |
Dedicated |
withPlatformFaultDomain(Integer platformFaultDomain)
Set the platform |
Dedicated |
withSku(Sku sku)
Set the sku property: SKU of the dedicated host for Hardware Generation and VM family. |
Dedicated |
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:
fromJson
public static DedicatedHostInner fromJson(JsonReader jsonReader)
Reads an instance of DedicatedHostInner 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:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
DedicatedHostInner.id()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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
DedicatedHostInner.name()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: 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:
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:
DedicatedHostInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
DedicatedHostInner.type()Returns:
validate
public void validate()
Validates the instance.
virtualMachines
public List
Get the virtualMachines property: A list of references to all virtual machines in the Dedicated Host.
Returns:
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:
Returns:
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:
Returns:
withLocation
public DedicatedHostInner withLocation(String location)
Overrides:
DedicatedHostInner.withLocation(String location)Parameters:
withPlatformFaultDomain
public DedicatedHostInner withPlatformFaultDomain(Integer platformFaultDomain)
Set the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.
Parameters:
Returns:
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:
Returns:
withTags
public DedicatedHostInner withTags(Map
Overrides:
DedicatedHostInner.withTags(Map<String,String> tags)Parameters: