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>
17template<
typename RESULT_TYPE>
18class AmazonWebServiceResult;
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>
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>
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>
102 inline void SetDeletionProtection(
bool value) { m_deletionProtectionHasBeenSet =
true; m_deletionProtection = value; }
114 template<
typename EncryptionDescriptionT = LedgerEncryptionDescription>
115 void SetEncryptionDescription(EncryptionDescriptionT&& value) { m_encryptionDescriptionHasBeenSet =
true; m_encryptionDescription = std::forward<EncryptionDescriptionT>(value); }
116 template<
typename EncryptionDescriptionT = LedgerEncryptionDescription>
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>
131 bool m_nameHasBeenSet =
false;
134 bool m_arnHasBeenSet =
false;
137 bool m_stateHasBeenSet =
false;
140 bool m_creationDateTimeHasBeenSet =
false;
143 bool m_permissionsModeHasBeenSet =
false;
145 bool m_deletionProtection{
false};
146 bool m_deletionProtectionHasBeenSet =
false;
148 LedgerEncryptionDescription m_encryptionDescription;
149 bool m_encryptionDescriptionHasBeenSet =
false;
152 bool m_requestIdHasBeenSet =
false;
bool GetDeletionProtection() const
DescribeLedgerResult & WithArn(ArnT &&value)
void SetEncryptionDescription(EncryptionDescriptionT &&value)
void SetDeletionProtection(bool value)
const Aws::Utils::DateTime & GetCreationDateTime() const
const Aws::String & GetName() const
void SetCreationDateTime(CreationDateTimeT &&value)
void SetName(NameT &&value)
void SetArn(ArnT &&value)
void SetState(LedgerState value)
void SetRequestId(RequestIdT &&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)
PermissionsMode GetPermissionsMode() const
AWS_QLDB_API DescribeLedgerResult()=default
void SetPermissionsMode(PermissionsMode value)
LedgerState GetState() const
DescribeLedgerResult & WithState(LedgerState value)
DescribeLedgerResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetArn() const
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