Interface ImportHostKeyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ImportHostKeyRequest.Builder,,ImportHostKeyRequest> SdkBuilder<ImportHostKeyRequest.Builder,,ImportHostKeyRequest> SdkPojo,SdkRequest.Builder,TransferRequest.Builder
- Enclosing class:
ImportHostKeyRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) The text description that identifies this host key.hostKeyBody(String hostKeyBody) The private key portion of an SSH key pair.The Amazon Resource Name (ARN) of the KMS key used to encrypt the Secrets Manager secret that stores the host key.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The identifier of the server that contains the host key that you are importing.storageType(String storageType) Specifies whether the host key is stored by Transfer Family (SERVICE_MANAGED) or in Secrets Manager (SECRETS_MANAGER).storageType(HostKeyStorageType storageType) Specifies whether the host key is stored by Transfer Family (SERVICE_MANAGED) or in Secrets Manager (SECRETS_MANAGER).tags(Collection<Tag> tags) Key-value pairs that can be used to group and search for host keys.tags(Consumer<Tag.Builder>... tags) Key-value pairs that can be used to group and search for host keys.Key-value pairs that can be used to group and search for host keys.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.transfer.model.TransferRequest.Builder
build
-
Method Details
-
serverId
The identifier of the server that contains the host key that you are importing.
- Parameters:
serverId- The identifier of the server that contains the host key that you are importing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostKeyBody
The private key portion of an SSH key pair.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
- Parameters:
hostKeyBody- The private key portion of an SSH key pair.Transfer Family accepts RSA, ECDSA, and ED25519 keys.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The text description that identifies this host key.
- Parameters:
description- The text description that identifies this host key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Key-value pairs that can be used to group and search for host keys.
- Parameters:
tags- Key-value pairs that can be used to group and search for host keys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Key-value pairs that can be used to group and search for host keys.
- Parameters:
tags- Key-value pairs that can be used to group and search for host keys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Key-value pairs that can be used to group and search for host keys.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageType
Specifies whether the host key is stored by Transfer Family (
SERVICE_MANAGED) or in Secrets Manager (SECRETS_MANAGER). When you specifySECRETS_MANAGER, Transfer Family stores the private host key material in an Secrets Manager secret.- Parameters:
storageType- Specifies whether the host key is stored by Transfer Family (SERVICE_MANAGED) or in Secrets Manager (SECRETS_MANAGER). When you specifySECRETS_MANAGER, Transfer Family stores the private host key material in an Secrets Manager secret.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageType
Specifies whether the host key is stored by Transfer Family (
SERVICE_MANAGED) or in Secrets Manager (SECRETS_MANAGER). When you specifySECRETS_MANAGER, Transfer Family stores the private host key material in an Secrets Manager secret.- Parameters:
storageType- Specifies whether the host key is stored by Transfer Family (SERVICE_MANAGED) or in Secrets Manager (SECRETS_MANAGER). When you specifySECRETS_MANAGER, Transfer Family stores the private host key material in an Secrets Manager secret.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
kmsKey
The Amazon Resource Name (ARN) of the KMS key used to encrypt the Secrets Manager secret that stores the host key. If you specify a customer managed key, its key policy must allow the
AWSServiceRoleForTransferservice-linked role to decrypt the secret. If you don't specify a value, Transfer Family uses the Amazon Web Services managed key for Secrets Manager.- Parameters:
kmsKey- The Amazon Resource Name (ARN) of the KMS key used to encrypt the Secrets Manager secret that stores the host key. If you specify a customer managed key, its key policy must allow theAWSServiceRoleForTransferservice-linked role to decrypt the secret. If you don't specify a value, Transfer Family uses the Amazon Web Services managed key for Secrets Manager.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ImportHostKeyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ImportHostKeyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-