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-rsatype.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.services.lightsail.model.LightsailRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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-rsatype.- Parameters:
publicKeyBase64- A base64-encoded public key of thessh-rsatype.- 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.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.
-