/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QLDB { namespace Model { /** *

Information about a ledger, including its name, state, and when it was * created.

See Also:

AWS * API Reference

*/ class LedgerSummary { public: AWS_QLDB_API LedgerSummary(); AWS_QLDB_API LedgerSummary(Aws::Utils::Json::JsonView jsonValue); AWS_QLDB_API LedgerSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QLDB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the ledger.

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

The name of the ledger.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the ledger.

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

The name of the ledger.

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

The name of the ledger.

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

The name of the ledger.

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

The name of the ledger.

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

The name of the ledger.

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

The current status of the ledger.

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

The current status of the ledger.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current status of the ledger.

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

The current status of the ledger.

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

The current status of the ledger.

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

The current status of the ledger.

*/ inline LedgerSummary& 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 bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } /** *

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_creationDateTimeHasBeenSet = true; 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_creationDateTimeHasBeenSet = true; 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 LedgerSummary& 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 LedgerSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; LedgerState m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_creationDateTime; bool m_creationDateTimeHasBeenSet = false; }; } // namespace Model } // namespace QLDB } // namespace Aws