AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
LedgerSummary.h
1
6#pragma once
7#include <aws/qldb/QLDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qldb/model/LedgerState.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QLDB
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QLDB_API LedgerSummary() = default;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 LedgerSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline LedgerState GetState() const { return m_state; }
60 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
61 inline void SetState(LedgerState value) { m_stateHasBeenSet = true; m_state = value; }
62 inline LedgerSummary& WithState(LedgerState value) { SetState(value); return *this;}
64
66
71 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
72 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
73 template<typename CreationDateTimeT = Aws::Utils::DateTime>
74 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
75 template<typename CreationDateTimeT = Aws::Utils::DateTime>
76 LedgerSummary& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
78 private:
79
80 Aws::String m_name;
81 bool m_nameHasBeenSet = false;
82
84 bool m_stateHasBeenSet = false;
85
86 Aws::Utils::DateTime m_creationDateTime{};
87 bool m_creationDateTimeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace QLDB
92} // namespace Aws
void SetCreationDateTime(CreationDateTimeT &&value)
LedgerSummary & WithName(NameT &&value)
AWS_QLDB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QLDB_API LedgerSummary()=default
LedgerSummary & WithCreationDateTime(CreationDateTimeT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
const Aws::String & GetName() const
void SetState(LedgerState value)
AWS_QLDB_API LedgerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
LedgerSummary & WithState(LedgerState value)
AWS_QLDB_API LedgerSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue