Class MetricInterval
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.MetricInterval
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MetricInterval.Builder,MetricInterval>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetricInterval.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricInterval.Builderbuilder()InstantendTime()The timestamp, in UNIX Epoch time format.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntervalPeriodinterval()The interval period provided in the API request.StringintervalAsString()The interval period provided in the API request.List<SdkField<?>>sdkFields()static Class<? extends MetricInterval.Builder>serializableBuilderClass()InstantstartTime()The timestamp, in UNIX Epoch time format.MetricInterval.BuildertoBuilder()StringtoString()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
-
interval
public 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,
intervalwill returnIntervalPeriod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromintervalAsString().- Returns:
- The interval period provided in the API request.
- See Also:
IntervalPeriod
-
intervalAsString
public 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,
intervalwill returnIntervalPeriod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromintervalAsString().- Returns:
- The interval period provided in the API request.
- See Also:
IntervalPeriod
-
startTime
public final Instant startTime()
The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
- Returns:
- The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
-
endTime
public final Instant endTime()
The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If
IntervalPeriodis selectedTHIRTY_MIN,StartTimeandEndTimein 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 eachStartTimeandEndTimediffering by 30 minutes.- Returns:
- The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example,
If
IntervalPeriodis selectedTHIRTY_MIN,StartTimeandEndTimein 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 eachStartTimeandEndTimediffering by 30 minutes.
-
toBuilder
public MetricInterval.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MetricInterval.Builder,MetricInterval>
-
builder
public static MetricInterval.Builder builder()
-
serializableBuilderClass
public static Class<? extends MetricInterval.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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.
-
-