Interface CreateKeyPairResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateKeyPairResponse.Builder,CreateKeyPairResponse>,LightsailResponse.Builder,SdkBuilder<CreateKeyPairResponse.Builder,CreateKeyPairResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreateKeyPairResponse
public static interface CreateKeyPairResponse.Builder extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<CreateKeyPairResponse.Builder,CreateKeyPairResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateKeyPairResponse.BuilderkeyPair(Consumer<KeyPair.Builder> keyPair)An array of key-value pairs containing information about the new key pair you just created.CreateKeyPairResponse.BuilderkeyPair(KeyPair keyPair)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.CreateKeyPairResponse.Builderoperation(Operation 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.CreateKeyPairResponse.BuilderprivateKeyBase64(String privateKeyBase64)A base64-encoded RSA private key.CreateKeyPairResponse.BuilderpublicKeyBase64(String publicKeyBase64)A base64-encoded public key of thessh-rsatype.-
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 Detail
-
keyPair
CreateKeyPairResponse.Builder keyPair(KeyPair 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
default CreateKeyPairResponse.Builder keyPair(Consumer<KeyPair.Builder> 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:
keyPair(KeyPair)
-
publicKeyBase64
CreateKeyPairResponse.Builder publicKeyBase64(String 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
CreateKeyPairResponse.Builder privateKeyBase64(String 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
CreateKeyPairResponse.Builder operation(Operation 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
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.
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:
operation(Operation)
-
-