Class DiskSnapshotReference.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.DiskSnapshotReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DiskSnapshotReference>
- Enclosing interface:
DiskSnapshotReference
@Stability(Stable)
public static final class DiskSnapshotReference.Builder
extends Object
implements software.amazon.jsii.Builder<DiskSnapshotReference>
A builder for
DiskSnapshotReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.diskSnapshotArn(String diskSnapshotArn) Sets the value ofDiskSnapshotReference.getDiskSnapshotArn()diskSnapshotName(String diskSnapshotName) Sets the value ofDiskSnapshotReference.getDiskSnapshotName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
diskSnapshotArn
Sets the value ofDiskSnapshotReference.getDiskSnapshotArn()- Parameters:
diskSnapshotArn- The ARN of the DiskSnapshot resource. This parameter is required.- Returns:
this
-
diskSnapshotName
Sets the value ofDiskSnapshotReference.getDiskSnapshotName()- Parameters:
diskSnapshotName- The DiskSnapshotName of the DiskSnapshot resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DiskSnapshotReference>- Returns:
- a new instance of
DiskSnapshotReference - Throws:
NullPointerException- if any required attribute was not provided
-