Interface OffPeakWindowOptions.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<OffPeakWindowOptions.Builder,OffPeakWindowOptions>
,SdkBuilder<OffPeakWindowOptions.Builder,OffPeakWindowOptions>
,SdkPojo
- Enclosing class:
- OffPeakWindowOptions
public static interface OffPeakWindowOptions.Builder extends SdkPojo, CopyableBuilder<OffPeakWindowOptions.Builder,OffPeakWindowOptions>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OffPeakWindowOptions.Builder
enabled(Boolean enabled)
Whether to enable an off-peak window.default OffPeakWindowOptions.Builder
offPeakWindow(Consumer<OffPeakWindow.Builder> offPeakWindow)
Off-peak window settings for the domain.OffPeakWindowOptions.Builder
offPeakWindow(OffPeakWindow offPeakWindow)
Off-peak window settings for the domain.-
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
-
enabled
OffPeakWindowOptions.Builder enabled(Boolean enabled)
Whether to enable an off-peak window.
This option is only available when modifying a domain created prior to February 16, 2023, not when creating a new domain. All domains created after this date have the off-peak window enabled by default. You can't disable the off-peak window after it's enabled for a domain.
- Parameters:
enabled
- Whether to enable an off-peak window.This option is only available when modifying a domain created prior to February 16, 2023, not when creating a new domain. All domains created after this date have the off-peak window enabled by default. You can't disable the off-peak window after it's enabled for a domain.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offPeakWindow
OffPeakWindowOptions.Builder offPeakWindow(OffPeakWindow offPeakWindow)
Off-peak window settings for the domain.
- Parameters:
offPeakWindow
- Off-peak window settings for the domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offPeakWindow
default OffPeakWindowOptions.Builder offPeakWindow(Consumer<OffPeakWindow.Builder> offPeakWindow)
Off-peak window settings for the domain.
This is a convenience method that creates an instance of theOffPeakWindow.Builder
avoiding the need to create one manually viaOffPeakWindow.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooffPeakWindow(OffPeakWindow)
.- Parameters:
offPeakWindow
- a consumer that will call methods onOffPeakWindow.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
offPeakWindow(OffPeakWindow)
-
-