Interface ImportKeyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ImportKeyResponse.Builder,
,ImportKeyResponse> PaymentCryptographyResponse.Builder
,SdkBuilder<ImportKeyResponse.Builder,
,ImportKeyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ImportKeyResponse
@Mutable
@NotThreadSafe
public static interface ImportKeyResponse.Builder
extends PaymentCryptographyResponse.Builder, SdkPojo, CopyableBuilder<ImportKeyResponse.Builder,ImportKeyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ImportKeyResponse.Builder
key
(Consumer<Key.Builder> key) TheKeyARN
of the key material imported within Amazon Web Services Payment Cryptography.TheKeyARN
of the key material imported within Amazon Web Services Payment Cryptography.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
KeyARN
of the key material imported within Amazon Web Services Payment Cryptography.- Parameters:
key
- TheKeyARN
of the key material imported within Amazon Web Services Payment Cryptography.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
key
The
This is a convenience method that creates an instance of theKeyARN
of the key material imported within Amazon Web Services Payment Cryptography.Key.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:
-