/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace QLDB { namespace Model { class UpdateLedgerResult { public: AWS_QLDB_API UpdateLedgerResult(); AWS_QLDB_API UpdateLedgerResult(const Aws::AmazonWebServiceResult& result); AWS_QLDB_API UpdateLedgerResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the ledger.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the ledger.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the ledger.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the ledger.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the ledger.

*/ inline UpdateLedgerResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the ledger.

*/ inline UpdateLedgerResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the ledger.

*/ inline UpdateLedgerResult& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) for the ledger.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) for the ledger.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) for the ledger.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the ledger.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) for the ledger.

*/ inline UpdateLedgerResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the ledger.

*/ inline UpdateLedgerResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the ledger.

*/ inline UpdateLedgerResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The current status of the ledger.

*/ inline const LedgerState& GetState() const{ return m_state; } /** *

The current status of the ledger.

*/ inline void SetState(const LedgerState& value) { m_state = value; } /** *

The current status of the ledger.

*/ inline void SetState(LedgerState&& value) { m_state = std::move(value); } /** *

The current status of the ledger.

*/ inline UpdateLedgerResult& WithState(const LedgerState& value) { SetState(value); return *this;} /** *

The current status of the ledger.

*/ inline UpdateLedgerResult& WithState(LedgerState&& value) { SetState(std::move(value)); return *this;} /** *

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.)

*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_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.)

*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTime = value; } /** *

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.)

*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTime = std::move(value); } /** *

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.)

*/ inline UpdateLedgerResult& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *

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.)

*/ inline UpdateLedgerResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *

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.

*/ inline bool GetDeletionProtection() const{ return m_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.

*/ inline void SetDeletionProtection(bool value) { m_deletionProtection = value; } /** *

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.

*/ inline UpdateLedgerResult& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;} /** *

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).

*/ inline const LedgerEncryptionDescription& GetEncryptionDescription() const{ return m_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).

*/ inline void SetEncryptionDescription(const LedgerEncryptionDescription& value) { m_encryptionDescription = value; } /** *

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).

*/ inline void SetEncryptionDescription(LedgerEncryptionDescription&& value) { m_encryptionDescription = std::move(value); } /** *

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).

*/ inline UpdateLedgerResult& WithEncryptionDescription(const LedgerEncryptionDescription& value) { SetEncryptionDescription(value); return *this;} /** *

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).

*/ inline UpdateLedgerResult& WithEncryptionDescription(LedgerEncryptionDescription&& value) { SetEncryptionDescription(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateLedgerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateLedgerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateLedgerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; Aws::String m_arn; LedgerState m_state; Aws::Utils::DateTime m_creationDateTime; bool m_deletionProtection; LedgerEncryptionDescription m_encryptionDescription; Aws::String m_requestId; }; } // namespace Model } // namespace QLDB } // namespace Aws