Interface GetKeyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetKeyResponse.Builder,
,GetKeyResponse> PaymentCryptographyResponse.Builder
,SdkBuilder<GetKeyResponse.Builder,
,GetKeyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetKeyResponse
@Mutable
@NotThreadSafe
public static interface GetKeyResponse.Builder
extends PaymentCryptographyResponse.Builder, SdkPojo, CopyableBuilder<GetKeyResponse.Builder,GetKeyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetKeyResponse.Builder
key
(Consumer<Key.Builder> key) The key material, including the immutable and mutable data for the key.The key material, including the immutable and mutable data for the key.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.paymentcryptography.model.PaymentCryptographyResponse.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
-
key
The key material, including the immutable and mutable data for the key.
- Parameters:
key
- The key material, including the immutable and mutable data for the key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
key
The key material, including the immutable and mutable data for the key.
This is a convenience method that creates an instance of theKey.Builder
avoiding the need to create one manually viaKey.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tokey(Key)
.- Parameters:
key
- a consumer that will call methods onKey.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-