Interface WeeklySchedule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<WeeklySchedule.Builder,
,WeeklySchedule> SdkBuilder<WeeklySchedule.Builder,
,WeeklySchedule> SdkPojo
- Enclosing class:
WeeklySchedule
public static interface WeeklySchedule.Builder
extends SdkPojo, CopyableBuilder<WeeklySchedule.Builder,WeeklySchedule>
-
Method Summary
Modifier and TypeMethodDescriptiondays
(Collection<Day> days) The weekly schedule's days.The weekly schedule's days.daysWithStrings
(String... days) The weekly schedule's days.daysWithStrings
(Collection<String> days) The weekly schedule's days.default WeeklySchedule.Builder
startTime
(Consumer<Time.Builder> startTime) The weekly schedule's start time.The weekly schedule's start time.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 Details
-
daysWithStrings
The weekly schedule's days.
- Parameters:
days
- The weekly schedule's days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
daysWithStrings
The weekly schedule's days.
- Parameters:
days
- The weekly schedule's days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
days
The weekly schedule's days.
- Parameters:
days
- The weekly schedule's days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
days
The weekly schedule's days.
- Parameters:
days
- The weekly schedule's days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
The weekly schedule's start time.
- Parameters:
startTime
- The weekly schedule's start time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
The weekly schedule's start time.
This is a convenience method that creates an instance of theTime.Builder
avoiding the need to create one manually viaTime.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostartTime(Time)
.- Parameters:
startTime
- a consumer that will call methods onTime.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-