Interface ImportHostKeyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ImportHostKeyRequest.Builder,,ImportHostKeyRequest> SdkBuilder<ImportHostKeyRequest.Builder,,ImportHostKeyRequest> SdkPojo,SdkRequest.Builder,TransferRequest.Builder
- Enclosing class:
ImportHostKeyRequest
public static interface ImportHostKeyRequest.Builder
extends TransferRequest.Builder, SdkPojo, CopyableBuilder<ImportHostKeyRequest.Builder,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.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.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, 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:
-
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.
-