Interface RestoreKeyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<RestoreKeyResponse.Builder,,RestoreKeyResponse> PaymentCryptographyResponse.Builder,SdkBuilder<RestoreKeyResponse.Builder,,RestoreKeyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
RestoreKeyResponse
public static interface RestoreKeyResponse.Builder
extends PaymentCryptographyResponse.Builder, SdkPojo, CopyableBuilder<RestoreKeyResponse.Builder,RestoreKeyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RestoreKeyResponse.Builderkey(Consumer<Key.Builder> key) The key material of the restored key.The key material of the restored key.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.paymentcryptography.model.PaymentCryptographyResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
key
The key material of the restored key. The
KeyStatewill change toCREATE_COMPLETEand value forDeletePendingTimestampgets removed.- Parameters:
key- The key material of the restored key. TheKeyStatewill change toCREATE_COMPLETEand value forDeletePendingTimestampgets removed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
key
The key material of the restored key. The
This is a convenience method that creates an instance of theKeyStatewill change toCREATE_COMPLETEand value forDeletePendingTimestampgets removed.Key.Builderavoiding the need to create one manually viaKey.builder().When the
Consumercompletes,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:
-