ExtensionFeatureTag Class

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

Implements

public final class ExtensionFeatureTag
implements JsonSerializable<ExtensionFeatureTag>

Represents a key-value pair for extension feature metadata.

Method Summary

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

Reads an instance of ExtensionFeatureTag from the JsonReader.

String key()

Get the key property: The key of the feature tag.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: The value of the feature tag.

Methods inherited from java.lang.Object

Method Details

fromJson

public static ExtensionFeatureTag fromJson(JsonReader jsonReader)

Reads an instance of ExtensionFeatureTag from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ExtensionFeatureTag if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

key

public String key()

Get the key property: The key of the feature tag.

Returns:

the key 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: The value of the feature tag.

Returns:

the value value.

Applies to