Compartilhar via


MetricNamespaceName Class

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

Implements

public final class MetricNamespaceName
implements JsonSerializable<MetricNamespaceName>

The fully qualified metric namespace name.

Constructor Summary

Constructor Description
MetricNamespaceName()

Creates an instance of MetricNamespaceName class.

Method Summary

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

Reads an instance of MetricNamespaceName from the JsonReader.

String metricNamespaceName()

Get the metricNamespaceName property: The metric namespace name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MetricNamespaceName withMetricNamespaceName(String metricNamespaceName)

Set the metricNamespaceName property: The metric namespace name.

Methods inherited from java.lang.Object

Constructor Details

MetricNamespaceName

public MetricNamespaceName()

Creates an instance of MetricNamespaceName class.

Method Details

fromJson

public static MetricNamespaceName fromJson(JsonReader jsonReader)

Reads an instance of MetricNamespaceName from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

metricNamespaceName

public String metricNamespaceName()

Get the metricNamespaceName property: The metric namespace name.

Returns:

the metricNamespaceName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMetricNamespaceName

public MetricNamespaceName withMetricNamespaceName(String metricNamespaceName)

Set the metricNamespaceName property: The metric namespace name.

Parameters:

metricNamespaceName - the metricNamespaceName value to set.

Returns:

the MetricNamespaceName object itself.

Applies to