Class CfnDisk.AddOnProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDisk.AddOnProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDisk.AddOnProperty>
- Enclosing interface:
CfnDisk.AddOnProperty
@Stability(Stable)
public static final class CfnDisk.AddOnProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDisk.AddOnProperty>
A builder for
CfnDisk.AddOnProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDisk.AddOnProperty.getAddOnType()
autoSnapshotAddOnRequest
(IResolvable autoSnapshotAddOnRequest) Sets the value ofCfnDisk.AddOnProperty.getAutoSnapshotAddOnRequest()
autoSnapshotAddOnRequest
(CfnDisk.AutoSnapshotAddOnProperty autoSnapshotAddOnRequest) Sets the value ofCfnDisk.AddOnProperty.getAutoSnapshotAddOnRequest()
build()
Builds the configured instance.Sets the value ofCfnDisk.AddOnProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addOnType
Sets the value ofCfnDisk.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 a disk.- Returns:
this
-
autoSnapshotAddOnRequest
@Stability(Stable) public CfnDisk.AddOnProperty.Builder autoSnapshotAddOnRequest(IResolvable autoSnapshotAddOnRequest) Sets the value ofCfnDisk.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 CfnDisk.AddOnProperty.Builder autoSnapshotAddOnRequest(CfnDisk.AutoSnapshotAddOnProperty autoSnapshotAddOnRequest) Sets the value ofCfnDisk.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 ofCfnDisk.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<CfnDisk.AddOnProperty>
- Returns:
- a new instance of
CfnDisk.AddOnProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-