AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CloudTrail {
27namespace Model {
29 public:
30 AWS_CLOUDTRAIL_API GetImportResult() = default;
33
35
38 inline const Aws::String& GetImportId() const { return m_importId; }
39 template <typename ImportIdT = Aws::String>
40 void SetImportId(ImportIdT&& value) {
41 m_importIdHasBeenSet = true;
42 m_importId = std::forward<ImportIdT>(value);
43 }
44 template <typename ImportIdT = Aws::String>
45 GetImportResult& WithImportId(ImportIdT&& value) {
46 SetImportId(std::forward<ImportIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
56 template <typename DestinationsT = Aws::Vector<Aws::String>>
57 void SetDestinations(DestinationsT&& value) {
58 m_destinationsHasBeenSet = true;
59 m_destinations = std::forward<DestinationsT>(value);
60 }
61 template <typename DestinationsT = Aws::Vector<Aws::String>>
62 GetImportResult& WithDestinations(DestinationsT&& value) {
63 SetDestinations(std::forward<DestinationsT>(value));
64 return *this;
65 }
66 template <typename DestinationsT = Aws::String>
67 GetImportResult& AddDestinations(DestinationsT&& value) {
68 m_destinationsHasBeenSet = true;
69 m_destinations.emplace_back(std::forward<DestinationsT>(value));
70 return *this;
71 }
73
75
78 inline const ImportSource& GetImportSource() const { return m_importSource; }
79 template <typename ImportSourceT = ImportSource>
80 void SetImportSource(ImportSourceT&& value) {
81 m_importSourceHasBeenSet = true;
82 m_importSource = std::forward<ImportSourceT>(value);
83 }
84 template <typename ImportSourceT = ImportSource>
85 GetImportResult& WithImportSource(ImportSourceT&& value) {
86 SetImportSource(std::forward<ImportSourceT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::Utils::DateTime& GetStartEventTime() const { return m_startEventTime; }
98 template <typename StartEventTimeT = Aws::Utils::DateTime>
99 void SetStartEventTime(StartEventTimeT&& value) {
100 m_startEventTimeHasBeenSet = true;
101 m_startEventTime = std::forward<StartEventTimeT>(value);
102 }
103 template <typename StartEventTimeT = Aws::Utils::DateTime>
104 GetImportResult& WithStartEventTime(StartEventTimeT&& value) {
105 SetStartEventTime(std::forward<StartEventTimeT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::Utils::DateTime& GetEndEventTime() const { return m_endEventTime; }
117 template <typename EndEventTimeT = Aws::Utils::DateTime>
118 void SetEndEventTime(EndEventTimeT&& value) {
119 m_endEventTimeHasBeenSet = true;
120 m_endEventTime = std::forward<EndEventTimeT>(value);
121 }
122 template <typename EndEventTimeT = Aws::Utils::DateTime>
123 GetImportResult& WithEndEventTime(EndEventTimeT&& value) {
124 SetEndEventTime(std::forward<EndEventTimeT>(value));
125 return *this;
126 }
128
130
133 inline ImportStatus GetImportStatus() const { return m_importStatus; }
134 inline void SetImportStatus(ImportStatus value) {
135 m_importStatusHasBeenSet = true;
136 m_importStatus = value;
137 }
139 SetImportStatus(value);
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
149 template <typename CreatedTimestampT = Aws::Utils::DateTime>
150 void SetCreatedTimestamp(CreatedTimestampT&& value) {
151 m_createdTimestampHasBeenSet = true;
152 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
153 }
154 template <typename CreatedTimestampT = Aws::Utils::DateTime>
155 GetImportResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
156 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
166 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
167 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
168 m_updatedTimestampHasBeenSet = true;
169 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
170 }
171 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
172 GetImportResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
173 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
174 return *this;
175 }
177
179
185 inline const ImportStatistics& GetImportStatistics() const { return m_importStatistics; }
186 template <typename ImportStatisticsT = ImportStatistics>
187 void SetImportStatistics(ImportStatisticsT&& value) {
188 m_importStatisticsHasBeenSet = true;
189 m_importStatistics = std::forward<ImportStatisticsT>(value);
190 }
191 template <typename ImportStatisticsT = ImportStatistics>
192 GetImportResult& WithImportStatistics(ImportStatisticsT&& value) {
193 SetImportStatistics(std::forward<ImportStatisticsT>(value));
194 return *this;
195 }
197
199
200 inline const Aws::String& GetRequestId() const { return m_requestId; }
201 template <typename RequestIdT = Aws::String>
202 void SetRequestId(RequestIdT&& value) {
203 m_requestIdHasBeenSet = true;
204 m_requestId = std::forward<RequestIdT>(value);
205 }
206 template <typename RequestIdT = Aws::String>
207 GetImportResult& WithRequestId(RequestIdT&& value) {
208 SetRequestId(std::forward<RequestIdT>(value));
209 return *this;
210 }
212 private:
213 Aws::String m_importId;
214
215 Aws::Vector<Aws::String> m_destinations;
216
217 ImportSource m_importSource;
218
219 Aws::Utils::DateTime m_startEventTime{};
220
221 Aws::Utils::DateTime m_endEventTime{};
222
223 ImportStatus m_importStatus{ImportStatus::NOT_SET};
224
225 Aws::Utils::DateTime m_createdTimestamp{};
226
227 Aws::Utils::DateTime m_updatedTimestamp{};
228
229 ImportStatistics m_importStatistics;
230
231 Aws::String m_requestId;
232 bool m_importIdHasBeenSet = false;
233 bool m_destinationsHasBeenSet = false;
234 bool m_importSourceHasBeenSet = false;
235 bool m_startEventTimeHasBeenSet = false;
236 bool m_endEventTimeHasBeenSet = false;
237 bool m_importStatusHasBeenSet = false;
238 bool m_createdTimestampHasBeenSet = false;
239 bool m_updatedTimestampHasBeenSet = false;
240 bool m_importStatisticsHasBeenSet = false;
241 bool m_requestIdHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace CloudTrail
246} // 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)
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