Partilhar via


Dimension Class

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

Implements

public final class Dimension
implements JsonSerializable<Dimension>

Dimension splitting and filtering definition.

Constructor Summary

Constructor Description
Dimension()

Creates an instance of Dimension class.

Method Summary

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

Reads an instance of Dimension from the JsonReader.

String name()

Get the name property: Name of the dimension.

DimensionOperator operator()

Get the operator property: Operator for dimension values.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<String> values()

Get the values property: List of dimension values.

Dimension withName(String name)

Set the name property: Name of the dimension.

Dimension withOperator(DimensionOperator operator)

Set the operator property: Operator for dimension values.

Dimension withValues(List<String> values)

Set the values property: List of dimension values.

Methods inherited from java.lang.Object

Constructor Details

Dimension

public Dimension()

Creates an instance of Dimension class.

Method Details

fromJson

public static Dimension fromJson(JsonReader jsonReader)

Reads an instance of Dimension from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Returns:

the name value.

operator

public DimensionOperator operator()

Get the operator property: Operator for dimension values.

Returns:

the operator value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

values

public List values()

Get the values property: List of dimension values.

Returns:

the values value.

withName

public Dimension withName(String name)

Set the name property: Name of the dimension.

Parameters:

name - the name value to set.

Returns:

the Dimension object itself.

withOperator

public Dimension withOperator(DimensionOperator operator)

Set the operator property: Operator for dimension values.

Parameters:

operator - the operator value to set.

Returns:

the Dimension object itself.

withValues

public Dimension withValues(List values)

Set the values property: List of dimension values.

Parameters:

values - the values value to set.

Returns:

the Dimension object itself.

Applies to