OSFamilyInner Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.fluent.models.OSFamilyInner

Implements

public final class OSFamilyInner
implements JsonSerializable<OSFamilyInner>

Describes a cloud service OS family.

Constructor Summary

Constructor Description
OSFamilyInner()

Creates an instance of OSFamilyInner class.

Method Summary

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

Reads an instance of OSFamilyInner from the JsonReader.

String id()

Get the id property: Resource Id.

String location()

Get the location property: Resource location.

String name()

Get the name property: Resource name.

OSFamilyProperties properties()

Get the properties property: OS family properties.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

OSFamilyInner withProperties(OSFamilyProperties properties)

Set the properties property: OS family properties.

Methods inherited from java.lang.Object

Constructor Details

OSFamilyInner

public OSFamilyInner()

Creates an instance of OSFamilyInner class.

Method Details

fromJson

public static OSFamilyInner fromJson(JsonReader jsonReader)

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.

id

public String id()

Get the id property: Resource Id.

Returns:

the id value.

location

public String location()

Get the location property: Resource location.

Returns:

the location value.

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

properties

public OSFamilyProperties properties()

Get the properties property: OS family properties.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withProperties

public OSFamilyInner withProperties(OSFamilyProperties properties)

Set the properties property: OS family properties.

Parameters:

properties - the properties value to set.

Returns:

the OSFamilyInner object itself.

Applies to