Class OSFamilyInner
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.OSFamilyInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OSFamilyInner>
public final class OSFamilyInner
extends Object
implements com.azure.json.JsonSerializable<OSFamilyInner>
Describes a cloud service OS family.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OSFamilyInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OSFamilyInner from the JsonReader.id()Get the id property: Resource Id.location()Get the location property: Resource location.name()Get the name property: Resource name.Get the properties property: OS family properties.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Resource type.voidvalidate()Validates the instance.withProperties(OSFamilyProperties properties) Set the properties property: OS family properties.Methods inherited from class 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
-
OSFamilyInner
public OSFamilyInner()Creates an instance of OSFamilyInner class.
-
-
Method Details
-
id
-
name
-
type
-
location
-
properties
Get the properties property: OS family properties.- Returns:
- the properties value.
-
withProperties
Set the properties property: OS family properties.- Parameters:
properties- the properties value to set.- Returns:
- the OSFamilyInner 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<OSFamilyInner>- Throws:
IOException
-
fromJson
Reads an instance of OSFamilyInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OSFamilyInner 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 OSFamilyInner.
-