Class VolumeLicenseDetails

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

public final class VolumeLicenseDetails extends Object implements com.azure.json.JsonSerializable<VolumeLicenseDetails>
The VolumeLicenseDetails model.
  • Constructor Details

    • VolumeLicenseDetails

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

    • programYear

      public ProgramYear programYear()
      Get the programYear property: Describes the program year the volume license is for.
      Returns:
      the programYear value.
    • withProgramYear

      public VolumeLicenseDetails withProgramYear(ProgramYear programYear)
      Set the programYear property: Describes the program year the volume license is for.
      Parameters:
      programYear - the programYear value to set.
      Returns:
      the VolumeLicenseDetails object itself.
    • invoiceId

      public String invoiceId()
      Get the invoiceId property: The invoice id for the volume license.
      Returns:
      the invoiceId value.
    • withInvoiceId

      public VolumeLicenseDetails withInvoiceId(String invoiceId)
      Set the invoiceId property: The invoice id for the volume license.
      Parameters:
      invoiceId - the invoiceId value to set.
      Returns:
      the VolumeLicenseDetails 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<VolumeLicenseDetails>
      Throws:
      IOException
    • fromJson

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