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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeLicenseDetailsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeLicenseDetails from the JsonReader.Get the invoiceId property: The invoice id for the volume license.Get the programYear property: Describes the program year the volume license is for.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withInvoiceId(String invoiceId) Set the invoiceId property: The invoice id for the volume license.withProgramYear(ProgramYear programYear) Set the programYear property: Describes the program year the volume license is for.Methods 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
-
VolumeLicenseDetails
public VolumeLicenseDetails()Creates an instance of VolumeLicenseDetails class.
-
-
Method Details
-
programYear
Get the programYear property: Describes the program year the volume license is for.- Returns:
- the programYear value.
-
withProgramYear
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
Get the invoiceId property: The invoice id for the volume license.- Returns:
- the invoiceId value.
-
withInvoiceId
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
- Specified by:
toJsonin interfacecom.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.
-