AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateKxChangesetResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/finspace/Finspace_EXPORTS.h>
12#include <aws/finspace/model/ChangeRequest.h>
13#include <aws/finspace/model/ChangesetStatus.h>
14#include <aws/finspace/model/ErrorInfo.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace finspace {
28namespace Model {
30 public:
31 AWS_FINSPACE_API CreateKxChangesetResult() = default;
34
36
39 inline const Aws::String& GetChangesetId() const { return m_changesetId; }
40 template <typename ChangesetIdT = Aws::String>
41 void SetChangesetId(ChangesetIdT&& value) {
42 m_changesetIdHasBeenSet = true;
43 m_changesetId = std::forward<ChangesetIdT>(value);
44 }
45 template <typename ChangesetIdT = Aws::String>
47 SetChangesetId(std::forward<ChangesetIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
57 template <typename DatabaseNameT = Aws::String>
58 void SetDatabaseName(DatabaseNameT&& value) {
59 m_databaseNameHasBeenSet = true;
60 m_databaseName = std::forward<DatabaseNameT>(value);
61 }
62 template <typename DatabaseNameT = Aws::String>
63 CreateKxChangesetResult& WithDatabaseName(DatabaseNameT&& value) {
64 SetDatabaseName(std::forward<DatabaseNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
74 template <typename EnvironmentIdT = Aws::String>
75 void SetEnvironmentId(EnvironmentIdT&& value) {
76 m_environmentIdHasBeenSet = true;
77 m_environmentId = std::forward<EnvironmentIdT>(value);
78 }
79 template <typename EnvironmentIdT = Aws::String>
80 CreateKxChangesetResult& WithEnvironmentId(EnvironmentIdT&& value) {
81 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<ChangeRequest>& GetChangeRequests() const { return m_changeRequests; }
91 template <typename ChangeRequestsT = Aws::Vector<ChangeRequest>>
92 void SetChangeRequests(ChangeRequestsT&& value) {
93 m_changeRequestsHasBeenSet = true;
94 m_changeRequests = std::forward<ChangeRequestsT>(value);
95 }
96 template <typename ChangeRequestsT = Aws::Vector<ChangeRequest>>
97 CreateKxChangesetResult& WithChangeRequests(ChangeRequestsT&& value) {
98 SetChangeRequests(std::forward<ChangeRequestsT>(value));
99 return *this;
100 }
101 template <typename ChangeRequestsT = ChangeRequest>
102 CreateKxChangesetResult& AddChangeRequests(ChangeRequestsT&& value) {
103 m_changeRequestsHasBeenSet = true;
104 m_changeRequests.emplace_back(std::forward<ChangeRequestsT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
116 template <typename CreatedTimestampT = Aws::Utils::DateTime>
117 void SetCreatedTimestamp(CreatedTimestampT&& value) {
118 m_createdTimestampHasBeenSet = true;
119 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
120 }
121 template <typename CreatedTimestampT = Aws::Utils::DateTime>
122 CreateKxChangesetResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
123 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
124 return *this;
125 }
127
129
134 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
135 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
136 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) {
137 m_lastModifiedTimestampHasBeenSet = true;
138 m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value);
139 }
140 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
141 CreateKxChangesetResult& WithLastModifiedTimestamp(LastModifiedTimestampT&& value) {
142 SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value));
143 return *this;
144 }
146
148
154 inline ChangesetStatus GetStatus() const { return m_status; }
155 inline void SetStatus(ChangesetStatus value) {
156 m_statusHasBeenSet = true;
157 m_status = value;
158 }
160 SetStatus(value);
161 return *this;
162 }
164
166
170 inline const ErrorInfo& GetErrorInfo() const { return m_errorInfo; }
171 template <typename ErrorInfoT = ErrorInfo>
172 void SetErrorInfo(ErrorInfoT&& value) {
173 m_errorInfoHasBeenSet = true;
174 m_errorInfo = std::forward<ErrorInfoT>(value);
175 }
176 template <typename ErrorInfoT = ErrorInfo>
178 SetErrorInfo(std::forward<ErrorInfoT>(value));
179 return *this;
180 }
182
184
185 inline const Aws::String& GetRequestId() const { return m_requestId; }
186 template <typename RequestIdT = Aws::String>
187 void SetRequestId(RequestIdT&& value) {
188 m_requestIdHasBeenSet = true;
189 m_requestId = std::forward<RequestIdT>(value);
190 }
191 template <typename RequestIdT = Aws::String>
193 SetRequestId(std::forward<RequestIdT>(value));
194 return *this;
195 }
197 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
198
199 private:
200 Aws::String m_changesetId;
201
202 Aws::String m_databaseName;
203
204 Aws::String m_environmentId;
205
206 Aws::Vector<ChangeRequest> m_changeRequests;
207
208 Aws::Utils::DateTime m_createdTimestamp{};
209
210 Aws::Utils::DateTime m_lastModifiedTimestamp{};
211
213
214 ErrorInfo m_errorInfo;
215
216 Aws::String m_requestId;
217 Aws::Http::HttpResponseCode m_HttpResponseCode;
218 bool m_changesetIdHasBeenSet = false;
219 bool m_databaseNameHasBeenSet = false;
220 bool m_environmentIdHasBeenSet = false;
221 bool m_changeRequestsHasBeenSet = false;
222 bool m_createdTimestampHasBeenSet = false;
223 bool m_lastModifiedTimestampHasBeenSet = false;
224 bool m_statusHasBeenSet = false;
225 bool m_errorInfoHasBeenSet = false;
226 bool m_requestIdHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace finspace
231} // namespace Aws
AWS_FINSPACE_API CreateKxChangesetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateKxChangesetResult & WithChangeRequests(ChangeRequestsT &&value)
CreateKxChangesetResult & AddChangeRequests(ChangeRequestsT &&value)
CreateKxChangesetResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_FINSPACE_API CreateKxChangesetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateKxChangesetResult & WithStatus(ChangesetStatus value)
const Aws::Vector< ChangeRequest > & GetChangeRequests() const
void SetLastModifiedTimestamp(LastModifiedTimestampT &&value)
CreateKxChangesetResult & WithChangesetId(ChangesetIdT &&value)
const Aws::Utils::DateTime & GetLastModifiedTimestamp() const
const Aws::Utils::DateTime & GetCreatedTimestamp() const
CreateKxChangesetResult & WithDatabaseName(DatabaseNameT &&value)
CreateKxChangesetResult & WithLastModifiedTimestamp(LastModifiedTimestampT &&value)
AWS_FINSPACE_API CreateKxChangesetResult()=default
CreateKxChangesetResult & WithCreatedTimestamp(CreatedTimestampT &&value)
CreateKxChangesetResult & WithEnvironmentId(EnvironmentIdT &&value)
CreateKxChangesetResult & WithErrorInfo(ErrorInfoT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue