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