/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 AWS_QLDB_API UpdateLedgerResult { public: UpdateLedgerResult(); UpdateLedgerResult(const Aws::AmazonWebServiceResult& result); 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;} /** *

The flag that prevents a ledger from being deleted by any user. If not * provided on 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 using the QLDB API or the AWS Command Line * Interface (AWS CLI). You can disable it by calling the UpdateLedger * operation to set the flag to false. The QLDB console disables * deletion protection for you when you use it to delete a ledger.

*/ inline bool GetDeletionProtection() const{ return m_deletionProtection; } /** *

The flag that prevents a ledger from being deleted by any user. If not * provided on 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 using the QLDB API or the AWS Command Line * Interface (AWS CLI). You can disable it by calling the UpdateLedger * operation to set the flag to false. The QLDB console disables * deletion protection for you when you use it to delete a ledger.

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

The flag that prevents a ledger from being deleted by any user. If not * provided on 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 using the QLDB API or the AWS Command Line * Interface (AWS CLI). You can disable it by calling the UpdateLedger * operation to set the flag to false. The QLDB console disables * deletion protection for you when you use it to delete a ledger.

*/ inline UpdateLedgerResult& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;} private: Aws::String m_name; Aws::String m_arn; LedgerState m_state; Aws::Utils::DateTime m_creationDateTime; bool m_deletionProtection; }; } // namespace Model } // namespace QLDB } // namespace Aws