AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
GetImportResult.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 GetImportResult() = 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 GetImportResult& WithImportId(ImportIdT&& value) {
47 SetImportId(std::forward<ImportIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
57 template <typename DestinationsT = Aws::Vector<Aws::String>>
58 void SetDestinations(DestinationsT&& value) {
59 m_destinationsHasBeenSet = true;
60 m_destinations = std::forward<DestinationsT>(value);
61 }
62 template <typename DestinationsT = Aws::Vector<Aws::String>>
63 GetImportResult& WithDestinations(DestinationsT&& value) {
64 SetDestinations(std::forward<DestinationsT>(value));
65 return *this;
66 }
67 template <typename DestinationsT = Aws::String>
68 GetImportResult& AddDestinations(DestinationsT&& value) {
69 m_destinationsHasBeenSet = true;
70 m_destinations.emplace_back(std::forward<DestinationsT>(value));
71 return *this;
72 }
74
76
79 inline const ImportSource& GetImportSource() const { return m_importSource; }
80 template <typename ImportSourceT = ImportSource>
81 void SetImportSource(ImportSourceT&& value) {
82 m_importSourceHasBeenSet = true;
83 m_importSource = std::forward<ImportSourceT>(value);
84 }
85 template <typename ImportSourceT = ImportSource>
86 GetImportResult& WithImportSource(ImportSourceT&& value) {
87 SetImportSource(std::forward<ImportSourceT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::Utils::DateTime& GetStartEventTime() const { return m_startEventTime; }
99 template <typename StartEventTimeT = Aws::Utils::DateTime>
100 void SetStartEventTime(StartEventTimeT&& value) {
101 m_startEventTimeHasBeenSet = true;
102 m_startEventTime = std::forward<StartEventTimeT>(value);
103 }
104 template <typename StartEventTimeT = Aws::Utils::DateTime>
105 GetImportResult& WithStartEventTime(StartEventTimeT&& value) {
106 SetStartEventTime(std::forward<StartEventTimeT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::Utils::DateTime& GetEndEventTime() const { return m_endEventTime; }
118 template <typename EndEventTimeT = Aws::Utils::DateTime>
119 void SetEndEventTime(EndEventTimeT&& value) {
120 m_endEventTimeHasBeenSet = true;
121 m_endEventTime = std::forward<EndEventTimeT>(value);
122 }
123 template <typename EndEventTimeT = Aws::Utils::DateTime>
124 GetImportResult& WithEndEventTime(EndEventTimeT&& value) {
125 SetEndEventTime(std::forward<EndEventTimeT>(value));
126 return *this;
127 }
129
131
134 inline ImportStatus GetImportStatus() const { return m_importStatus; }
135 inline void SetImportStatus(ImportStatus value) {
136 m_importStatusHasBeenSet = true;
137 m_importStatus = value;
138 }
140 SetImportStatus(value);
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
150 template <typename CreatedTimestampT = Aws::Utils::DateTime>
151 void SetCreatedTimestamp(CreatedTimestampT&& value) {
152 m_createdTimestampHasBeenSet = true;
153 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
154 }
155 template <typename CreatedTimestampT = Aws::Utils::DateTime>
156 GetImportResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
157 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
167 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
168 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
169 m_updatedTimestampHasBeenSet = true;
170 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
171 }
172 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
173 GetImportResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
174 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
175 return *this;
176 }
178
180
186 inline const ImportStatistics& GetImportStatistics() const { return m_importStatistics; }
187 template <typename ImportStatisticsT = ImportStatistics>
188 void SetImportStatistics(ImportStatisticsT&& value) {
189 m_importStatisticsHasBeenSet = true;
190 m_importStatistics = std::forward<ImportStatisticsT>(value);
191 }
192 template <typename ImportStatisticsT = ImportStatistics>
193 GetImportResult& WithImportStatistics(ImportStatisticsT&& value) {
194 SetImportStatistics(std::forward<ImportStatisticsT>(value));
195 return *this;
196 }
198
200
201 inline const Aws::String& GetRequestId() const { return m_requestId; }
202 template <typename RequestIdT = Aws::String>
203 void SetRequestId(RequestIdT&& value) {
204 m_requestIdHasBeenSet = true;
205 m_requestId = std::forward<RequestIdT>(value);
206 }
207 template <typename RequestIdT = Aws::String>
208 GetImportResult& WithRequestId(RequestIdT&& value) {
209 SetRequestId(std::forward<RequestIdT>(value));
210 return *this;
211 }
213 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
214
215 private:
216 Aws::String m_importId;
217
218 Aws::Vector<Aws::String> m_destinations;
219
220 ImportSource m_importSource;
221
222 Aws::Utils::DateTime m_startEventTime{};
223
224 Aws::Utils::DateTime m_endEventTime{};
225
226 ImportStatus m_importStatus{ImportStatus::NOT_SET};
227
228 Aws::Utils::DateTime m_createdTimestamp{};
229
230 Aws::Utils::DateTime m_updatedTimestamp{};
231
232 ImportStatistics m_importStatistics;
233
234 Aws::String m_requestId;
235 Aws::Http::HttpResponseCode m_HttpResponseCode;
236 bool m_importIdHasBeenSet = false;
237 bool m_destinationsHasBeenSet = false;
238 bool m_importSourceHasBeenSet = false;
239 bool m_startEventTimeHasBeenSet = false;
240 bool m_endEventTimeHasBeenSet = false;
241 bool m_importStatusHasBeenSet = false;
242 bool m_createdTimestampHasBeenSet = false;
243 bool m_updatedTimestampHasBeenSet = false;
244 bool m_importStatisticsHasBeenSet = false;
245 bool m_requestIdHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace CloudTrail
250} // namespace Aws
void SetImportSource(ImportSourceT &&value)
GetImportResult & WithUpdatedTimestamp(UpdatedTimestampT &&value)
const Aws::String & GetRequestId() const
const ImportStatistics & GetImportStatistics() const
AWS_CLOUDTRAIL_API GetImportResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API GetImportResult()=default
GetImportResult & WithStartEventTime(StartEventTimeT &&value)
GetImportResult & WithImportId(ImportIdT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
GetImportResult & AddDestinations(DestinationsT &&value)
void SetStartEventTime(StartEventTimeT &&value)
const Aws::Utils::DateTime & GetStartEventTime() const
GetImportResult & WithImportStatistics(ImportStatisticsT &&value)
void SetImportStatistics(ImportStatisticsT &&value)
GetImportResult & WithDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API GetImportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDestinations(DestinationsT &&value)
GetImportResult & WithImportStatus(ImportStatus value)
GetImportResult & WithEndEventTime(EndEventTimeT &&value)
GetImportResult & WithImportSource(ImportSourceT &&value)
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
const Aws::Vector< Aws::String > & GetDestinations() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetImportResult & WithCreatedTimestamp(CreatedTimestampT &&value)
void SetEndEventTime(EndEventTimeT &&value)
void SetUpdatedTimestamp(UpdatedTimestampT &&value)
const Aws::Utils::DateTime & GetEndEventTime() const
GetImportResult & WithRequestId(RequestIdT &&value)
const ImportSource & GetImportSource() const
const Aws::String & GetImportId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue