Interface Interval.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Interval.Builder,
,Interval> SdkBuilder<Interval.Builder,
,Interval> SdkPojo
- Enclosing class:
Interval
@Mutable
@NotThreadSafe
public static interface Interval.Builder
extends SdkPojo, CopyableBuilder<Interval.Builder,Interval>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Interval.Builder
calendarInterval
(Consumer<CalendarInterval.Builder> calendarInterval) If the interval is a calendar interval, this structure contains the interval specifications.calendarInterval
(CalendarInterval calendarInterval) If the interval is a calendar interval, this structure contains the interval specifications.default Interval.Builder
rollingInterval
(Consumer<RollingInterval.Builder> rollingInterval) If the interval is a rolling interval, this structure contains the interval specifications.rollingInterval
(RollingInterval rollingInterval) If the interval is a rolling interval, this structure contains the interval specifications.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
-
rollingInterval
If the interval is a rolling interval, this structure contains the interval specifications.
- Parameters:
rollingInterval
- If the interval is a rolling interval, this structure contains the interval specifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rollingInterval
If the interval is a rolling interval, this structure contains the interval specifications.
This is a convenience method that creates an instance of theRollingInterval.Builder
avoiding the need to create one manually viaRollingInterval.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torollingInterval(RollingInterval)
.- Parameters:
rollingInterval
- a consumer that will call methods onRollingInterval.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
calendarInterval
If the interval is a calendar interval, this structure contains the interval specifications.
- Parameters:
calendarInterval
- If the interval is a calendar interval, this structure contains the interval specifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
calendarInterval
If the interval is a calendar interval, this structure contains the interval specifications.
This is a convenience method that creates an instance of theCalendarInterval.Builder
avoiding the need to create one manually viaCalendarInterval.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocalendarInterval(CalendarInterval)
.- Parameters:
calendarInterval
- a consumer that will call methods onCalendarInterval.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-