Interface KeyPairInfo.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<KeyPairInfo.Builder,
,KeyPairInfo> SdkBuilder<KeyPairInfo.Builder,
,KeyPairInfo> SdkPojo
- Enclosing class:
KeyPairInfo
-
Method Summary
Modifier and TypeMethodDescriptioncreateTime
(Instant createTime) If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time zone.keyFingerprint
(String keyFingerprint) If you used CreateKeyPair to create the key pair:The name of the key pair.The ID of the key pair.The type of key pair.The type of key pair.The public key material.tags
(Collection<Tag> tags) Any tags applied to the key pair.tags
(Consumer<Tag.Builder>... tags) Any tags applied to the key pair.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.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
-
keyFingerprint
If you used CreateKeyPair to create the key pair:
-
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.
If you used ImportKeyPair to provide Amazon Web Services the public key:
-
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
-
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
- If you used CreateKeyPair to create the key pair:-
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.
If you used ImportKeyPair to provide Amazon Web Services the public key:
-
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
-
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.
-
-
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.
-
keyType
The type of key pair.
- Parameters:
keyType
- The type of key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
keyType
The type of key pair.
- Parameters:
keyType
- The type of key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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 totags(List<Tag>)
.- 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:
-
publicKey
The public key material.
- Parameters:
publicKey
- The public key material.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time zone.
If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.
- Parameters:
createTime
- If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time zone.If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-