BaselineMetadata Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.BaselineMetadata

Implements

public final class BaselineMetadata
implements JsonSerializable<BaselineMetadata>

Represents a baseline metadata value.

Constructor Summary

Constructor Description
BaselineMetadata()

Creates an instance of BaselineMetadata class.

Method Summary

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

Reads an instance of BaselineMetadata from the JsonReader.

String name()

Get the name property: Name of the baseline metadata.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Value of the baseline metadata.

BaselineMetadata withName(String name)

Set the name property: Name of the baseline metadata.

BaselineMetadata withValue(String value)

Set the value property: Value of the baseline metadata.

Methods inherited from java.lang.Object

Constructor Details

BaselineMetadata

public BaselineMetadata()

Creates an instance of BaselineMetadata class.

Method Details

fromJson

public static BaselineMetadata fromJson(JsonReader jsonReader)

Reads an instance of BaselineMetadata from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of the baseline 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: Value of the baseline metadata.

Returns:

the value value.

withName

public BaselineMetadata withName(String name)

Set the name property: Name of the baseline metadata.

Parameters:

name - the name value to set.

Returns:

the BaselineMetadata object itself.

withValue

public BaselineMetadata withValue(String value)

Set the value property: Value of the baseline metadata.

Parameters:

value - the value value to set.

Returns:

the BaselineMetadata object itself.

Applies to