Class MetricStreamEntry
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatch.model.MetricStreamEntry
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<MetricStreamEntry.Builder,MetricStreamEntry>
@Generated("software.amazon.awssdk:codegen") public final class MetricStreamEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricStreamEntry.Builder,MetricStreamEntry>
This structure contains the configuration information about one metric stream.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MetricStreamEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
arn()
The ARN of the metric stream.static MetricStreamEntry.Builder
builder()
Instant
creationDate()
The date that the metric stream was originally created.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
firehoseArn()
The ARN of the Kinesis Firehose devlivery stream that is used for this metric stream.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Instant
lastUpdateDate()
The date that the configuration of this metric stream was most recently updated.String
name()
The name of the metric stream.MetricStreamOutputFormat
outputFormat()
The output format of this metric stream.String
outputFormatAsString()
The output format of this metric stream.List<SdkField<?>>
sdkFields()
static Class<? extends MetricStreamEntry.Builder>
serializableBuilderClass()
String
state()
The current state of this stream.MetricStreamEntry.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
-
arn
public final String arn()
The ARN of the metric stream.
- Returns:
- The ARN of the metric stream.
-
creationDate
public final Instant creationDate()
The date that the metric stream was originally created.
- Returns:
- The date that the metric stream was originally created.
-
lastUpdateDate
public final Instant lastUpdateDate()
The date that the configuration of this metric stream was most recently updated.
- Returns:
- The date that the configuration of this metric stream was most recently updated.
-
name
public final String name()
The name of the metric stream.
- Returns:
- The name of the metric stream.
-
firehoseArn
public final String firehoseArn()
The ARN of the Kinesis Firehose devlivery stream that is used for this metric stream.
- Returns:
- The ARN of the Kinesis Firehose devlivery stream that is used for this metric stream.
-
state
public final String state()
The current state of this stream. Valid values are
running
andstopped
.- Returns:
- The current state of this stream. Valid values are
running
andstopped
.
-
outputFormat
public final MetricStreamOutputFormat outputFormat()
The output format of this metric stream. Valid values are
json
,opentelemetry1.0
, andopentelemetry0.7
.If the service returns an enum value that is not available in the current SDK version,
outputFormat
will returnMetricStreamOutputFormat.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromoutputFormatAsString()
.- Returns:
- The output format of this metric stream. Valid values are
json
,opentelemetry1.0
, andopentelemetry0.7
. - See Also:
MetricStreamOutputFormat
-
outputFormatAsString
public final String outputFormatAsString()
The output format of this metric stream. Valid values are
json
,opentelemetry1.0
, andopentelemetry0.7
.If the service returns an enum value that is not available in the current SDK version,
outputFormat
will returnMetricStreamOutputFormat.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromoutputFormatAsString()
.- Returns:
- The output format of this metric stream. Valid values are
json
,opentelemetry1.0
, andopentelemetry0.7
. - See Also:
MetricStreamOutputFormat
-
toBuilder
public MetricStreamEntry.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<MetricStreamEntry.Builder,MetricStreamEntry>
-
builder
public static MetricStreamEntry.Builder builder()
-
serializableBuilderClass
public static Class<? extends MetricStreamEntry.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.
-
-