AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateLedgerResult.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 <aws/qldb/model/LedgerEncryptionDescription.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace QLDB
27{
28namespace Model
29{
31 {
32 public:
33 AWS_QLDB_API UpdateLedgerResult();
36
37
39
42 inline const Aws::String& GetName() const{ return m_name; }
43 inline void SetName(const Aws::String& value) { m_name = value; }
44 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
45 inline void SetName(const char* value) { m_name.assign(value); }
46 inline UpdateLedgerResult& WithName(const Aws::String& value) { SetName(value); return *this;}
47 inline UpdateLedgerResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
48 inline UpdateLedgerResult& WithName(const char* value) { SetName(value); return *this;}
50
52
55 inline const Aws::String& GetArn() const{ return m_arn; }
56 inline void SetArn(const Aws::String& value) { m_arn = value; }
57 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
58 inline void SetArn(const char* value) { m_arn.assign(value); }
59 inline UpdateLedgerResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
60 inline UpdateLedgerResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
61 inline UpdateLedgerResult& WithArn(const char* value) { SetArn(value); return *this;}
63
65
68 inline const LedgerState& GetState() const{ return m_state; }
69 inline void SetState(const LedgerState& value) { m_state = value; }
70 inline void SetState(LedgerState&& value) { m_state = std::move(value); }
71 inline UpdateLedgerResult& WithState(const LedgerState& value) { SetState(value); return *this;}
72 inline UpdateLedgerResult& WithState(LedgerState&& value) { SetState(std::move(value)); return *this;}
74
76
81 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
82 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTime = value; }
83 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTime = std::move(value); }
85 inline UpdateLedgerResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
87
89
97 inline bool GetDeletionProtection() const{ return m_deletionProtection; }
98 inline void SetDeletionProtection(bool value) { m_deletionProtection = value; }
99 inline UpdateLedgerResult& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
101
103
108 inline const LedgerEncryptionDescription& GetEncryptionDescription() const{ return m_encryptionDescription; }
109 inline void SetEncryptionDescription(const LedgerEncryptionDescription& value) { m_encryptionDescription = value; }
110 inline void SetEncryptionDescription(LedgerEncryptionDescription&& value) { m_encryptionDescription = std::move(value); }
114
116
117 inline const Aws::String& GetRequestId() const{ return m_requestId; }
118 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
119 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
120 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
121 inline UpdateLedgerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
122 inline UpdateLedgerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
123 inline UpdateLedgerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
125 private:
126
127 Aws::String m_name;
128
129 Aws::String m_arn;
130
131 LedgerState m_state;
132
133 Aws::Utils::DateTime m_creationDateTime;
134
135 bool m_deletionProtection;
136
137 LedgerEncryptionDescription m_encryptionDescription;
138
139 Aws::String m_requestId;
140 };
141
142} // namespace Model
143} // namespace QLDB
144} // namespace Aws
AWS_QLDB_API UpdateLedgerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
UpdateLedgerResult & WithName(const Aws::String &value)
UpdateLedgerResult & WithArn(Aws::String &&value)
void SetState(const LedgerState &value)
void SetArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationDateTime() const
UpdateLedgerResult & WithState(LedgerState &&value)
UpdateLedgerResult & WithState(const LedgerState &value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
void SetName(const Aws::String &value)
UpdateLedgerResult & WithRequestId(const char *value)
void SetEncryptionDescription(LedgerEncryptionDescription &&value)
UpdateLedgerResult & WithCreationDateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetArn() const
void SetRequestId(const Aws::String &value)
UpdateLedgerResult & WithRequestId(const Aws::String &value)
const LedgerState & GetState() const
void SetCreationDateTime(const Aws::Utils::DateTime &value)
UpdateLedgerResult & WithArn(const Aws::String &value)
const LedgerEncryptionDescription & GetEncryptionDescription() const
UpdateLedgerResult & WithRequestId(Aws::String &&value)
void SetEncryptionDescription(const LedgerEncryptionDescription &value)
UpdateLedgerResult & WithName(const char *value)
UpdateLedgerResult & WithName(Aws::String &&value)
UpdateLedgerResult & WithEncryptionDescription(const LedgerEncryptionDescription &value)
UpdateLedgerResult & WithArn(const char *value)
UpdateLedgerResult & WithEncryptionDescription(LedgerEncryptionDescription &&value)
UpdateLedgerResult & WithCreationDateTime(const Aws::Utils::DateTime &value)
const Aws::String & GetName() const
UpdateLedgerResult & WithDeletionProtection(bool value)
AWS_QLDB_API UpdateLedgerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue