OSFamilyProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.OSFamilyProperties

Implements

public final class OSFamilyProperties
implements JsonSerializable<OSFamilyProperties>

OS family properties.

Constructor Summary

Constructor Description
OSFamilyProperties()

Creates an instance of OSFamilyProperties class.

Method Summary

Modifier and Type Method and Description
static OSFamilyProperties fromJson(JsonReader jsonReader)

Reads an instance of OSFamilyProperties from the JsonReader.

String label()

Get the label property: The OS family label.

String name()

Get the name property: The OS family name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<OSVersionPropertiesBase> versions()

Get the versions property: List of OS versions belonging to this family.

Methods inherited from java.lang.Object

Constructor Details

OSFamilyProperties

public OSFamilyProperties()

Creates an instance of OSFamilyProperties class.

Method Details

fromJson

public static OSFamilyProperties fromJson(JsonReader jsonReader)

Reads an instance of OSFamilyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OSFamilyProperties 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 OSFamilyProperties.

label

public String label()

Get the label property: The OS family label.

Returns:

the label value.

name

public String name()

Get the name property: The OS family name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

versions

public List versions()

Get the versions property: List of OS versions belonging to this family.

Returns:

the versions value.

Applies to