@Generated(value="software.amazon.awssdk:codegen") public class MetricDatapoint extends Object implements StructuredPojo, ToCopyableBuilder<MetricDatapoint.Builder,MetricDatapoint>
Describes the metric data point.
Modifier and Type | Class and Description |
---|---|
static interface |
MetricDatapoint.Builder |
Modifier and Type | Method and Description |
---|---|
Double |
average()
The average.
|
static MetricDatapoint.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Double |
maximum()
The maximum.
|
Double |
minimum()
The minimum.
|
Double |
sampleCount()
The sample count.
|
static Class<? extends MetricDatapoint.Builder> |
serializableBuilderClass() |
Double |
sum()
The sum.
|
Instant |
timestamp()
The timestamp (e.g.,
1479816991.349 ). |
MetricDatapoint.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
MetricUnit |
unit()
The unit.
|
String |
unitAsString()
The unit.
|
copy
public Double average()
The average.
public Double maximum()
The maximum.
public Double minimum()
The minimum.
public Double sampleCount()
The sample count.
public Double sum()
The sum.
public Instant timestamp()
The timestamp (e.g., 1479816991.349
).
1479816991.349
).public MetricUnit unit()
The unit.
If the service returns an enum value that is not available in the current SDK version, unit
will return
MetricUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
MetricUnit
public String unitAsString()
The unit.
If the service returns an enum value that is not available in the current SDK version, unit
will return
MetricUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
MetricUnit
public MetricDatapoint.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MetricDatapoint.Builder,MetricDatapoint>
public static MetricDatapoint.Builder builder()
public static Class<? extends MetricDatapoint.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.