MetadataKeyValue Class

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

Implements

public final class MetadataKeyValue
implements JsonSerializable<MetadataKeyValue>

Describes a key-value pair for image metadata.

Method Summary

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

Reads an instance of MetadataKeyValue from the JsonReader.

String metadataKey()

Get the metadataKey property: The metadata key.

String metadataValue()

Get the metadataValue property: The metadata value.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static MetadataKeyValue fromJson(JsonReader jsonReader)

Reads an instance of MetadataKeyValue from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

metadataKey

public String metadataKey()

Get the metadataKey property: The metadata key. Known keys emitted by the service include 'Linux.AzureSecretsProvisioning.Enabled', 'OS.Name', and '{componentName}.Version' (e.g., 'AzureGuestAgent.Version'). All values are non-sensitive configuration; no secrets, credentials, or cryptographic material transit this field.

Returns:

the metadataKey value.

metadataValue

public String metadataValue()

Get the metadataValue property: The metadata value. Contains non-sensitive configuration such as capability flags ('true'/'false'), OS names ('Linux', 'Windows'), and version strings (e.g., '1.0.0').

Returns:

the metadataValue value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to