Class CfnDiskSnapshot.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDiskSnapshot.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDiskSnapshot>
- Enclosing class:
CfnDiskSnapshot
@Stability(Stable)
public static final class CfnDiskSnapshot.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDiskSnapshot>
A fluent builder for
CfnDiskSnapshot
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnDiskSnapshot.Builder
The unique name of the disk.diskSnapshotName
(String diskSnapshotName) The name of the disk snapshot (my-disk-snapshot
).The tag keys and optional values for the resource.
-
Method Details
-
create
@Stability(Stable) public static CfnDiskSnapshot.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnDiskSnapshot.Builder
.
-
diskName
The unique name of the disk.- Parameters:
diskName
- The unique name of the disk. This parameter is required.- Returns:
this
- See Also:
-
diskSnapshotName
The name of the disk snapshot (my-disk-snapshot
).- Parameters:
diskSnapshotName
- The name of the disk snapshot (my-disk-snapshot
). This parameter is required.- Returns:
this
- See Also:
-
tags
The tag keys and optional values for the resource.For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide .
- Parameters:
tags
- The tag keys and optional values for the resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDiskSnapshot>
- Returns:
- a newly built instance of
CfnDiskSnapshot
.
-