Interface TimePeriod.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TimePeriod.Builder,TimePeriod>,SdkBuilder<TimePeriod.Builder,TimePeriod>,SdkPojo
- Enclosing class:
- TimePeriod
public static interface TimePeriod.Builder extends SdkPojo, CopyableBuilder<TimePeriod.Builder,TimePeriod>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimePeriod.Builderend(Instant end)The end of the time period.TimePeriod.Builderstart(Instant start)The beginning of the time period.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
start
TimePeriod.Builder start(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.- Parameters:
start- The beginning of the time period. The start date is inclusive. For example, ifstartis2017-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:
- Returns a reference to this object so that method calls can be chained together.
-
end
TimePeriod.Builder end(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.- Parameters:
end- The end of the time period. The end date is exclusive. For example, ifendis2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to, but not including,2017-05-01.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-