Class CfnDiskSnapshotMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnDiskSnapshotMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDiskSnapshotMixinProps>
- Enclosing interface:
CfnDiskSnapshotMixinProps
@Stability(Stable)
public static final class CfnDiskSnapshotMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDiskSnapshotMixinProps>
A builder for
CfnDiskSnapshotMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDiskSnapshotMixinProps.getDiskName()diskSnapshotName(String diskSnapshotName) Sets the value ofCfnDiskSnapshotMixinProps.getDiskSnapshotName()Sets the value ofCfnDiskSnapshotMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
diskName
Sets the value ofCfnDiskSnapshotMixinProps.getDiskName()- Parameters:
diskName- The unique name of the disk.- Returns:
this
-
diskSnapshotName
@Stability(Stable) public CfnDiskSnapshotMixinProps.Builder diskSnapshotName(String diskSnapshotName) Sets the value ofCfnDiskSnapshotMixinProps.getDiskSnapshotName()- Parameters:
diskSnapshotName- The name of the disk snapshot (my-disk-snapshot).- Returns:
this
-
tags
Sets the value ofCfnDiskSnapshotMixinProps.getTags()- Parameters:
tags- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDiskSnapshotMixinProps>- Returns:
- a new instance of
CfnDiskSnapshotMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-