AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
StopImportResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/ImportSource.h>
9#include <aws/cloudtrail/model/ImportStatistics.h>
10#include <aws/cloudtrail/model/ImportStatus.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.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 CloudTrail {
28namespace Model {
30 public:
31 AWS_CLOUDTRAIL_API StopImportResult() = default;
34
36
39 inline const Aws::String& GetImportId() const { return m_importId; }
40 template <typename ImportIdT = Aws::String>
41 void SetImportId(ImportIdT&& value) {
42 m_importIdHasBeenSet = true;
43 m_importId = std::forward<ImportIdT>(value);
44 }
45 template <typename ImportIdT = Aws::String>
46 StopImportResult& WithImportId(ImportIdT&& value) {
47 SetImportId(std::forward<ImportIdT>(value));
48 return *this;
49 }
51
53
56 inline const ImportSource& GetImportSource() const { return m_importSource; }
57 template <typename ImportSourceT = ImportSource>
58 void SetImportSource(ImportSourceT&& value) {
59 m_importSourceHasBeenSet = true;
60 m_importSource = std::forward<ImportSourceT>(value);
61 }
62 template <typename ImportSourceT = ImportSource>
63 StopImportResult& WithImportSource(ImportSourceT&& value) {
64 SetImportSource(std::forward<ImportSourceT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
74 template <typename DestinationsT = Aws::Vector<Aws::String>>
75 void SetDestinations(DestinationsT&& value) {
76 m_destinationsHasBeenSet = true;
77 m_destinations = std::forward<DestinationsT>(value);
78 }
79 template <typename DestinationsT = Aws::Vector<Aws::String>>
80 StopImportResult& WithDestinations(DestinationsT&& value) {
81 SetDestinations(std::forward<DestinationsT>(value));
82 return *this;
83 }
84 template <typename DestinationsT = Aws::String>
85 StopImportResult& AddDestinations(DestinationsT&& value) {
86 m_destinationsHasBeenSet = true;
87 m_destinations.emplace_back(std::forward<DestinationsT>(value));
88 return *this;
89 }
91
93
96 inline ImportStatus GetImportStatus() const { return m_importStatus; }
97 inline void SetImportStatus(ImportStatus value) {
98 m_importStatusHasBeenSet = true;
99 m_importStatus = value;
100 }
102 SetImportStatus(value);
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
112 template <typename CreatedTimestampT = Aws::Utils::DateTime>
113 void SetCreatedTimestamp(CreatedTimestampT&& value) {
114 m_createdTimestampHasBeenSet = true;
115 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
116 }
117 template <typename CreatedTimestampT = Aws::Utils::DateTime>
118 StopImportResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
119 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
129 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
130 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
131 m_updatedTimestampHasBeenSet = true;
132 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
133 }
134 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
135 StopImportResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
136 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
137 return *this;
138 }
140
142
147 inline const Aws::Utils::DateTime& GetStartEventTime() const { return m_startEventTime; }
148 template <typename StartEventTimeT = Aws::Utils::DateTime>
149 void SetStartEventTime(StartEventTimeT&& value) {
150 m_startEventTimeHasBeenSet = true;
151 m_startEventTime = std::forward<StartEventTimeT>(value);
152 }
153 template <typename StartEventTimeT = Aws::Utils::DateTime>
154 StopImportResult& WithStartEventTime(StartEventTimeT&& value) {
155 SetStartEventTime(std::forward<StartEventTimeT>(value));
156 return *this;
157 }
159
161
166 inline const Aws::Utils::DateTime& GetEndEventTime() const { return m_endEventTime; }
167 template <typename EndEventTimeT = Aws::Utils::DateTime>
168 void SetEndEventTime(EndEventTimeT&& value) {
169 m_endEventTimeHasBeenSet = true;
170 m_endEventTime = std::forward<EndEventTimeT>(value);
171 }
172 template <typename EndEventTimeT = Aws::Utils::DateTime>
173 StopImportResult& WithEndEventTime(EndEventTimeT&& value) {
174 SetEndEventTime(std::forward<EndEventTimeT>(value));
175 return *this;
176 }
178
180
183 inline const ImportStatistics& GetImportStatistics() const { return m_importStatistics; }
184 template <typename ImportStatisticsT = ImportStatistics>
185 void SetImportStatistics(ImportStatisticsT&& value) {
186 m_importStatisticsHasBeenSet = true;
187 m_importStatistics = std::forward<ImportStatisticsT>(value);
188 }
189 template <typename ImportStatisticsT = ImportStatistics>
190 StopImportResult& WithImportStatistics(ImportStatisticsT&& value) {
191 SetImportStatistics(std::forward<ImportStatisticsT>(value));
192 return *this;
193 }
195
197
198 inline const Aws::String& GetRequestId() const { return m_requestId; }
199 template <typename RequestIdT = Aws::String>
200 void SetRequestId(RequestIdT&& value) {
201 m_requestIdHasBeenSet = true;
202 m_requestId = std::forward<RequestIdT>(value);
203 }
204 template <typename RequestIdT = Aws::String>
205 StopImportResult& WithRequestId(RequestIdT&& value) {
206 SetRequestId(std::forward<RequestIdT>(value));
207 return *this;
208 }
210 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
211
212 private:
213 Aws::String m_importId;
214
215 ImportSource m_importSource;
216
217 Aws::Vector<Aws::String> m_destinations;
218
219 ImportStatus m_importStatus{ImportStatus::NOT_SET};
220
221 Aws::Utils::DateTime m_createdTimestamp{};
222
223 Aws::Utils::DateTime m_updatedTimestamp{};
224
225 Aws::Utils::DateTime m_startEventTime{};
226
227 Aws::Utils::DateTime m_endEventTime{};
228
229 ImportStatistics m_importStatistics;
230
231 Aws::String m_requestId;
232 Aws::Http::HttpResponseCode m_HttpResponseCode;
233 bool m_importIdHasBeenSet = false;
234 bool m_importSourceHasBeenSet = false;
235 bool m_destinationsHasBeenSet = false;
236 bool m_importStatusHasBeenSet = false;
237 bool m_createdTimestampHasBeenSet = false;
238 bool m_updatedTimestampHasBeenSet = false;
239 bool m_startEventTimeHasBeenSet = false;
240 bool m_endEventTimeHasBeenSet = false;
241 bool m_importStatisticsHasBeenSet = false;
242 bool m_requestIdHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace CloudTrail
247} // namespace Aws
StopImportResult & WithImportStatistics(ImportStatisticsT &&value)
StopImportResult & AddDestinations(DestinationsT &&value)
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
StopImportResult & WithImportSource(ImportSourceT &&value)
StopImportResult & WithCreatedTimestamp(CreatedTimestampT &&value)
void SetUpdatedTimestamp(UpdatedTimestampT &&value)
StopImportResult & WithImportStatus(ImportStatus value)
void SetDestinations(DestinationsT &&value)
const Aws::Utils::DateTime & GetStartEventTime() const
const Aws::String & GetImportId() const
const ImportSource & GetImportSource() const
const Aws::Utils::DateTime & GetCreatedTimestamp() const
StopImportResult & WithStartEventTime(StartEventTimeT &&value)
const Aws::Vector< Aws::String > & GetDestinations() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CLOUDTRAIL_API StopImportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API StopImportResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCreatedTimestamp(CreatedTimestampT &&value)
void SetImportStatistics(ImportStatisticsT &&value)
StopImportResult & WithUpdatedTimestamp(UpdatedTimestampT &&value)
StopImportResult & WithDestinations(DestinationsT &&value)
void SetEndEventTime(EndEventTimeT &&value)
void SetImportSource(ImportSourceT &&value)
const Aws::String & GetRequestId() const
void SetStartEventTime(StartEventTimeT &&value)
AWS_CLOUDTRAIL_API StopImportResult()=default
const Aws::Utils::DateTime & GetEndEventTime() const
StopImportResult & WithRequestId(RequestIdT &&value)
StopImportResult & WithEndEventTime(EndEventTimeT &&value)
const ImportStatistics & GetImportStatistics() const
StopImportResult & WithImportId(ImportIdT &&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