AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StopImportResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudtrail/model/ImportSource.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/ImportStatus.h>
12#include <aws/core/utils/DateTime.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 StopImportResult() = 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 StopImportResult& WithImportId(ImportIdT&& value) { SetImportId(std::forward<ImportIdT>(value)); return *this;}
50
52
55 inline const ImportSource& GetImportSource() const { return m_importSource; }
56 template<typename ImportSourceT = ImportSource>
57 void SetImportSource(ImportSourceT&& value) { m_importSourceHasBeenSet = true; m_importSource = std::forward<ImportSourceT>(value); }
58 template<typename ImportSourceT = ImportSource>
59 StopImportResult& WithImportSource(ImportSourceT&& value) { SetImportSource(std::forward<ImportSourceT>(value)); return *this;}
61
63
66 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
67 template<typename DestinationsT = Aws::Vector<Aws::String>>
68 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
69 template<typename DestinationsT = Aws::Vector<Aws::String>>
70 StopImportResult& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
71 template<typename DestinationsT = Aws::String>
72 StopImportResult& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
74
76
79 inline ImportStatus GetImportStatus() const { return m_importStatus; }
80 inline void SetImportStatus(ImportStatus value) { m_importStatusHasBeenSet = true; m_importStatus = value; }
81 inline StopImportResult& WithImportStatus(ImportStatus value) { SetImportStatus(value); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
89 template<typename CreatedTimestampT = Aws::Utils::DateTime>
90 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
91 template<typename CreatedTimestampT = Aws::Utils::DateTime>
92 StopImportResult& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
100 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
101 void SetUpdatedTimestamp(UpdatedTimestampT&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::forward<UpdatedTimestampT>(value); }
102 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
103 StopImportResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) { SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value)); return *this;}
105
107
112 inline const Aws::Utils::DateTime& GetStartEventTime() const { return m_startEventTime; }
113 template<typename StartEventTimeT = Aws::Utils::DateTime>
114 void SetStartEventTime(StartEventTimeT&& value) { m_startEventTimeHasBeenSet = true; m_startEventTime = std::forward<StartEventTimeT>(value); }
115 template<typename StartEventTimeT = Aws::Utils::DateTime>
116 StopImportResult& WithStartEventTime(StartEventTimeT&& value) { SetStartEventTime(std::forward<StartEventTimeT>(value)); return *this;}
118
120
125 inline const Aws::Utils::DateTime& GetEndEventTime() const { return m_endEventTime; }
126 template<typename EndEventTimeT = Aws::Utils::DateTime>
127 void SetEndEventTime(EndEventTimeT&& value) { m_endEventTimeHasBeenSet = true; m_endEventTime = std::forward<EndEventTimeT>(value); }
128 template<typename EndEventTimeT = Aws::Utils::DateTime>
129 StopImportResult& WithEndEventTime(EndEventTimeT&& value) { SetEndEventTime(std::forward<EndEventTimeT>(value)); return *this;}
131
133
136 inline const ImportStatistics& GetImportStatistics() const { return m_importStatistics; }
137 template<typename ImportStatisticsT = ImportStatistics>
138 void SetImportStatistics(ImportStatisticsT&& value) { m_importStatisticsHasBeenSet = true; m_importStatistics = std::forward<ImportStatisticsT>(value); }
139 template<typename ImportStatisticsT = ImportStatistics>
140 StopImportResult& WithImportStatistics(ImportStatisticsT&& value) { SetImportStatistics(std::forward<ImportStatisticsT>(value)); return *this;}
142
144
145 inline const Aws::String& GetRequestId() const { return m_requestId; }
146 template<typename RequestIdT = Aws::String>
147 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
148 template<typename RequestIdT = Aws::String>
149 StopImportResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
151 private:
152
153 Aws::String m_importId;
154 bool m_importIdHasBeenSet = false;
155
156 ImportSource m_importSource;
157 bool m_importSourceHasBeenSet = false;
158
159 Aws::Vector<Aws::String> m_destinations;
160 bool m_destinationsHasBeenSet = false;
161
162 ImportStatus m_importStatus{ImportStatus::NOT_SET};
163 bool m_importStatusHasBeenSet = false;
164
165 Aws::Utils::DateTime m_createdTimestamp{};
166 bool m_createdTimestampHasBeenSet = false;
167
168 Aws::Utils::DateTime m_updatedTimestamp{};
169 bool m_updatedTimestampHasBeenSet = false;
170
171 Aws::Utils::DateTime m_startEventTime{};
172 bool m_startEventTimeHasBeenSet = false;
173
174 Aws::Utils::DateTime m_endEventTime{};
175 bool m_endEventTimeHasBeenSet = false;
176
177 ImportStatistics m_importStatistics;
178 bool m_importStatisticsHasBeenSet = false;
179
180 Aws::String m_requestId;
181 bool m_requestIdHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace CloudTrail
186} // 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