Class DedicatedHostInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.compute.fluent.models.DedicatedHostInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class DedicatedHostInner
extends com.azure.core.management.Resource
Specifies information about the Dedicated host.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the autoReplaceOnFailure property: Specifies whether the dedicated host should be replaced automatically in case of a failure.static DedicatedHostInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DedicatedHostInner from the JsonReader.hostId()Get the hostId property: A unique id generated and assigned to the dedicated host by the platform.id()Get the id property: Fully qualified resource Id for the resource.Get the instanceView property: The dedicated host instance view.Get the licenseType property: Specifies the software license type that will be applied to the VMs deployed on the dedicated host.name()Get the name property: The name of the resource.Get the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.Get the provisioningState property: The provisioning state, which only appears in the response.Get the provisioningTime property: The date when the host was first provisioned.sku()Get the sku property: SKU of the dedicated host for Hardware Generation and VM family.Get the timeCreated property: Specifies the time at which the Dedicated Host resource was created.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.Get the virtualMachines property: A list of references to all virtual machines in the Dedicated Host.withAutoReplaceOnFailure(Boolean autoReplaceOnFailure) Set the autoReplaceOnFailure property: Specifies whether the dedicated host should be replaced automatically in case of a failure.withLicenseType(DedicatedHostLicenseTypes licenseType) Set the licenseType property: Specifies the software license type that will be applied to the VMs deployed on the dedicated host.withLocation(String location) withPlatformFaultDomain(Integer platformFaultDomain) Set the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.Set the sku property: SKU of the dedicated host for Hardware Generation and VM family.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DedicatedHostInner
public DedicatedHostInner()Creates an instance of DedicatedHostInner class.
-
-
Method Details
-
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.
-
withSku
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.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
platformFaultDomain
Get the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.- Returns:
- the platformFaultDomain value.
-
withPlatformFaultDomain
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.
-
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.
-
withAutoReplaceOnFailure
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.
-
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.
-
virtualMachines
Get the virtualMachines property: A list of references to all virtual machines in the Dedicated Host.- Returns:
- the virtualMachines value.
-
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.
-
withLicenseType
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.
-
provisioningTime
Get the provisioningTime property: The date when the host was first provisioned.- Returns:
- the provisioningTime value.
-
provisioningState
Get the provisioningState property: The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
instanceView
Get the instanceView property: The dedicated host instance view.- Returns:
- the instanceView value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DedicatedHostInner.
-