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.BuilderkeyPair(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.Builderoperation(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-rsatype.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, sdkFieldNameToField, 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 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.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:
-
publicKeyBase64
A base64-encoded public key of the
ssh-rsatype.- Parameters:
publicKeyBase64- A base64-encoded public key of thessh-rsatype.- 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.Builderavoiding the need to create one manually viaOperation.builder().When the
Consumercompletes,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:
-