Interface ImportKeyPairRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ImportKeyPairRequest.Builder,
,ImportKeyPairRequest> LightsailRequest.Builder
,SdkBuilder<ImportKeyPairRequest.Builder,
,ImportKeyPairRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ImportKeyPairRequest
public static interface ImportKeyPairRequest.Builder
extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<ImportKeyPairRequest.Builder,ImportKeyPairRequest>
-
Method Summary
Modifier and TypeMethodDescriptionkeyPairName
(String keyPairName) The name of the key pair for which you want to import the public key.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.publicKeyBase64
(String publicKeyBase64) A base64-encoded public key of thessh-rsa
type.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.services.lightsail.model.LightsailRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
keyPairName
The name of the key pair for which you want to import the public key.
- Parameters:
keyPairName
- The name of the key pair for which you want to import the public key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicKeyBase64
A base64-encoded public key of the
ssh-rsa
type.- Parameters:
publicKeyBase64
- A base64-encoded public key of thessh-rsa
type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ImportKeyPairRequest.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
ImportKeyPairRequest.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.
-