AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetImportResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/cloudtrail/model/ImportSource.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/cloudtrail/model/ImportStatus.h>
13#include <aws/cloudtrail/model/ImportStatistics.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CloudTrail
29{
30namespace Model
31{
33 {
34 public:
35 AWS_CLOUDTRAIL_API GetImportResult() = default;
38
39
41
44 inline const Aws::String& GetImportId() const { return m_importId; }
45 template<typename ImportIdT = Aws::String>
46 void SetImportId(ImportIdT&& value) { m_importIdHasBeenSet = true; m_importId = std::forward<ImportIdT>(value); }
47 template<typename ImportIdT = Aws::String>
48 GetImportResult& WithImportId(ImportIdT&& value) { SetImportId(std::forward<ImportIdT>(value)); return *this;}
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) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
58 template<typename DestinationsT = Aws::Vector<Aws::String>>
59 GetImportResult& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
60 template<typename DestinationsT = Aws::String>
61 GetImportResult& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
63
65
68 inline const ImportSource& GetImportSource() const { return m_importSource; }
69 template<typename ImportSourceT = ImportSource>
70 void SetImportSource(ImportSourceT&& value) { m_importSourceHasBeenSet = true; m_importSource = std::forward<ImportSourceT>(value); }
71 template<typename ImportSourceT = ImportSource>
72 GetImportResult& WithImportSource(ImportSourceT&& value) { SetImportSource(std::forward<ImportSourceT>(value)); return *this;}
74
76
81 inline const Aws::Utils::DateTime& GetStartEventTime() const { return m_startEventTime; }
82 template<typename StartEventTimeT = Aws::Utils::DateTime>
83 void SetStartEventTime(StartEventTimeT&& value) { m_startEventTimeHasBeenSet = true; m_startEventTime = std::forward<StartEventTimeT>(value); }
84 template<typename StartEventTimeT = Aws::Utils::DateTime>
85 GetImportResult& WithStartEventTime(StartEventTimeT&& value) { SetStartEventTime(std::forward<StartEventTimeT>(value)); return *this;}
87
89
94 inline const Aws::Utils::DateTime& GetEndEventTime() const { return m_endEventTime; }
95 template<typename EndEventTimeT = Aws::Utils::DateTime>
96 void SetEndEventTime(EndEventTimeT&& value) { m_endEventTimeHasBeenSet = true; m_endEventTime = std::forward<EndEventTimeT>(value); }
97 template<typename EndEventTimeT = Aws::Utils::DateTime>
98 GetImportResult& WithEndEventTime(EndEventTimeT&& value) { SetEndEventTime(std::forward<EndEventTimeT>(value)); return *this;}
100
102
105 inline ImportStatus GetImportStatus() const { return m_importStatus; }
106 inline void SetImportStatus(ImportStatus value) { m_importStatusHasBeenSet = true; m_importStatus = value; }
107 inline GetImportResult& WithImportStatus(ImportStatus value) { SetImportStatus(value); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
115 template<typename CreatedTimestampT = Aws::Utils::DateTime>
116 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
117 template<typename CreatedTimestampT = Aws::Utils::DateTime>
118 GetImportResult& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
120
122
125 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
126 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
127 void SetUpdatedTimestamp(UpdatedTimestampT&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::forward<UpdatedTimestampT>(value); }
128 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
129 GetImportResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) { SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value)); return *this;}
131
133
139 inline const ImportStatistics& GetImportStatistics() const { return m_importStatistics; }
140 template<typename ImportStatisticsT = ImportStatistics>
141 void SetImportStatistics(ImportStatisticsT&& value) { m_importStatisticsHasBeenSet = true; m_importStatistics = std::forward<ImportStatisticsT>(value); }
142 template<typename ImportStatisticsT = ImportStatistics>
143 GetImportResult& WithImportStatistics(ImportStatisticsT&& value) { SetImportStatistics(std::forward<ImportStatisticsT>(value)); return *this;}
145
147
148 inline const Aws::String& GetRequestId() const { return m_requestId; }
149 template<typename RequestIdT = Aws::String>
150 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
151 template<typename RequestIdT = Aws::String>
152 GetImportResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
154 private:
155
156 Aws::String m_importId;
157 bool m_importIdHasBeenSet = false;
158
159 Aws::Vector<Aws::String> m_destinations;
160 bool m_destinationsHasBeenSet = false;
161
162 ImportSource m_importSource;
163 bool m_importSourceHasBeenSet = false;
164
165 Aws::Utils::DateTime m_startEventTime{};
166 bool m_startEventTimeHasBeenSet = false;
167
168 Aws::Utils::DateTime m_endEventTime{};
169 bool m_endEventTimeHasBeenSet = false;
170
171 ImportStatus m_importStatus{ImportStatus::NOT_SET};
172 bool m_importStatusHasBeenSet = false;
173
174 Aws::Utils::DateTime m_createdTimestamp{};
175 bool m_createdTimestampHasBeenSet = false;
176
177 Aws::Utils::DateTime m_updatedTimestamp{};
178 bool m_updatedTimestampHasBeenSet = false;
179
180 ImportStatistics m_importStatistics;
181 bool m_importStatisticsHasBeenSet = false;
182
183 Aws::String m_requestId;
184 bool m_requestIdHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace CloudTrail
189} // 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