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 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 theList.Builder avoiding
the need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #tagSpecifications(List) .tagSpecifications - a consumer that will call methods on List.Builder #tagSpecifications(List) 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 © 2022. All rights reserved.