@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Dimension extends Object implements Serializable, Cloneable, StructuredPojo
The value to use in an Amazon CloudWatch custom metric dimension. This is used in the PublishMetrics
CustomAction. A CloudWatch custom metric dimension is a name/value pair that's part of the identity of a
metric.
AWS Network Firewall sets the dimension name to CustomAction
and you provide the dimension value.
For more information about CloudWatch custom metric dimensions, see Publishing Custom Metrics in the Amazon CloudWatch User Guide.
Constructor and Description |
---|
Dimension() |
Modifier and Type | Method and Description |
---|---|
Dimension |
clone() |
boolean |
equals(Object obj) |
String |
getValue()
The value to use in the custom metric dimension.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setValue(String value)
The value to use in the custom metric dimension.
|
String |
toString()
Returns a string representation of this object.
|
Dimension |
withValue(String value)
The value to use in the custom metric dimension.
|
public void setValue(String value)
The value to use in the custom metric dimension.
value
- The value to use in the custom metric dimension.public String getValue()
The value to use in the custom metric dimension.
public Dimension withValue(String value)
The value to use in the custom metric dimension.
value
- The value to use in the custom metric dimension.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.