Class OSVersionProperties
java.lang.Object
com.azure.resourcemanager.compute.models.OSVersionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OSVersionProperties>
public final class OSVersionProperties
extends Object
implements com.azure.json.JsonSerializable<OSVersionProperties>
OS version properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfamily()Get the family property: The family of this OS version.Get the familyLabel property: The family label of this OS version.static OSVersionPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OSVersionProperties from the JsonReader.isActive()Get the isActive property: Specifies whether this OS version is active.Get the isDefault property: Specifies whether this is the default OS version for its family.label()Get the label property: The OS version label.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: The OS version.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
-
OSVersionProperties
public OSVersionProperties()Creates an instance of OSVersionProperties class.
-
-
Method Details
-
family
Get the family property: The family of this OS version.- Returns:
- the family value.
-
familyLabel
Get the familyLabel property: The family label of this OS version.- Returns:
- the familyLabel value.
-
version
Get the version property: The OS version.- Returns:
- the version value.
-
label
Get the label property: The OS version label.- Returns:
- the label value.
-
isDefault
Get the isDefault property: Specifies whether this is the default OS version for its family.- Returns:
- the isDefault value.
-
isActive
Get the isActive property: Specifies whether this OS version is active.- Returns:
- the isActive value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OSVersionProperties>- Throws:
IOException
-
fromJson
Reads an instance of OSVersionProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OSVersionProperties 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 OSVersionProperties.
-