Class CfnHostKeyProps.Builder
java.lang.Object
software.amazon.awscdk.services.transfer.CfnHostKeyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHostKeyProps>
- Enclosing interface:
CfnHostKeyProps
@Stability(Stable)
public static final class CfnHostKeyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHostKeyProps>
A builder for
CfnHostKeyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnHostKeyProps.getDescription()hostKeyBody(String hostKeyBody) Sets the value ofCfnHostKeyProps.getHostKeyBody()Sets the value ofCfnHostKeyProps.getServerId()Sets the value ofCfnHostKeyProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serverId
Sets the value ofCfnHostKeyProps.getServerId()- Parameters:
serverId- The identifier of the server that contains the host key. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnHostKeyProps.getDescription()- Parameters:
description- The text description for this host key.- Returns:
this
-
hostKeyBody
Sets the value ofCfnHostKeyProps.getHostKeyBody()- Parameters:
hostKeyBody- The private key portion of an SSH key pair. Transfer Family accepts RSA, ECDSA, and ED25519 keys.- Returns:
this
-
tags
Sets the value ofCfnHostKeyProps.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<CfnHostKeyProps>- Returns:
- a new instance of
CfnHostKeyProps - Throws:
NullPointerException- if any required attribute was not provided
-