Dimension Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. Dimension
- com.
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 Json |
String |
name()
Get the name property: Name of the dimension. |
Dimension |
operator()
Get the operator property: Operator for dimension values. |
Json |
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:
Returns:
Throws:
name
public String name()
Get the name property: Name of the dimension.
Returns:
operator
public DimensionOperator operator()
Get the operator property: Operator for dimension values.
Returns:
toJson
validate
public void validate()
Validates the instance.
values
public List
Get the values property: List of dimension values.
Returns:
withName
public Dimension withName(String name)
Set the name property: Name of the dimension.
Parameters:
Returns:
withOperator
public Dimension withOperator(DimensionOperator operator)
Set the operator property: Operator for dimension values.
Parameters:
Returns:
withValues
public Dimension withValues(List
Set the values property: List of dimension values.
Parameters:
Returns:
Applies to
Azure SDK for Java