public static interface CreateKeyPairRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateKeyPairRequest.Builder,CreateKeyPairRequest>
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateKeyPairRequest.Builder keyName(String keyName)
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
keyName - A unique name for the key pair.
Constraints: Up to 255 ASCII characters
CreateKeyPairRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and
provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it is UnauthorizedOperation.
dryRun - Checks whether you have the required permissions for the action, without actually making the request,
and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it is UnauthorizedOperation.CreateKeyPairRequest.Builder keyType(String keyType)
The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default: rsa
CreateKeyPairRequest.Builder keyType(KeyType keyType)
The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default: rsa
CreateKeyPairRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new key pair.
tagSpecifications - The tags to apply to the new key pair.CreateKeyPairRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the new key pair.
tagSpecifications - The tags to apply to the new key pair.CreateKeyPairRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the new key pair.
This is a convenience method that creates an instance of theTagSpecification.Builder avoiding the need to create one
manually via TagSpecification.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #tagSpecifications(List.
tagSpecifications - a consumer that will call methods on
TagSpecification.Builder#tagSpecifications(java.util.Collection) CreateKeyPairRequest.Builder keyFormat(String keyFormat)
The format of the key pair.
Default: pem
CreateKeyPairRequest.Builder keyFormat(KeyFormat keyFormat)
The format of the key pair.
Default: pem
CreateKeyPairRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateKeyPairRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.