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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetKeyPairResponse.BuilderkeyPair(Consumer<KeyPair.Builder> keyPair)An array of key-value pairs containing information about the key pair.GetKeyPairResponse.BuilderkeyPair(KeyPair keyPair)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 Detail
-
keyPair
GetKeyPairResponse.Builder keyPair(KeyPair 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
default GetKeyPairResponse.Builder keyPair(Consumer<KeyPair.Builder> keyPair)
An array of key-value pairs containing information about the key pair.
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)
-
-