Interface RestoreKeyResponse.Builder

  • Method Details

    • key

      The key material of the restored key. The KeyState will change to CREATE_COMPLETE and value for DeletePendingTimestamp gets removed.

      Parameters:
      key - The key material of the restored key. The KeyState will change to CREATE_COMPLETE and value for DeletePendingTimestamp gets 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 KeyState will change to CREATE_COMPLETE and value for DeletePendingTimestamp gets removed.

      This is a convenience method that creates an instance of the Key.Builder avoiding the need to create one manually via Key.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to key(Key).

      Parameters:
      key - a consumer that will call methods on Key.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: