Class CfnHostKeyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.transfer.CfnHostKeyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHostKeyMixinProps>
- Enclosing interface:
CfnHostKeyMixinProps
@Stability(Stable)
public static final class CfnHostKeyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHostKeyMixinProps>
A builder for
CfnHostKeyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnHostKeyMixinProps.getDescription()hostKeyBody(String hostKeyBody) Sets the value ofCfnHostKeyMixinProps.getHostKeyBody()Sets the value ofCfnHostKeyMixinProps.getServerId()Sets the value ofCfnHostKeyMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnHostKeyMixinProps.getDescription()- Parameters:
description- The text description for this host key.- Returns:
this
-
hostKeyBody
Sets the value ofCfnHostKeyMixinProps.getHostKeyBody()- Parameters:
hostKeyBody- The private key portion of an SSH key pair. Transfer Family accepts RSA, ECDSA, and ED25519 keys.- Returns:
this
-
serverId
Sets the value ofCfnHostKeyMixinProps.getServerId()- Parameters:
serverId- The identifier of the server that contains the host key.- Returns:
this
-
tags
Sets the value ofCfnHostKeyMixinProps.getTags()- Parameters:
tags- Key-value pairs that can be used to group and search for host keys.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHostKeyMixinProps>- Returns:
- a new instance of
CfnHostKeyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-