Interface OffPeakWindow.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OffPeakWindow.Builder,
,OffPeakWindow> SdkBuilder<OffPeakWindow.Builder,
,OffPeakWindow> SdkPojo
- Enclosing class:
OffPeakWindow
public static interface OffPeakWindow.Builder
extends SdkPojo, CopyableBuilder<OffPeakWindow.Builder,OffPeakWindow>
-
Method Summary
Modifier and TypeMethodDescriptiondefault OffPeakWindow.Builder
windowStartTime
(Consumer<WindowStartTime.Builder> windowStartTime) A custom start time for the off-peak window, in Coordinated Universal Time (UTC).windowStartTime
(WindowStartTime windowStartTime) A custom start time for the off-peak window, in Coordinated Universal Time (UTC).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
-
windowStartTime
A custom start time for the off-peak window, in Coordinated Universal Time (UTC). The window length will always be 10 hours, so you can't specify an end time. For example, if you specify 11:00 P.M. UTC as a start time, the end time will automatically be set to 9:00 A.M.
- Parameters:
windowStartTime
- A custom start time for the off-peak window, in Coordinated Universal Time (UTC). The window length will always be 10 hours, so you can't specify an end time. For example, if you specify 11:00 P.M. UTC as a start time, the end time will automatically be set to 9:00 A.M.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
windowStartTime
A custom start time for the off-peak window, in Coordinated Universal Time (UTC). The window length will always be 10 hours, so you can't specify an end time. For example, if you specify 11:00 P.M. UTC as a start time, the end time will automatically be set to 9:00 A.M.
This is a convenience method that creates an instance of theWindowStartTime.Builder
avoiding the need to create one manually viaWindowStartTime.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towindowStartTime(WindowStartTime)
.- Parameters:
windowStartTime
- a consumer that will call methods onWindowStartTime.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-