Interface ImportHostKeyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ImportHostKeyRequest.Builder,
,ImportHostKeyRequest> SdkBuilder<ImportHostKeyRequest.Builder,
,ImportHostKeyRequest> SdkPojo
,SdkRequest.Builder
,TransferRequest.Builder
- Enclosing class:
ImportHostKeyRequest
@Mutable
@NotThreadSafe
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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods 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.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-