Partager via


MetricNamespaceInner Class

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

Implements

public final class MetricNamespaceInner
implements JsonSerializable<MetricNamespaceInner>

Metric namespace class specifies the metadata for a metric namespace.

Constructor Summary

Constructor Description
MetricNamespaceInner()

Creates an instance of MetricNamespaceInner class.

Method Summary

Modifier and Type Method and Description
NamespaceClassification classification()

Get the classification property: Kind of namespace.

static MetricNamespaceInner fromJson(JsonReader jsonReader)

Reads an instance of MetricNamespaceInner from the JsonReader.

String id()

Get the id property: The ID of the metric namespace.

String name()

Get the name property: The escaped name of the namespace.

MetricNamespaceName properties()

Get the properties property: Properties which include the fully qualified namespace name.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the namespace.

void validate()

Validates the instance.

MetricNamespaceInner withClassification(NamespaceClassification classification)

Set the classification property: Kind of namespace.

MetricNamespaceInner withId(String id)

Set the id property: The ID of the metric namespace.

MetricNamespaceInner withName(String name)

Set the name property: The escaped name of the namespace.

MetricNamespaceInner withProperties(MetricNamespaceName properties)

Set the properties property: Properties which include the fully qualified namespace name.

MetricNamespaceInner withType(String type)

Set the type property: The type of the namespace.

Methods inherited from java.lang.Object

Constructor Details

MetricNamespaceInner

public MetricNamespaceInner()

Creates an instance of MetricNamespaceInner class.

Method Details

classification

public NamespaceClassification classification()

Get the classification property: Kind of namespace.

Returns:

the classification value.

fromJson

public static MetricNamespaceInner fromJson(JsonReader jsonReader)

Reads an instance of MetricNamespaceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The ID of the metric namespace.

Returns:

the id value.

name

public String name()

Get the name property: The escaped name of the namespace.

Returns:

the name value.

properties

public MetricNamespaceName properties()

Get the properties property: Properties which include the fully qualified namespace name.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the namespace.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withClassification

public MetricNamespaceInner withClassification(NamespaceClassification classification)

Set the classification property: Kind of namespace.

Parameters:

classification - the classification value to set.

Returns:

the MetricNamespaceInner object itself.

withId

public MetricNamespaceInner withId(String id)

Set the id property: The ID of the metric namespace.

Parameters:

id - the id value to set.

Returns:

the MetricNamespaceInner object itself.

withName

public MetricNamespaceInner withName(String name)

Set the name property: The escaped name of the namespace.

Parameters:

name - the name value to set.

Returns:

the MetricNamespaceInner object itself.

withProperties

public MetricNamespaceInner withProperties(MetricNamespaceName properties)

Set the properties property: Properties which include the fully qualified namespace name.

Parameters:

properties - the properties value to set.

Returns:

the MetricNamespaceInner object itself.

withType

public MetricNamespaceInner withType(String type)

Set the type property: The type of the namespace.

Parameters:

type - the type value to set.

Returns:

the MetricNamespaceInner object itself.

Applies to