Class LabelOptions
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatch.model.LabelOptions
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<LabelOptions.Builder,LabelOptions>
@Generated("software.amazon.awssdk:codegen") public final class LabelOptions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LabelOptions.Builder,LabelOptions>
This structure includes the
Timezone
parameter, which you can use to specify your time zone so that the labels that are associated with returned metrics display the correct time for your time zone.The
Timezone
value affects a label only if you have a time-based dynamic expression in the label. For more information about dynamic expressions in labels, see Using Dynamic Labels.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LabelOptions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LabelOptions.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends LabelOptions.Builder>
serializableBuilderClass()
String
timezone()
The time zone to use for metric data return in this operation.LabelOptions.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
timezone
public final String timezone()
The time zone to use for metric data return in this operation. The format is
+
or-
followed by four digits. The first two digits indicate the number of hours ahead or behind of UTC, and the final two digits are the number of minutes. For example, +0130 indicates a time zone that is 1 hour and 30 minutes ahead of UTC. The default is +0000.- Returns:
- The time zone to use for metric data return in this operation. The format is
+
or-
followed by four digits. The first two digits indicate the number of hours ahead or behind of UTC, and the final two digits are the number of minutes. For example, +0130 indicates a time zone that is 1 hour and 30 minutes ahead of UTC. The default is +0000.
-
toBuilder
public LabelOptions.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<LabelOptions.Builder,LabelOptions>
-
builder
public static LabelOptions.Builder builder()
-
serializableBuilderClass
public static Class<? extends LabelOptions.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-