@Generated(value="software.amazon.awssdk:codegen") public final class Dimension extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Dimension.Builder,Dimension>
A dimension is a name/value pair that is part of the identity of a metric. Because dimensions are part of the unique
identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new
variation of that metric. For example, many Amazon EC2 metrics publish InstanceId
as a dimension name,
and the actual instance ID as the value for that dimension.
You can assign up to 30 dimensions to a metric.
Modifier and Type | Class and Description |
---|---|
static interface |
Dimension.Builder |
Modifier and Type | Method and Description |
---|---|
static Dimension.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the dimension.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Dimension.Builder> |
serializableBuilderClass() |
Dimension.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
value()
The value of the dimension.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String name()
The name of the dimension. Dimension names must contain only ASCII characters, must include at least one
non-whitespace character, and cannot start with a colon (:
).
:
).public final String value()
The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character.
public Dimension.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Dimension.Builder,Dimension>
public static Dimension.Builder builder()
public static Class<? extends Dimension.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.