Partager via


MetadataValueInner Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.fluent.models.MetadataValueInner

Implements

public final class MetadataValueInner
implements JsonSerializable<MetadataValueInner>

Represents a metric metadata value.

Constructor Summary

Constructor Description
MetadataValueInner()

Creates an instance of MetadataValueInner class.

Method Summary

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

Reads an instance of MetadataValueInner from the JsonReader.

LocalizableStringInner name()

Get the name property: the name of the metadata.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: the value of the metadata.

MetadataValueInner withName(LocalizableStringInner name)

Set the name property: the name of the metadata.

MetadataValueInner withValue(String value)

Set the value property: the value of the metadata.

Methods inherited from java.lang.Object

Constructor Details

MetadataValueInner

public MetadataValueInner()

Creates an instance of MetadataValueInner class.

Method Details

fromJson

public static MetadataValueInner fromJson(JsonReader jsonReader)

Reads an instance of MetadataValueInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public LocalizableStringInner name()

Get the name property: the name of the metadata.

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: the value of the metadata.

Returns:

the value value.

withName

public MetadataValueInner withName(LocalizableStringInner name)

Set the name property: the name of the metadata.

Parameters:

name - the name value to set.

Returns:

the MetadataValueInner object itself.

withValue

public MetadataValueInner withValue(String value)

Set the value property: the value of the metadata.

Parameters:

value - the value value to set.

Returns:

the MetadataValueInner object itself.

Applies to