Class CfnSecurityKeyProps.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnSecurityKeyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityKeyProps>
- Enclosing interface:
CfnSecurityKeyProps
@Stability(Stable)
public static final class CfnSecurityKeyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityKeyProps>
A builder for
CfnSecurityKeyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instanceId
(String instanceId) Sets the value ofCfnSecurityKeyProps.getInstanceId()
Sets the value ofCfnSecurityKeyProps.getKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceId
Sets the value ofCfnSecurityKeyProps.getInstanceId()
- Parameters:
instanceId
- The Amazon Resource Name (ARN) of the instance. This parameter is required. Minimum :1
Maximum :
100
- Returns:
this
-
key
Sets the value ofCfnSecurityKeyProps.getKey()
- Parameters:
key
- A valid security key in PEM format. For example:. This parameter is required."-----BEGIN PUBLIC KEY-----\ [a lot of characters] ----END PUBLIC KEY-----"
Minimum :
1
Maximum :
1024
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSecurityKeyProps>
- Returns:
- a new instance of
CfnSecurityKeyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-