Class TimePeriod
- java.lang.Object
-
- software.amazon.awssdk.services.lightsail.model.TimePeriod
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TimePeriod.Builder,TimePeriod>
@Generated("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
startis2017-01-01andendis2017-05-01, then the cost and usage data is retrieved from2017-01-01up to and including2017-04-30but not including2017-05-01.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTimePeriod.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimePeriod.Builderbuilder()Instantend()The end of the time period.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends TimePeriod.Builder>serializableBuilderClass()Instantstart()The beginning of the time period.TimePeriod.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
-
start
public final Instant start()
The beginning of the time period. The start date is inclusive. For example, if
startis2017-01-01, Lightsail for Research retrieves cost and usage data starting at2017-01-01up to the end date. The start date must be equal to or no later than the current date to avoid a validation error.- Returns:
- The beginning of the time period. The start date is inclusive. For example, if
startis2017-01-01, Lightsail for Research retrieves cost and usage data starting at2017-01-01up to the end date. The start date must be equal to or no later than the current date to avoid a validation error.
-
end
public final Instant end()
The end of the time period. The end date is exclusive. For example, if
endis2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to, but not including,2017-05-01.- Returns:
- The end of the time period. The end date is exclusive. For example, if
endis2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to, but not including,2017-05-01.
-
toBuilder
public TimePeriod.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TimePeriod.Builder,TimePeriod>
-
builder
public static TimePeriod.Builder builder()
-
serializableBuilderClass
public static Class<? extends TimePeriod.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.
-
-