Class CfnDomain.OffPeakWindowOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.CfnDomain.OffPeakWindowOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.OffPeakWindowOptionsProperty>
- Enclosing interface:
- CfnDomain.OffPeakWindowOptionsProperty
@Stability(Stable)
public static final class CfnDomain.OffPeakWindowOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.OffPeakWindowOptionsProperty>
A builder for
CfnDomain.OffPeakWindowOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDomain.OffPeakWindowOptionsProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnDomain.OffPeakWindowOptionsProperty.getEnabled()offPeakWindow(IResolvable offPeakWindow) Sets the value ofCfnDomain.OffPeakWindowOptionsProperty.getOffPeakWindow()offPeakWindow(CfnDomain.OffPeakWindowProperty offPeakWindow) Sets the value ofCfnDomain.OffPeakWindowOptionsProperty.getOffPeakWindow()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnDomain.OffPeakWindowOptionsProperty.getEnabled()- Parameters:
enabled- Specifies whether off-peak window settings are enabled for the domain.- Returns:
this
-
enabled
@Stability(Stable) public CfnDomain.OffPeakWindowOptionsProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnDomain.OffPeakWindowOptionsProperty.getEnabled()- Parameters:
enabled- Specifies whether off-peak window settings are enabled for the domain.- Returns:
this
-
offPeakWindow
@Stability(Stable) public CfnDomain.OffPeakWindowOptionsProperty.Builder offPeakWindow(IResolvable offPeakWindow) Sets the value ofCfnDomain.OffPeakWindowOptionsProperty.getOffPeakWindow()- Parameters:
offPeakWindow- Off-peak window settings for the domain.- Returns:
this
-
offPeakWindow
@Stability(Stable) public CfnDomain.OffPeakWindowOptionsProperty.Builder offPeakWindow(CfnDomain.OffPeakWindowProperty offPeakWindow) Sets the value ofCfnDomain.OffPeakWindowOptionsProperty.getOffPeakWindow()- Parameters:
offPeakWindow- Off-peak window settings for the domain.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomain.OffPeakWindowOptionsProperty>- Returns:
- a new instance of
CfnDomain.OffPeakWindowOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-