Class CfnInstanceSnapshotProps.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnInstanceSnapshotProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceSnapshotProps>
- Enclosing interface:
CfnInstanceSnapshotProps
@Stability(Stable)
public static final class CfnInstanceSnapshotProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceSnapshotProps>
A builder for
CfnInstanceSnapshotProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceName(String instanceName) Sets the value ofCfnInstanceSnapshotProps.getInstanceName()instanceSnapshotName(String instanceSnapshotName) Sets the value ofCfnInstanceSnapshotProps.getInstanceSnapshotName()Sets the value ofCfnInstanceSnapshotProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceName
Sets the value ofCfnInstanceSnapshotProps.getInstanceName()- Parameters:
instanceName- The name the user gave the instance (Amazon_Linux_2023-1). This parameter is required.- Returns:
this
-
instanceSnapshotName
@Stability(Stable) public CfnInstanceSnapshotProps.Builder instanceSnapshotName(String instanceSnapshotName) Sets the value ofCfnInstanceSnapshotProps.getInstanceSnapshotName()- Parameters:
instanceSnapshotName- The name of the snapshot. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnInstanceSnapshotProps.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<CfnInstanceSnapshotProps>- Returns:
- a new instance of
CfnInstanceSnapshotProps - Throws:
NullPointerException- if any required attribute was not provided
-