AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
StartImportResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/ImportSource.h>
9#include <aws/cloudtrail/model/ImportStatus.h>
10#include <aws/core/http/HttpResponse.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 StartImportResult() = 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 StartImportResult& 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 StartImportResult& WithDestinations(DestinationsT&& value) {
63 SetDestinations(std::forward<DestinationsT>(value));
64 return *this;
65 }
66 template <typename DestinationsT = Aws::String>
67 StartImportResult& 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 StartImportResult& 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 StartImportResult& 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 StartImportResult& WithEndEventTime(EndEventTimeT&& value) {
124 SetEndEventTime(std::forward<EndEventTimeT>(value));
125 return *this;
126 }
128
130
135 inline ImportStatus GetImportStatus() const { return m_importStatus; }
136 inline void SetImportStatus(ImportStatus value) {
137 m_importStatusHasBeenSet = true;
138 m_importStatus = value;
139 }
141 SetImportStatus(value);
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
151 template <typename CreatedTimestampT = Aws::Utils::DateTime>
152 void SetCreatedTimestamp(CreatedTimestampT&& value) {
153 m_createdTimestampHasBeenSet = true;
154 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
155 }
156 template <typename CreatedTimestampT = Aws::Utils::DateTime>
157 StartImportResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
158 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
168 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
169 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
170 m_updatedTimestampHasBeenSet = true;
171 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
172 }
173 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
174 StartImportResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
175 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
176 return *this;
177 }
179
181
182 inline const Aws::String& GetRequestId() const { return m_requestId; }
183 template <typename RequestIdT = Aws::String>
184 void SetRequestId(RequestIdT&& value) {
185 m_requestIdHasBeenSet = true;
186 m_requestId = std::forward<RequestIdT>(value);
187 }
188 template <typename RequestIdT = Aws::String>
189 StartImportResult& WithRequestId(RequestIdT&& value) {
190 SetRequestId(std::forward<RequestIdT>(value));
191 return *this;
192 }
194 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
195
196 private:
197 Aws::String m_importId;
198
199 Aws::Vector<Aws::String> m_destinations;
200
201 ImportSource m_importSource;
202
203 Aws::Utils::DateTime m_startEventTime{};
204
205 Aws::Utils::DateTime m_endEventTime{};
206
207 ImportStatus m_importStatus{ImportStatus::NOT_SET};
208
209 Aws::Utils::DateTime m_createdTimestamp{};
210
211 Aws::Utils::DateTime m_updatedTimestamp{};
212
213 Aws::String m_requestId;
214 Aws::Http::HttpResponseCode m_HttpResponseCode;
215 bool m_importIdHasBeenSet = false;
216 bool m_destinationsHasBeenSet = false;
217 bool m_importSourceHasBeenSet = false;
218 bool m_startEventTimeHasBeenSet = false;
219 bool m_endEventTimeHasBeenSet = false;
220 bool m_importStatusHasBeenSet = false;
221 bool m_createdTimestampHasBeenSet = false;
222 bool m_updatedTimestampHasBeenSet = false;
223 bool m_requestIdHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace CloudTrail
228} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
const Aws::Vector< Aws::String > & GetDestinations() const
StartImportResult & WithDestinations(DestinationsT &&value)
StartImportResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDTRAIL_API StartImportResult()=default
StartImportResult & WithImportStatus(ImportStatus value)
StartImportResult & WithImportSource(ImportSourceT &&value)
StartImportResult & WithUpdatedTimestamp(UpdatedTimestampT &&value)
StartImportResult & WithCreatedTimestamp(CreatedTimestampT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
StartImportResult & WithEndEventTime(EndEventTimeT &&value)
const Aws::Utils::DateTime & GetEndEventTime() const
void SetImportSource(ImportSourceT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
void SetUpdatedTimestamp(UpdatedTimestampT &&value)
StartImportResult & AddDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API StartImportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartImportResult & WithImportId(ImportIdT &&value)
void SetStartEventTime(StartEventTimeT &&value)
void SetDestinations(DestinationsT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
const ImportSource & GetImportSource() const
StartImportResult & WithStartEventTime(StartEventTimeT &&value)
const Aws::Utils::DateTime & GetStartEventTime() const
AWS_CLOUDTRAIL_API StartImportResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetEndEventTime(EndEventTimeT &&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