AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline LedgerSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline LedgerSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline LedgerSummary& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const LedgerState& GetState() const{ return m_state; }
62 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
63 inline void SetState(const LedgerState& value) { m_stateHasBeenSet = true; m_state = value; }
64 inline void SetState(LedgerState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
65 inline LedgerSummary& WithState(const LedgerState& value) { SetState(value); return *this;}
66 inline LedgerSummary& WithState(LedgerState&& value) { SetState(std::move(value)); return *this;}
68
70
75 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
76 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
77 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
78 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
79 inline LedgerSummary& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
80 inline LedgerSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_name;
85 bool m_nameHasBeenSet = false;
86
87 LedgerState m_state;
88 bool m_stateHasBeenSet = false;
89
90 Aws::Utils::DateTime m_creationDateTime;
91 bool m_creationDateTimeHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace QLDB
96} // namespace Aws
AWS_QLDB_API Aws::Utils::Json::JsonValue Jsonize() const
LedgerSummary & WithName(const Aws::String &value)
LedgerSummary & WithName(Aws::String &&value)
void SetState(const LedgerState &value)
void SetName(const Aws::String &value)
void SetState(LedgerState &&value)
LedgerSummary & WithCreationDateTime(Aws::Utils::DateTime &&value)
void SetName(const char *value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
LedgerSummary & WithState(const LedgerState &value)
const Aws::String & GetName() const
LedgerSummary & WithName(const char *value)
const LedgerState & GetState() const
void SetCreationDateTime(const Aws::Utils::DateTime &value)
AWS_QLDB_API LedgerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QLDB_API LedgerSummary(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
LedgerSummary & WithCreationDateTime(const Aws::Utils::DateTime &value)
LedgerSummary & WithState(LedgerState &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue