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>
16template<
typename RESULT_TYPE>
17class AmazonWebServiceResult;
43 template<
typename NameT = Aws::String>
44 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
45 template<
typename NameT = Aws::String>
54 template<
typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
56 template<
typename ArnT = Aws::String>
76 template<
typename CreationDateTimeT = Aws::Utils::DateTime>
77 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet =
true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
78 template<
typename CreationDateTimeT = Aws::Utils::DateTime>
92 inline void SetDeletionProtection(
bool value) { m_deletionProtectionHasBeenSet =
true; m_deletionProtection = value; }
103 template<
typename EncryptionDescriptionT = LedgerEncryptionDescription>
104 void SetEncryptionDescription(EncryptionDescriptionT&& value) { m_encryptionDescriptionHasBeenSet =
true; m_encryptionDescription = std::forward<EncryptionDescriptionT>(value); }
105 template<
typename EncryptionDescriptionT = LedgerEncryptionDescription>
112 template<
typename RequestIdT = Aws::String>
113 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
114 template<
typename RequestIdT = Aws::String>
120 bool m_nameHasBeenSet =
false;
123 bool m_arnHasBeenSet =
false;
126 bool m_stateHasBeenSet =
false;
129 bool m_creationDateTimeHasBeenSet =
false;
131 bool m_deletionProtection{
false};
132 bool m_deletionProtectionHasBeenSet =
false;
134 LedgerEncryptionDescription m_encryptionDescription;
135 bool m_encryptionDescriptionHasBeenSet =
false;
138 bool m_requestIdHasBeenSet =
false;
AWS_QLDB_API UpdateLedgerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QLDB_API UpdateLedgerResult()=default
UpdateLedgerResult & WithCreationDateTime(CreationDateTimeT &&value)
void SetDeletionProtection(bool value)
const Aws::String & GetRequestId() const
void SetRequestId(RequestIdT &&value)
void SetArn(ArnT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
LedgerState GetState() const
UpdateLedgerResult & WithRequestId(RequestIdT &&value)
UpdateLedgerResult & WithName(NameT &&value)
UpdateLedgerResult & WithState(LedgerState value)
bool GetDeletionProtection() const
void SetState(LedgerState value)
void SetEncryptionDescription(EncryptionDescriptionT &&value)
const Aws::String & GetArn() const
void SetName(NameT &&value)
const LedgerEncryptionDescription & GetEncryptionDescription() const
UpdateLedgerResult & WithEncryptionDescription(EncryptionDescriptionT &&value)
UpdateLedgerResult & WithArn(ArnT &&value)
void SetCreationDateTime(CreationDateTimeT &&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