AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CloudTrail {
26namespace Model {
28 public:
29 AWS_CLOUDTRAIL_API StartImportResult() = default;
32
34
37 inline const Aws::String& GetImportId() const { return m_importId; }
38 template <typename ImportIdT = Aws::String>
39 void SetImportId(ImportIdT&& value) {
40 m_importIdHasBeenSet = true;
41 m_importId = std::forward<ImportIdT>(value);
42 }
43 template <typename ImportIdT = Aws::String>
44 StartImportResult& WithImportId(ImportIdT&& value) {
45 SetImportId(std::forward<ImportIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
55 template <typename DestinationsT = Aws::Vector<Aws::String>>
56 void SetDestinations(DestinationsT&& value) {
57 m_destinationsHasBeenSet = true;
58 m_destinations = std::forward<DestinationsT>(value);
59 }
60 template <typename DestinationsT = Aws::Vector<Aws::String>>
61 StartImportResult& WithDestinations(DestinationsT&& value) {
62 SetDestinations(std::forward<DestinationsT>(value));
63 return *this;
64 }
65 template <typename DestinationsT = Aws::String>
66 StartImportResult& AddDestinations(DestinationsT&& value) {
67 m_destinationsHasBeenSet = true;
68 m_destinations.emplace_back(std::forward<DestinationsT>(value));
69 return *this;
70 }
72
74
77 inline const ImportSource& GetImportSource() const { return m_importSource; }
78 template <typename ImportSourceT = ImportSource>
79 void SetImportSource(ImportSourceT&& value) {
80 m_importSourceHasBeenSet = true;
81 m_importSource = std::forward<ImportSourceT>(value);
82 }
83 template <typename ImportSourceT = ImportSource>
84 StartImportResult& WithImportSource(ImportSourceT&& value) {
85 SetImportSource(std::forward<ImportSourceT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::Utils::DateTime& GetStartEventTime() const { return m_startEventTime; }
97 template <typename StartEventTimeT = Aws::Utils::DateTime>
98 void SetStartEventTime(StartEventTimeT&& value) {
99 m_startEventTimeHasBeenSet = true;
100 m_startEventTime = std::forward<StartEventTimeT>(value);
101 }
102 template <typename StartEventTimeT = Aws::Utils::DateTime>
103 StartImportResult& WithStartEventTime(StartEventTimeT&& value) {
104 SetStartEventTime(std::forward<StartEventTimeT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::Utils::DateTime& GetEndEventTime() const { return m_endEventTime; }
116 template <typename EndEventTimeT = Aws::Utils::DateTime>
117 void SetEndEventTime(EndEventTimeT&& value) {
118 m_endEventTimeHasBeenSet = true;
119 m_endEventTime = std::forward<EndEventTimeT>(value);
120 }
121 template <typename EndEventTimeT = Aws::Utils::DateTime>
122 StartImportResult& WithEndEventTime(EndEventTimeT&& value) {
123 SetEndEventTime(std::forward<EndEventTimeT>(value));
124 return *this;
125 }
127
129
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 StartImportResult& 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 StartImportResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
174 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
175 return *this;
176 }
178
180
181 inline const Aws::String& GetRequestId() const { return m_requestId; }
182 template <typename RequestIdT = Aws::String>
183 void SetRequestId(RequestIdT&& value) {
184 m_requestIdHasBeenSet = true;
185 m_requestId = std::forward<RequestIdT>(value);
186 }
187 template <typename RequestIdT = Aws::String>
188 StartImportResult& WithRequestId(RequestIdT&& value) {
189 SetRequestId(std::forward<RequestIdT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_importId;
195
196 Aws::Vector<Aws::String> m_destinations;
197
198 ImportSource m_importSource;
199
200 Aws::Utils::DateTime m_startEventTime{};
201
202 Aws::Utils::DateTime m_endEventTime{};
203
204 ImportStatus m_importStatus{ImportStatus::NOT_SET};
205
206 Aws::Utils::DateTime m_createdTimestamp{};
207
208 Aws::Utils::DateTime m_updatedTimestamp{};
209
210 Aws::String m_requestId;
211 bool m_importIdHasBeenSet = false;
212 bool m_destinationsHasBeenSet = false;
213 bool m_importSourceHasBeenSet = false;
214 bool m_startEventTimeHasBeenSet = false;
215 bool m_endEventTimeHasBeenSet = false;
216 bool m_importStatusHasBeenSet = false;
217 bool m_createdTimestampHasBeenSet = false;
218 bool m_updatedTimestampHasBeenSet = false;
219 bool m_requestIdHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace CloudTrail
224} // 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)
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