AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 DescribeLedgerResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 template<typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
57 template<typename ArnT = Aws::String>
58 DescribeLedgerResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
60
62
65 inline LedgerState GetState() const { return m_state; }
66 inline void SetState(LedgerState value) { m_stateHasBeenSet = true; m_state = value; }
67 inline DescribeLedgerResult& WithState(LedgerState value) { SetState(value); return *this;}
69
71
76 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
77 template<typename CreationDateTimeT = Aws::Utils::DateTime>
78 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
79 template<typename CreationDateTimeT = Aws::Utils::DateTime>
80 DescribeLedgerResult& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
82
84
87 inline PermissionsMode GetPermissionsMode() const { return m_permissionsMode; }
88 inline void SetPermissionsMode(PermissionsMode value) { m_permissionsModeHasBeenSet = true; m_permissionsMode = value; }
91
93
101 inline bool GetDeletionProtection() const { return m_deletionProtection; }
102 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
103 inline DescribeLedgerResult& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
105
107
113 inline const LedgerEncryptionDescription& GetEncryptionDescription() const { return m_encryptionDescription; }
114 template<typename EncryptionDescriptionT = LedgerEncryptionDescription>
115 void SetEncryptionDescription(EncryptionDescriptionT&& value) { m_encryptionDescriptionHasBeenSet = true; m_encryptionDescription = std::forward<EncryptionDescriptionT>(value); }
116 template<typename EncryptionDescriptionT = LedgerEncryptionDescription>
117 DescribeLedgerResult& WithEncryptionDescription(EncryptionDescriptionT&& value) { SetEncryptionDescription(std::forward<EncryptionDescriptionT>(value)); return *this;}
119
121
122 inline const Aws::String& GetRequestId() const { return m_requestId; }
123 template<typename RequestIdT = Aws::String>
124 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
125 template<typename RequestIdT = Aws::String>
126 DescribeLedgerResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
128 private:
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
133 Aws::String m_arn;
134 bool m_arnHasBeenSet = false;
135
137 bool m_stateHasBeenSet = false;
138
139 Aws::Utils::DateTime m_creationDateTime{};
140 bool m_creationDateTimeHasBeenSet = false;
141
142 PermissionsMode m_permissionsMode{PermissionsMode::NOT_SET};
143 bool m_permissionsModeHasBeenSet = false;
144
145 bool m_deletionProtection{false};
146 bool m_deletionProtectionHasBeenSet = false;
147
148 LedgerEncryptionDescription m_encryptionDescription;
149 bool m_encryptionDescriptionHasBeenSet = false;
150
151 Aws::String m_requestId;
152 bool m_requestIdHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace QLDB
157} // namespace Aws
DescribeLedgerResult & WithArn(ArnT &&value)
void SetEncryptionDescription(EncryptionDescriptionT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
void SetCreationDateTime(CreationDateTimeT &&value)
DescribeLedgerResult & WithEncryptionDescription(EncryptionDescriptionT &&value)
AWS_QLDB_API DescribeLedgerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeLedgerResult & WithCreationDateTime(CreationDateTimeT &&value)
const LedgerEncryptionDescription & GetEncryptionDescription() const
DescribeLedgerResult & WithDeletionProtection(bool value)
DescribeLedgerResult & WithName(NameT &&value)
DescribeLedgerResult & WithPermissionsMode(PermissionsMode value)
AWS_QLDB_API DescribeLedgerResult()=default
void SetPermissionsMode(PermissionsMode value)
DescribeLedgerResult & WithState(LedgerState value)
DescribeLedgerResult & WithRequestId(RequestIdT &&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