Interface GetKeyPairResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetKeyPairResponse.Builder,,GetKeyPairResponse> LightsailResponse.Builder,SdkBuilder<GetKeyPairResponse.Builder,,GetKeyPairResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetKeyPairResponse
public static interface GetKeyPairResponse.Builder
extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetKeyPairResponse.Builder,GetKeyPairResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetKeyPairResponse.BuilderkeyPair(Consumer<KeyPair.Builder> keyPair) An array of key-value pairs containing information about the key pair.An array of key-value pairs containing information about the key pair.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.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
-
keyPair
An array of key-value pairs containing information about the key pair.
- Parameters:
keyPair- An array of key-value pairs containing information about the key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyPair
An array of key-value pairs containing information about the key pair.
This is a convenience method that creates an instance of theKeyPair.Builderavoiding the need to create one manually viaKeyPair.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokeyPair(KeyPair).- Parameters:
keyPair- a consumer that will call methods onKeyPair.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-