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.Builder
keyPair
(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
copy
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.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 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.Builder
avoiding the need to create one manually viaKeyPair.builder()
.When the
Consumer
completes,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:
-