Class DedicatedHostInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.compute.fluent.models.DedicatedHostInner
-
public final class DedicatedHostInner extends com.azure.core.management.ResourceSpecifies information about the Dedicated host.
-
-
Constructor Summary
Constructors Constructor Description DedicatedHostInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanautoReplaceOnFailure()Get the autoReplaceOnFailure property: Specifies whether the dedicated host should be replaced automatically in case of a failure.StringhostId()Get the hostId property: A unique id generated and assigned to the dedicated host by the platform.DedicatedHostInstanceViewinstanceView()Get the instanceView property: The dedicated host instance view.DedicatedHostLicenseTypeslicenseType()Get the licenseType property: Specifies the software license type that will be applied to the VMs deployed on the dedicated host.IntegerplatformFaultDomain()Get the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.StringprovisioningState()Get the provisioningState property: The provisioning state, which only appears in the response.OffsetDateTimeprovisioningTime()Get the provisioningTime property: The date when the host was first provisioned.Skusku()Get the sku property: SKU of the dedicated host for Hardware Generation and VM family.OffsetDateTimetimeCreated()Get the timeCreated property: Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2021-11-01.voidvalidate()Validates the instance.List<SubResourceReadOnly>virtualMachines()Get the virtualMachines property: A list of references to all virtual machines in the Dedicated Host.DedicatedHostInnerwithAutoReplaceOnFailure(Boolean autoReplaceOnFailure)Set the autoReplaceOnFailure property: Specifies whether the dedicated host should be replaced automatically in case of a failure.DedicatedHostInnerwithLicenseType(DedicatedHostLicenseTypes licenseType)Set the licenseType property: Specifies the software license type that will be applied to the VMs deployed on the dedicated host.DedicatedHostInnerwithLocation(String location)DedicatedHostInnerwithPlatformFaultDomain(Integer platformFaultDomain)Set the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.DedicatedHostInnerwithSku(Sku sku)Set the sku property: SKU of the dedicated host for Hardware Generation and VM family.DedicatedHostInnerwithTags(Map<String,String> tags)
-
-
-
Method Detail
-
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.
-
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.
-
withLocation
public DedicatedHostInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public DedicatedHostInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
platformFaultDomain
public Integer platformFaultDomain()
Get the platformFaultDomain property: Fault domain of the dedicated host within a dedicated host group.- Returns:
- the platformFaultDomain value.
-
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.
-
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.
-
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.
-
hostId
public String hostId()
Get the hostId property: A unique id generated and assigned to the dedicated host by the platform. <br><br> Does not change throughout the lifetime of the host.- Returns:
- the hostId value.
-
virtualMachines
public List<SubResourceReadOnly> virtualMachines()
Get the virtualMachines property: A list of references to all virtual machines in the Dedicated Host.- Returns:
- the virtualMachines 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. <br><br> Possible values are: <br><br> **None** <br><br> **Windows_Server_Hybrid** <br><br> **Windows_Server_Perpetual** <br><br> Default: **None**.- Returns:
- the licenseType value.
-
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. <br><br> Possible values are: <br><br> **None** <br><br> **Windows_Server_Hybrid** <br><br> **Windows_Server_Perpetual** <br><br> Default: **None**.- Parameters:
licenseType- the licenseType value to set.- Returns:
- the DedicatedHostInner object itself.
-
provisioningTime
public OffsetDateTime provisioningTime()
Get the provisioningTime property: The date when the host was first provisioned.- Returns:
- the provisioningTime value.
-
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
instanceView
public DedicatedHostInstanceView instanceView()
Get the instanceView property: The dedicated host instance view.- Returns:
- the instanceView value.
-
timeCreated
public OffsetDateTime timeCreated()
Get the timeCreated property: Specifies the time at which the Dedicated Host resource was created.<br><br>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.
-
-