@Generated(value="software.amazon.awssdk:codegen") public final class MetricInterval extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricInterval.Builder,MetricInterval>
The interval period with the start and end time for the metrics.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricInterval.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MetricInterval.Builder |
builder() |
Instant |
endTime()
The timestamp, in UNIX Epoch time format.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
IntervalPeriod |
interval()
The interval period provided in the API request.
|
String |
intervalAsString()
The interval period provided in the API request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricInterval.Builder> |
serializableBuilderClass() |
Instant |
startTime()
The timestamp, in UNIX Epoch time format.
|
MetricInterval.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final IntervalPeriod interval()
The interval period provided in the API request.
If the service returns an enum value that is not available in the current SDK version, interval will
return IntervalPeriod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
intervalAsString().
IntervalPeriodpublic final String intervalAsString()
The interval period provided in the API request.
If the service returns an enum value that is not available in the current SDK version, interval will
return IntervalPeriod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
intervalAsString().
IntervalPeriodpublic final Instant startTime()
The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
public final Instant endTime()
The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If
IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime
in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by
the 30 minutes period, with each StartTime and EndTime differing by 30 minutes.
IntervalPeriod is selected THIRTY_MIN, StartTime and
EndTime in the API request differs by 1 day, then 48 results are returned in the response.
Each result is aggregated by the 30 minutes period, with each StartTime and
EndTime differing by 30 minutes.public MetricInterval.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MetricInterval.Builder,MetricInterval>public static MetricInterval.Builder builder()
public static Class<? extends MetricInterval.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.