Interface CreateKeyPairResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateKeyPairResponse.Builder,
,CreateKeyPairResponse> LightsailResponse.Builder
,SdkBuilder<CreateKeyPairResponse.Builder,
,CreateKeyPairResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateKeyPairResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateKeyPairResponse.Builder
keyPair
(Consumer<KeyPair.Builder> keyPair) An array of key-value pairs containing information about the new key pair you just created.An array of key-value pairs containing information about the new key pair you just created.default CreateKeyPairResponse.Builder
operation
(Consumer<Operation.Builder> operation) An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.privateKeyBase64
(String privateKeyBase64) A base64-encoded RSA private key.publicKeyBase64
(String publicKeyBase64) A base64-encoded public key of thessh-rsa
type.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, sdkFieldNameToField, 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 new key pair you just created.
- Parameters:
keyPair
- An array of key-value pairs containing information about the new key pair you just created.- 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 new key pair you just created.
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:
-
publicKeyBase64
A base64-encoded public key of the
ssh-rsa
type.- Parameters:
publicKeyBase64
- A base64-encoded public key of thessh-rsa
type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateKeyBase64
A base64-encoded RSA private key.
- Parameters:
privateKeyBase64
- A base64-encoded RSA private key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operation
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
- Parameters:
operation
- An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operation
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
This is a convenience method that creates an instance of theOperation.Builder
avoiding the need to create one manually viaOperation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooperation(Operation)
.- Parameters:
operation
- a consumer that will call methods onOperation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-