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