Class CfnKeyPairProps.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnKeyPairProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKeyPairProps>
- Enclosing interface:
CfnKeyPairProps
@Stability(Stable)
public static final class CfnKeyPairProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKeyPairProps>
A builder for
CfnKeyPairProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.keyPairName(String keyPairName) Sets the value ofCfnKeyPairProps.getKeyPairName()Sets the value ofCfnKeyPairProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
keyPairName
Sets the value ofCfnKeyPairProps.getKeyPairName()- Parameters:
keyPairName- The name of the key pair. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnKeyPairProps.getTags()- Parameters:
tags- The tag keys and optional values to add to the resource during create.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKeyPairProps>- Returns:
- a new instance of
CfnKeyPairProps - Throws:
NullPointerException- if any required attribute was not provided
-