Partilhar via


PlatformAttribute Class

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

Implements

public final class PlatformAttribute
implements JsonSerializable<PlatformAttribute>

This is the platform attribute of the image version.

Constructor Summary

Constructor Description
PlatformAttribute()

Creates an instance of PlatformAttribute class.

Method Summary

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

Reads an instance of PlatformAttribute from the JsonReader.

String name()

Get the name property: This property specifies the name of the platformAttribute.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: This property specifies the value of the corresponding name property.

Methods inherited from java.lang.Object

Constructor Details

PlatformAttribute

public PlatformAttribute()

Creates an instance of PlatformAttribute class.

Method Details

fromJson

public static PlatformAttribute fromJson(JsonReader jsonReader)

Reads an instance of PlatformAttribute from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: This property specifies the name of the platformAttribute. It is read-only.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: This property specifies the value of the corresponding name property. It is read-only.

Returns:

the value value.

Applies to