AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeLedgerResult.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/PermissionsMode.h>
12#include <aws/qldb/model/LedgerEncryptionDescription.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace QLDB
28{
29namespace Model
30{
32 {
33 public:
34 AWS_QLDB_API DescribeLedgerResult();
37
38
40
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline void SetName(const Aws::String& value) { m_name = value; }
45 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
46 inline void SetName(const char* value) { m_name.assign(value); }
47 inline DescribeLedgerResult& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline DescribeLedgerResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline DescribeLedgerResult& WithName(const char* value) { SetName(value); return *this;}
51
53
56 inline const Aws::String& GetArn() const{ return m_arn; }
57 inline void SetArn(const Aws::String& value) { m_arn = value; }
58 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
59 inline void SetArn(const char* value) { m_arn.assign(value); }
60 inline DescribeLedgerResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
61 inline DescribeLedgerResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
62 inline DescribeLedgerResult& WithArn(const char* value) { SetArn(value); return *this;}
64
66
69 inline const LedgerState& GetState() const{ return m_state; }
70 inline void SetState(const LedgerState& value) { m_state = value; }
71 inline void SetState(LedgerState&& value) { m_state = std::move(value); }
72 inline DescribeLedgerResult& WithState(const LedgerState& value) { SetState(value); return *this;}
73 inline DescribeLedgerResult& WithState(LedgerState&& value) { SetState(std::move(value)); return *this;}
75
77
82 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
83 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTime = value; }
84 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTime = std::move(value); }
86 inline DescribeLedgerResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
88
90
93 inline const PermissionsMode& GetPermissionsMode() const{ return m_permissionsMode; }
94 inline void SetPermissionsMode(const PermissionsMode& value) { m_permissionsMode = value; }
95 inline void SetPermissionsMode(PermissionsMode&& value) { m_permissionsMode = std::move(value); }
96 inline DescribeLedgerResult& WithPermissionsMode(const PermissionsMode& value) { SetPermissionsMode(value); return *this;}
97 inline DescribeLedgerResult& WithPermissionsMode(PermissionsMode&& value) { SetPermissionsMode(std::move(value)); return *this;}
99
101
109 inline bool GetDeletionProtection() const{ return m_deletionProtection; }
110 inline void SetDeletionProtection(bool value) { m_deletionProtection = value; }
111 inline DescribeLedgerResult& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
113
115
121 inline const LedgerEncryptionDescription& GetEncryptionDescription() const{ return m_encryptionDescription; }
122 inline void SetEncryptionDescription(const LedgerEncryptionDescription& value) { m_encryptionDescription = value; }
123 inline void SetEncryptionDescription(LedgerEncryptionDescription&& value) { m_encryptionDescription = std::move(value); }
127
129
130 inline const Aws::String& GetRequestId() const{ return m_requestId; }
131 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
132 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
133 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
134 inline DescribeLedgerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
135 inline DescribeLedgerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
136 inline DescribeLedgerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
138 private:
139
140 Aws::String m_name;
141
142 Aws::String m_arn;
143
144 LedgerState m_state;
145
146 Aws::Utils::DateTime m_creationDateTime;
147
148 PermissionsMode m_permissionsMode;
149
150 bool m_deletionProtection;
151
152 LedgerEncryptionDescription m_encryptionDescription;
153
154 Aws::String m_requestId;
155 };
156
157} // namespace Model
158} // namespace QLDB
159} // namespace Aws
DescribeLedgerResult & WithArn(const Aws::String &value)
void SetEncryptionDescription(const LedgerEncryptionDescription &value)
DescribeLedgerResult & WithState(const LedgerState &value)
DescribeLedgerResult & WithRequestId(const Aws::String &value)
DescribeLedgerResult & WithArn(Aws::String &&value)
DescribeLedgerResult & WithArn(const char *value)
const Aws::Utils::DateTime & GetCreationDateTime() const
void SetEncryptionDescription(LedgerEncryptionDescription &&value)
void SetCreationDateTime(const Aws::Utils::DateTime &value)
DescribeLedgerResult & WithName(Aws::String &&value)
DescribeLedgerResult & WithCreationDateTime(Aws::Utils::DateTime &&value)
DescribeLedgerResult & WithRequestId(Aws::String &&value)
void SetArn(const Aws::String &value)
void SetPermissionsMode(const PermissionsMode &value)
AWS_QLDB_API DescribeLedgerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeLedgerResult & WithName(const char *value)
const LedgerEncryptionDescription & GetEncryptionDescription() const
DescribeLedgerResult & WithDeletionProtection(bool value)
void SetState(const LedgerState &value)
void SetRequestId(const Aws::String &value)
DescribeLedgerResult & WithState(LedgerState &&value)
DescribeLedgerResult & WithName(const Aws::String &value)
DescribeLedgerResult & WithRequestId(const char *value)
DescribeLedgerResult & WithEncryptionDescription(LedgerEncryptionDescription &&value)
DescribeLedgerResult & WithPermissionsMode(PermissionsMode &&value)
void SetPermissionsMode(PermissionsMode &&value)
const PermissionsMode & GetPermissionsMode() const
DescribeLedgerResult & WithCreationDateTime(const Aws::Utils::DateTime &value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
void SetName(const Aws::String &value)
DescribeLedgerResult & WithEncryptionDescription(const LedgerEncryptionDescription &value)
DescribeLedgerResult & WithPermissionsMode(const PermissionsMode &value)
AWS_QLDB_API DescribeLedgerResult(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