Interface UpdateLedgerResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<UpdateLedgerResponse.Builder,UpdateLedgerResponse>, QldbResponse.Builder, SdkBuilder<UpdateLedgerResponse.Builder,UpdateLedgerResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
UpdateLedgerResponse

public static interface UpdateLedgerResponse.Builder extends QldbResponse.Builder, SdkPojo, CopyableBuilder<UpdateLedgerResponse.Builder,UpdateLedgerResponse>
  • Method Details

    • name

      The name of the ledger.

      Parameters:
      name - The name of the ledger.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The Amazon Resource Name (ARN) for the ledger.

      Parameters:
      arn - The Amazon Resource Name (ARN) for the ledger.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The current status of the ledger.

      Parameters:
      state - The current status of the ledger.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The current status of the ledger.

      Parameters:
      state - The current status of the ledger.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • creationDateTime

      UpdateLedgerResponse.Builder creationDateTime(Instant creationDateTime)

      The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

      Parameters:
      creationDateTime - The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deletionProtection

      UpdateLedgerResponse.Builder deletionProtection(Boolean deletionProtection)

      Specifies whether the ledger is protected from being deleted by any user. If not defined during ledger creation, this feature is enabled (true) by default.

      If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the UpdateLedger operation to set this parameter to false.

      Parameters:
      deletionProtection - Specifies whether the ledger is protected from being deleted by any user. If not defined during ledger creation, this feature is enabled (true) by default.

      If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the UpdateLedger operation to set this parameter to false.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • encryptionDescription

      UpdateLedgerResponse.Builder encryptionDescription(LedgerEncryptionDescription encryptionDescription)

      Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error).

      Parameters:
      encryptionDescription - Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • encryptionDescription

      default UpdateLedgerResponse.Builder encryptionDescription(Consumer<LedgerEncryptionDescription.Builder> encryptionDescription)

      Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error).

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

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

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