Class LicenseDetails

java.lang.Object
com.azure.resourcemanager.hybridcompute.models.LicenseDetails
All Implemented Interfaces:
com.azure.json.JsonSerializable<LicenseDetails>

public final class LicenseDetails extends Object implements com.azure.json.JsonSerializable<LicenseDetails>
Describes the properties of a License.
  • Constructor Details

    • LicenseDetails

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

    • state

      public LicenseState state()
      Get the state property: Describes the state of the license.
      Returns:
      the state value.
    • withState

      public LicenseDetails withState(LicenseState state)
      Set the state property: Describes the state of the license.
      Parameters:
      state - the state value to set.
      Returns:
      the LicenseDetails object itself.
    • target

      public LicenseTarget target()
      Get the target property: Describes the license target server.
      Returns:
      the target value.
    • withTarget

      public LicenseDetails withTarget(LicenseTarget target)
      Set the target property: Describes the license target server.
      Parameters:
      target - the target value to set.
      Returns:
      the LicenseDetails object itself.
    • edition

      public LicenseEdition edition()
      Get the edition property: Describes the edition of the license. The values are either Standard or Datacenter.
      Returns:
      the edition value.
    • withEdition

      public LicenseDetails withEdition(LicenseEdition edition)
      Set the edition property: Describes the edition of the license. The values are either Standard or Datacenter.
      Parameters:
      edition - the edition value to set.
      Returns:
      the LicenseDetails object itself.
    • type

      public LicenseCoreType type()
      Get the type property: Describes the license core type (pCore or vCore).
      Returns:
      the type value.
    • withType

      public LicenseDetails withType(LicenseCoreType type)
      Set the type property: Describes the license core type (pCore or vCore).
      Parameters:
      type - the type value to set.
      Returns:
      the LicenseDetails object itself.
    • processors

      public Integer processors()
      Get the processors property: Describes the number of processors.
      Returns:
      the processors value.
    • withProcessors

      public LicenseDetails withProcessors(Integer processors)
      Set the processors property: Describes the number of processors.
      Parameters:
      processors - the processors value to set.
      Returns:
      the LicenseDetails object itself.
    • assignedLicenses

      public Integer assignedLicenses()
      Get the assignedLicenses property: Describes the number of assigned licenses.
      Returns:
      the assignedLicenses value.
    • immutableId

      public String immutableId()
      Get the immutableId property: Describes the immutable id.
      Returns:
      the immutableId value.
    • volumeLicenseDetails

      public List<VolumeLicenseDetails> volumeLicenseDetails()
      Get the volumeLicenseDetails property: A list of volume license details.
      Returns:
      the volumeLicenseDetails value.
    • withVolumeLicenseDetails

      public LicenseDetails withVolumeLicenseDetails(List<VolumeLicenseDetails> volumeLicenseDetails)
      Set the volumeLicenseDetails property: A list of volume license details.
      Parameters:
      volumeLicenseDetails - the volumeLicenseDetails value to set.
      Returns:
      the LicenseDetails object itself.
    • 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<LicenseDetails>
      Throws:
      IOException
    • fromJson

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