Interface ImportKeyPairResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ImportKeyPairResponse.Builder,,ImportKeyPairResponse> Ec2Response.Builder,SdkBuilder<ImportKeyPairResponse.Builder,,ImportKeyPairResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ImportKeyPairResponse
-
Method Summary
Modifier and TypeMethodDescriptionkeyFingerprint(String keyFingerprint) The key pair name that you provided.The ID of the resulting key pair.tags(Collection<Tag> tags) The tags applied to the imported key pair.tags(Consumer<Tag.Builder>... tags) The tags applied to the imported key pair.The tags applied to the imported key pair.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
keyFingerprint
-
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.
-
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 MD5 public key fingerprint as specified in section 4 of RFC 4716.
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 key pair name that you provided.
- Parameters:
keyName- The key pair name that you provided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyPairId
The ID of the resulting key pair.
- Parameters:
keyPairId- The ID of the resulting key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags applied to the imported key pair.
- Parameters:
tags- The tags applied to the imported key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags applied to the imported key pair.
- Parameters:
tags- The tags applied to the imported key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags applied to the imported key pair.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,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:
-