OSVersionPropertiesBase Class

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

Implements

public final class OSVersionPropertiesBase
implements JsonSerializable<OSVersionPropertiesBase>

Configuration view of an OS version.

Constructor Summary

Constructor Description
OSVersionPropertiesBase()

Creates an instance of OSVersionPropertiesBase class.

Method Summary

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

Reads an instance of OSVersionPropertiesBase from the JsonReader.

Boolean isActive()

Get the isActive property: Specifies whether this OS version is active.

Boolean isDefault()

Get the isDefault property: Specifies whether this is the default OS version for its family.

String label()

Get the label property: The OS version label.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: The OS version.

Methods inherited from java.lang.Object

Constructor Details

OSVersionPropertiesBase

public OSVersionPropertiesBase()

Creates an instance of OSVersionPropertiesBase class.

Method Details

fromJson

public static OSVersionPropertiesBase fromJson(JsonReader jsonReader)

Reads an instance of OSVersionPropertiesBase from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isActive

public Boolean isActive()

Get the isActive property: Specifies whether this OS version is active.

Returns:

the isActive value.

isDefault

public Boolean isDefault()

Get the isDefault property: Specifies whether this is the default OS version for its family.

Returns:

the isDefault value.

label

public String label()

Get the label property: The OS version label.

Returns:

the label value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: The OS version.

Returns:

the version value.

Applies to