Interface CreateKeyPairResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateKeyPairResponse.Builder,CreateKeyPairResponse>
,Ec2Response.Builder
,SdkBuilder<CreateKeyPairResponse.Builder,CreateKeyPairResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- CreateKeyPairResponse
public static interface CreateKeyPairResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateKeyPairResponse.Builder,CreateKeyPairResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateKeyPairResponse.Builder
keyFingerprint(String keyFingerprint)
CreateKeyPairResponse.Builder
keyMaterial(String keyMaterial)
An unencrypted PEM encoded RSA or ED25519 private key.CreateKeyPairResponse.Builder
keyName(String keyName)
The name of the key pair.CreateKeyPairResponse.Builder
keyPairId(String keyPairId)
The ID of the key pair.CreateKeyPairResponse.Builder
tags(Collection<Tag> tags)
Any tags applied to the key pair.CreateKeyPairResponse.Builder
tags(Consumer<Tag.Builder>... tags)
Any tags applied to the key pair.CreateKeyPairResponse.Builder
tags(Tag... tags)
Any tags applied to the key pair.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
keyFingerprint
CreateKeyPairResponse.Builder keyFingerprint(String keyFingerprint)
-
For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
-
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
- Parameters:
keyFingerprint
-For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
keyMaterial
CreateKeyPairResponse.Builder keyMaterial(String keyMaterial)
An unencrypted PEM encoded RSA or ED25519 private key.
- Parameters:
keyMaterial
- An unencrypted PEM encoded RSA or ED25519 private key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyName
CreateKeyPairResponse.Builder keyName(String keyName)
The name of the key pair.
- Parameters:
keyName
- The name of the key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyPairId
CreateKeyPairResponse.Builder keyPairId(String keyPairId)
The ID of the key pair.
- Parameters:
keyPairId
- The ID of the key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateKeyPairResponse.Builder tags(Collection<Tag> tags)
Any tags applied to the key pair.
- Parameters:
tags
- Any tags applied to the key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateKeyPairResponse.Builder tags(Tag... tags)
Any tags applied to the key pair.
- Parameters:
tags
- Any tags applied to the key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateKeyPairResponse.Builder tags(Consumer<Tag.Builder>... tags)
Any tags applied to the key pair.
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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
-