Interface GetSshPublicKeyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetSshPublicKeyResponse.Builder,,GetSshPublicKeyResponse> IamResponse.Builder,SdkBuilder<GetSshPublicKeyResponse.Builder,,GetSshPublicKeyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetSshPublicKeyResponse
public static interface GetSshPublicKeyResponse.Builder
extends IamResponse.Builder, SdkPojo, CopyableBuilder<GetSshPublicKeyResponse.Builder,GetSshPublicKeyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetSshPublicKeyResponse.BuildersshPublicKey(Consumer<SSHPublicKey.Builder> sshPublicKey) A structure containing details about the SSH public key.sshPublicKey(SSHPublicKey sshPublicKey) A structure containing details about the SSH public key.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iam.model.IamResponse.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
-
sshPublicKey
A structure containing details about the SSH public key.
- Parameters:
sshPublicKey- A structure containing details about the SSH public key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sshPublicKey
A structure containing details about the SSH public key.
This is a convenience method that creates an instance of theSSHPublicKey.Builderavoiding the need to create one manually viaSSHPublicKey.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosshPublicKey(SSHPublicKey).- Parameters:
sshPublicKey- a consumer that will call methods onSSHPublicKey.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-