AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
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>
46 UpdateLedgerResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
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>
57 UpdateLedgerResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
59
61
64 inline LedgerState GetState() const { return m_state; }
65 inline void SetState(LedgerState value) { m_stateHasBeenSet = true; m_state = value; }
66 inline UpdateLedgerResult& WithState(LedgerState value) { SetState(value); return *this;}
68
70
75 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
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>
79 UpdateLedgerResult& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
81
83
91 inline bool GetDeletionProtection() const { return m_deletionProtection; }
92 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
93 inline UpdateLedgerResult& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
95
97
102 inline const LedgerEncryptionDescription& GetEncryptionDescription() const { return m_encryptionDescription; }
103 template<typename EncryptionDescriptionT = LedgerEncryptionDescription>
104 void SetEncryptionDescription(EncryptionDescriptionT&& value) { m_encryptionDescriptionHasBeenSet = true; m_encryptionDescription = std::forward<EncryptionDescriptionT>(value); }
105 template<typename EncryptionDescriptionT = LedgerEncryptionDescription>
106 UpdateLedgerResult& WithEncryptionDescription(EncryptionDescriptionT&& value) { SetEncryptionDescription(std::forward<EncryptionDescriptionT>(value)); return *this;}
108
110
111 inline const Aws::String& GetRequestId() const { return m_requestId; }
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>
115 UpdateLedgerResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
117 private:
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
122 Aws::String m_arn;
123 bool m_arnHasBeenSet = false;
124
126 bool m_stateHasBeenSet = false;
127
128 Aws::Utils::DateTime m_creationDateTime{};
129 bool m_creationDateTimeHasBeenSet = false;
130
131 bool m_deletionProtection{false};
132 bool m_deletionProtectionHasBeenSet = false;
133
134 LedgerEncryptionDescription m_encryptionDescription;
135 bool m_encryptionDescriptionHasBeenSet = false;
136
137 Aws::String m_requestId;
138 bool m_requestIdHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace QLDB
143} // namespace Aws
AWS_QLDB_API UpdateLedgerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QLDB_API UpdateLedgerResult()=default
UpdateLedgerResult & WithCreationDateTime(CreationDateTimeT &&value)
const Aws::String & GetRequestId() const
const Aws::Utils::DateTime & GetCreationDateTime() const
UpdateLedgerResult & WithRequestId(RequestIdT &&value)
UpdateLedgerResult & WithName(NameT &&value)
UpdateLedgerResult & WithState(LedgerState value)
void SetEncryptionDescription(EncryptionDescriptionT &&value)
const Aws::String & GetArn() const
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