public static interface GetKeyPairResponse.Builder extends LightsailResponse.Builder, CopyableBuilder<GetKeyPairResponse.Builder,GetKeyPairResponse>
Modifier and Type | Method and Description |
---|---|
default GetKeyPairResponse.Builder |
keyPair(Consumer<KeyPair.Builder> keyPair)
An array of key-value pairs containing information about the key pair.
|
GetKeyPairResponse.Builder |
keyPair(KeyPair keyPair)
An array of key-value pairs containing information about the key pair.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
GetKeyPairResponse.Builder keyPair(KeyPair keyPair)
An array of key-value pairs containing information about the key pair.
keyPair
- An array of key-value pairs containing information about the key pair.default GetKeyPairResponse.Builder keyPair(Consumer<KeyPair.Builder> keyPair)
An array of key-value pairs containing information about the key pair.
This is a convenience that creates an instance of theKeyPair.Builder
avoiding the need to create one
manually via KeyPair.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to keyPair(KeyPair)
.keyPair
- a consumer that will call methods on KeyPair.Builder
keyPair(KeyPair)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.