Class DedicatedHostProperties

java.lang.Object
com.azure.resourcemanager.compute.fluent.models.DedicatedHostProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<DedicatedHostProperties>

public final class DedicatedHostProperties extends Object implements com.azure.json.JsonSerializable<DedicatedHostProperties>
Properties of the dedicated host.
  • Constructor Details

    • DedicatedHostProperties

      public DedicatedHostProperties()
      Creates an instance of DedicatedHostProperties class.
  • Method Details

    • 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 DedicatedHostProperties 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 DedicatedHostProperties 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 DedicatedHostProperties 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 DedicatedHostProperties object itself.
    • 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.
    • 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. Possible values are: **None,** **Windows_Server_Hybrid,** **Windows_Server_Perpetual.** The default value is: **None.**.
      Returns:
      the licenseType value.
    • withLicenseType

      public DedicatedHostProperties 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 DedicatedHostProperties 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. 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DedicatedHostProperties>
      Throws:
      IOException
    • fromJson

      public static DedicatedHostProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DedicatedHostProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DedicatedHostProperties 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 DedicatedHostProperties.