@Generated(value="software.amazon.awssdk:codegen") public final class TimePeriod extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TimePeriod.Builder,TimePeriod>
Sets the start date and end date for retrieving a cost estimate. The start date is inclusive, but the end date is
exclusive. For example, if start is 2017-01-01 and end is
2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including
2017-04-30 but not including 2017-05-01.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TimePeriod.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TimePeriod.Builder |
builder() |
Instant |
end()
The end of the time period.
|
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 TimePeriod.Builder> |
serializableBuilderClass() |
Instant |
start()
The beginning of the time period.
|
TimePeriod.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant start()
The beginning of the time period. The start date is inclusive. For example, if start is
2017-01-01, Lightsail for Research retrieves cost and usage data starting at 2017-01-01
up to the end date. The start date must be equal to or no later than the current date to avoid a validation
error.
start is
2017-01-01, Lightsail for Research retrieves cost and usage data starting at
2017-01-01 up to the end date. The start date must be equal to or no later than the current
date to avoid a validation error.public final Instant end()
The end of the time period. The end date is exclusive. For example, if end is
2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to, but not
including, 2017-05-01.
end is
2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to,
but not including, 2017-05-01.public TimePeriod.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TimePeriod.Builder,TimePeriod>public static TimePeriod.Builder builder()
public static Class<? extends TimePeriod.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.