MetadataValueInner Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. fluent. models. MetadataValueInner
- com.
Implements
public final class MetadataValueInner
implements JsonSerializable<MetadataValueInner>
Represents a metric metadata value.
Constructor Summary
Constructor | Description |
---|---|
MetadataValueInner() |
Creates an instance of Metadata |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Metadata |
fromJson(JsonReader jsonReader)
Reads an instance of Metadata |
Localizable |
name()
Get the name property: the name of the metadata. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: the value of the metadata. |
Metadata |
withName(LocalizableStringInner name)
Set the name property: the name of the metadata. |
Metadata |
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:
Returns:
Throws:
name
public LocalizableStringInner name()
Get the name property: the name of the metadata.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: the value of the metadata.
Returns:
withName
public MetadataValueInner withName(LocalizableStringInner name)
Set the name property: the name of the metadata.
Parameters:
Returns:
withValue
public MetadataValueInner withValue(String value)
Set the value property: the value of the metadata.
Parameters:
Returns:
Applies to
Azure SDK for Java