Interface CalendarInterval.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CalendarInterval.Builder,
,CalendarInterval> SdkBuilder<CalendarInterval.Builder,
,CalendarInterval> SdkPojo
- Enclosing class:
CalendarInterval
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the duration of each calendar interval.durationUnit
(String durationUnit) Specifies the calendar interval unit.durationUnit
(DurationUnit durationUnit) Specifies the calendar interval unit.The date and time when you want the first interval to start.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, sdkFieldNameToField, sdkFields
-
Method Details
-
startTime
The date and time when you want the first interval to start. Be sure to choose a time that configures the intervals the way that you want. For example, if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time that is a Monday at 6 a.m.
When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example:
1698778057
As soon as one calendar interval ends, another automatically begins.
- Parameters:
startTime
- The date and time when you want the first interval to start. Be sure to choose a time that configures the intervals the way that you want. For example, if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time that is a Monday at 6 a.m.When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example:
1698778057
As soon as one calendar interval ends, another automatically begins.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationUnit
Specifies the calendar interval unit.
- Parameters:
durationUnit
- Specifies the calendar interval unit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
durationUnit
Specifies the calendar interval unit.
- Parameters:
durationUnit
- Specifies the calendar interval unit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
duration
Specifies the duration of each calendar interval. For example, if
Duration
is1
andDurationUnit
isMONTH
, each interval is one month, aligned with the calendar.- Parameters:
duration
- Specifies the duration of each calendar interval. For example, ifDuration
is1
andDurationUnit
isMONTH
, each interval is one month, aligned with the calendar.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-