Class CfnInstance.AddOnProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnInstance.AddOnProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstance.AddOnProperty>
- Enclosing interface:
CfnInstance.AddOnProperty
@Stability(Stable)
public static final class CfnInstance.AddOnProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstance.AddOnProperty>
A builder for
CfnInstance.AddOnProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnInstance.AddOnProperty.getAddOnType()
autoSnapshotAddOnRequest
(IResolvable autoSnapshotAddOnRequest) Sets the value ofCfnInstance.AddOnProperty.getAutoSnapshotAddOnRequest()
autoSnapshotAddOnRequest
(CfnInstance.AutoSnapshotAddOnProperty autoSnapshotAddOnRequest) Sets the value ofCfnInstance.AddOnProperty.getAutoSnapshotAddOnRequest()
build()
Builds the configured instance.Sets the value ofCfnInstance.AddOnProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addOnType
Sets the value ofCfnInstance.AddOnProperty.getAddOnType()
- Parameters:
addOnType
- The add-on type (for example,AutoSnapshot
). This parameter is required.AutoSnapshot
is the only add-on that can be enabled for an instance.- Returns:
this
-
autoSnapshotAddOnRequest
@Stability(Stable) public CfnInstance.AddOnProperty.Builder autoSnapshotAddOnRequest(IResolvable autoSnapshotAddOnRequest) Sets the value ofCfnInstance.AddOnProperty.getAutoSnapshotAddOnRequest()
- Parameters:
autoSnapshotAddOnRequest
- The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.- Returns:
this
-
autoSnapshotAddOnRequest
@Stability(Stable) public CfnInstance.AddOnProperty.Builder autoSnapshotAddOnRequest(CfnInstance.AutoSnapshotAddOnProperty autoSnapshotAddOnRequest) Sets the value ofCfnInstance.AddOnProperty.getAutoSnapshotAddOnRequest()
- Parameters:
autoSnapshotAddOnRequest
- The parameters for the automatic snapshot add-on, such as the daily time when an automatic snapshot will be created.- Returns:
this
-
status
Sets the value ofCfnInstance.AddOnProperty.getStatus()
- Parameters:
status
- The status of the add-on. Valid Values:Enabled
|Disabled
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInstance.AddOnProperty>
- Returns:
- a new instance of
CfnInstance.AddOnProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-