AWS SDK for C++

AWS SDK for C++ Version 1.11.686

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/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 StopImportResult() = 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 StopImportResult& WithImportId(ImportIdT&& value) {
46 SetImportId(std::forward<ImportIdT>(value));
47 return *this;
48 }
50
52
55 inline const ImportSource& GetImportSource() const { return m_importSource; }
56 template <typename ImportSourceT = ImportSource>
57 void SetImportSource(ImportSourceT&& value) {
58 m_importSourceHasBeenSet = true;
59 m_importSource = std::forward<ImportSourceT>(value);
60 }
61 template <typename ImportSourceT = ImportSource>
62 StopImportResult& WithImportSource(ImportSourceT&& value) {
63 SetImportSource(std::forward<ImportSourceT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
73 template <typename DestinationsT = Aws::Vector<Aws::String>>
74 void SetDestinations(DestinationsT&& value) {
75 m_destinationsHasBeenSet = true;
76 m_destinations = std::forward<DestinationsT>(value);
77 }
78 template <typename DestinationsT = Aws::Vector<Aws::String>>
79 StopImportResult& WithDestinations(DestinationsT&& value) {
80 SetDestinations(std::forward<DestinationsT>(value));
81 return *this;
82 }
83 template <typename DestinationsT = Aws::String>
84 StopImportResult& AddDestinations(DestinationsT&& value) {
85 m_destinationsHasBeenSet = true;
86 m_destinations.emplace_back(std::forward<DestinationsT>(value));
87 return *this;
88 }
90
92
95 inline ImportStatus GetImportStatus() const { return m_importStatus; }
96 inline void SetImportStatus(ImportStatus value) {
97 m_importStatusHasBeenSet = true;
98 m_importStatus = value;
99 }
101 SetImportStatus(value);
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
111 template <typename CreatedTimestampT = Aws::Utils::DateTime>
112 void SetCreatedTimestamp(CreatedTimestampT&& value) {
113 m_createdTimestampHasBeenSet = true;
114 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
115 }
116 template <typename CreatedTimestampT = Aws::Utils::DateTime>
117 StopImportResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
118 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
128 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
129 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
130 m_updatedTimestampHasBeenSet = true;
131 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
132 }
133 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
134 StopImportResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
135 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
136 return *this;
137 }
139
141
146 inline const Aws::Utils::DateTime& GetStartEventTime() const { return m_startEventTime; }
147 template <typename StartEventTimeT = Aws::Utils::DateTime>
148 void SetStartEventTime(StartEventTimeT&& value) {
149 m_startEventTimeHasBeenSet = true;
150 m_startEventTime = std::forward<StartEventTimeT>(value);
151 }
152 template <typename StartEventTimeT = Aws::Utils::DateTime>
153 StopImportResult& WithStartEventTime(StartEventTimeT&& value) {
154 SetStartEventTime(std::forward<StartEventTimeT>(value));
155 return *this;
156 }
158
160
165 inline const Aws::Utils::DateTime& GetEndEventTime() const { return m_endEventTime; }
166 template <typename EndEventTimeT = Aws::Utils::DateTime>
167 void SetEndEventTime(EndEventTimeT&& value) {
168 m_endEventTimeHasBeenSet = true;
169 m_endEventTime = std::forward<EndEventTimeT>(value);
170 }
171 template <typename EndEventTimeT = Aws::Utils::DateTime>
172 StopImportResult& WithEndEventTime(EndEventTimeT&& value) {
173 SetEndEventTime(std::forward<EndEventTimeT>(value));
174 return *this;
175 }
177
179
182 inline const ImportStatistics& GetImportStatistics() const { return m_importStatistics; }
183 template <typename ImportStatisticsT = ImportStatistics>
184 void SetImportStatistics(ImportStatisticsT&& value) {
185 m_importStatisticsHasBeenSet = true;
186 m_importStatistics = std::forward<ImportStatisticsT>(value);
187 }
188 template <typename ImportStatisticsT = ImportStatistics>
189 StopImportResult& WithImportStatistics(ImportStatisticsT&& value) {
190 SetImportStatistics(std::forward<ImportStatisticsT>(value));
191 return *this;
192 }
194
196
197 inline const Aws::String& GetRequestId() const { return m_requestId; }
198 template <typename RequestIdT = Aws::String>
199 void SetRequestId(RequestIdT&& value) {
200 m_requestIdHasBeenSet = true;
201 m_requestId = std::forward<RequestIdT>(value);
202 }
203 template <typename RequestIdT = Aws::String>
204 StopImportResult& WithRequestId(RequestIdT&& value) {
205 SetRequestId(std::forward<RequestIdT>(value));
206 return *this;
207 }
209 private:
210 Aws::String m_importId;
211 bool m_importIdHasBeenSet = false;
212
213 ImportSource m_importSource;
214 bool m_importSourceHasBeenSet = false;
215
216 Aws::Vector<Aws::String> m_destinations;
217 bool m_destinationsHasBeenSet = false;
218
219 ImportStatus m_importStatus{ImportStatus::NOT_SET};
220 bool m_importStatusHasBeenSet = false;
221
222 Aws::Utils::DateTime m_createdTimestamp{};
223 bool m_createdTimestampHasBeenSet = false;
224
225 Aws::Utils::DateTime m_updatedTimestamp{};
226 bool m_updatedTimestampHasBeenSet = false;
227
228 Aws::Utils::DateTime m_startEventTime{};
229 bool m_startEventTimeHasBeenSet = false;
230
231 Aws::Utils::DateTime m_endEventTime{};
232 bool m_endEventTimeHasBeenSet = false;
233
234 ImportStatistics m_importStatistics;
235 bool m_importStatisticsHasBeenSet = false;
236
237 Aws::String m_requestId;
238 bool m_requestIdHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace CloudTrail
243} // 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_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