Compartir a través de


OSVersionInner Class

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

Implements

public final class OSVersionInner
implements JsonSerializable<OSVersionInner>

Describes a cloud service OS version.

Constructor Summary

Constructor Description
OSVersionInner()

Creates an instance of OSVersionInner class.

Method Summary

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

Reads an instance of OSVersionInner 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.

OSVersionProperties properties()

Get the properties property: OS version properties.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

OSVersionInner withProperties(OSVersionProperties properties)

Set the properties property: OS version properties.

Methods inherited from java.lang.Object

Constructor Details

OSVersionInner

public OSVersionInner()

Creates an instance of OSVersionInner class.

Method Details

fromJson

public static OSVersionInner fromJson(JsonReader jsonReader)

Reads an instance of OSVersionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 OSVersionProperties properties()

Get the properties property: OS version 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 OSVersionInner withProperties(OSVersionProperties properties)

Set the properties property: OS version properties.

Parameters:

properties - the properties value to set.

Returns:

the OSVersionInner object itself.

Applies to