AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
ExportSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/ExportDataType.h>
11#include <aws/securityhub/model/ExportDestination.h>
12#include <aws/securityhub/model/ExportFailureCode.h>
13#include <aws/securityhub/model/ExportOutputSummary.h>
14#include <aws/securityhub/model/ExportScopes.h>
15#include <aws/securityhub/model/ExportStatus.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityHub {
27namespace Model {
28
36 public:
37 AWS_SECURITYHUB_API ExportSummary() = default;
38 AWS_SECURITYHUB_API ExportSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API ExportSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetExportJobId() const { return m_exportJobId; }
47 inline bool ExportJobIdHasBeenSet() const { return m_exportJobIdHasBeenSet; }
48 template <typename ExportJobIdT = Aws::String>
49 void SetExportJobId(ExportJobIdT&& value) {
50 m_exportJobIdHasBeenSet = true;
51 m_exportJobId = std::forward<ExportJobIdT>(value);
52 }
53 template <typename ExportJobIdT = Aws::String>
54 ExportSummary& WithExportJobId(ExportJobIdT&& value) {
55 SetExportJobId(std::forward<ExportJobIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 ExportSummary& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline ExportStatus GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(ExportStatus value) {
85 m_statusHasBeenSet = true;
86 m_status = value;
87 }
89 SetStatus(value);
90 return *this;
91 }
93
95
98 inline ExportDataType GetDataType() const { return m_dataType; }
99 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
100 inline void SetDataType(ExportDataType value) {
101 m_dataTypeHasBeenSet = true;
102 m_dataType = value;
103 }
105 SetDataType(value);
106 return *this;
107 }
109
111
116 inline const ExportOutputSummary& GetOutputConfiguration() const { return m_outputConfiguration; }
117 inline bool OutputConfigurationHasBeenSet() const { return m_outputConfigurationHasBeenSet; }
118 template <typename OutputConfigurationT = ExportOutputSummary>
119 void SetOutputConfiguration(OutputConfigurationT&& value) {
120 m_outputConfigurationHasBeenSet = true;
121 m_outputConfiguration = std::forward<OutputConfigurationT>(value);
122 }
123 template <typename OutputConfigurationT = ExportOutputSummary>
124 ExportSummary& WithOutputConfiguration(OutputConfigurationT&& value) {
125 SetOutputConfiguration(std::forward<OutputConfigurationT>(value));
126 return *this;
127 }
129
131
135 inline const ExportScopes& GetScopes() const { return m_scopes; }
136 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
137 template <typename ScopesT = ExportScopes>
138 void SetScopes(ScopesT&& value) {
139 m_scopesHasBeenSet = true;
140 m_scopes = std::forward<ScopesT>(value);
141 }
142 template <typename ScopesT = ExportScopes>
143 ExportSummary& WithScopes(ScopesT&& value) {
144 SetScopes(std::forward<ScopesT>(value));
145 return *this;
146 }
148
150
153 inline const ExportDestination& GetDestination() const { return m_destination; }
154 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
155 template <typename DestinationT = ExportDestination>
156 void SetDestination(DestinationT&& value) {
157 m_destinationHasBeenSet = true;
158 m_destination = std::forward<DestinationT>(value);
159 }
160 template <typename DestinationT = ExportDestination>
161 ExportSummary& WithDestination(DestinationT&& value) {
162 SetDestination(std::forward<DestinationT>(value));
163 return *this;
164 }
166
168
172 inline ExportFailureCode GetFailureCode() const { return m_failureCode; }
173 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
175 m_failureCodeHasBeenSet = true;
176 m_failureCode = value;
177 }
179 SetFailureCode(value);
180 return *this;
181 }
183
185
189 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
190 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
191 template <typename FailureMessageT = Aws::String>
192 void SetFailureMessage(FailureMessageT&& value) {
193 m_failureMessageHasBeenSet = true;
194 m_failureMessage = std::forward<FailureMessageT>(value);
195 }
196 template <typename FailureMessageT = Aws::String>
197 ExportSummary& WithFailureMessage(FailureMessageT&& value) {
198 SetFailureMessage(std::forward<FailureMessageT>(value));
199 return *this;
200 }
202
204
209 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
210 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
211 template <typename StartedAtT = Aws::Utils::DateTime>
212 void SetStartedAt(StartedAtT&& value) {
213 m_startedAtHasBeenSet = true;
214 m_startedAt = std::forward<StartedAtT>(value);
215 }
216 template <typename StartedAtT = Aws::Utils::DateTime>
217 ExportSummary& WithStartedAt(StartedAtT&& value) {
218 SetStartedAt(std::forward<StartedAtT>(value));
219 return *this;
220 }
222
224
230 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
231 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
232 template <typename EndedAtT = Aws::Utils::DateTime>
233 void SetEndedAt(EndedAtT&& value) {
234 m_endedAtHasBeenSet = true;
235 m_endedAt = std::forward<EndedAtT>(value);
236 }
237 template <typename EndedAtT = Aws::Utils::DateTime>
238 ExportSummary& WithEndedAt(EndedAtT&& value) {
239 SetEndedAt(std::forward<EndedAtT>(value));
240 return *this;
241 }
243 private:
244 Aws::String m_exportJobId;
245
246 Aws::String m_name;
247
249
251
252 ExportOutputSummary m_outputConfiguration;
253
254 ExportScopes m_scopes;
255
256 ExportDestination m_destination;
257
259
260 Aws::String m_failureMessage;
261
262 Aws::Utils::DateTime m_startedAt{};
263
264 Aws::Utils::DateTime m_endedAt{};
265 bool m_exportJobIdHasBeenSet = false;
266 bool m_nameHasBeenSet = false;
267 bool m_statusHasBeenSet = false;
268 bool m_dataTypeHasBeenSet = false;
269 bool m_outputConfigurationHasBeenSet = false;
270 bool m_scopesHasBeenSet = false;
271 bool m_destinationHasBeenSet = false;
272 bool m_failureCodeHasBeenSet = false;
273 bool m_failureMessageHasBeenSet = false;
274 bool m_startedAtHasBeenSet = false;
275 bool m_endedAtHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace SecurityHub
280} // namespace Aws
ExportSummary & WithOutputConfiguration(OutputConfigurationT &&value)
ExportSummary & WithStatus(ExportStatus value)
const Aws::Utils::DateTime & GetStartedAt() const
ExportSummary & WithStartedAt(StartedAtT &&value)
ExportSummary & WithExportJobId(ExportJobIdT &&value)
const Aws::String & GetName() const
ExportSummary & WithScopes(ScopesT &&value)
void SetStartedAt(StartedAtT &&value)
const ExportScopes & GetScopes() const
void SetFailureMessage(FailureMessageT &&value)
void SetFailureCode(ExportFailureCode value)
const Aws::String & GetExportJobId() const
const ExportOutputSummary & GetOutputConfiguration() const
void SetExportJobId(ExportJobIdT &&value)
ExportFailureCode GetFailureCode() const
ExportSummary & WithEndedAt(EndedAtT &&value)
ExportSummary & WithName(NameT &&value)
const Aws::String & GetFailureMessage() const
ExportSummary & WithFailureCode(ExportFailureCode value)
void SetOutputConfiguration(OutputConfigurationT &&value)
void SetDestination(DestinationT &&value)
AWS_SECURITYHUB_API ExportSummary()=default
void SetDataType(ExportDataType value)
AWS_SECURITYHUB_API ExportSummary(Aws::Utils::Json::JsonView jsonValue)
ExportSummary & WithFailureMessage(FailureMessageT &&value)
ExportSummary & WithDataType(ExportDataType value)
const ExportDestination & GetDestination() const
AWS_SECURITYHUB_API ExportSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ExportStatus value)
ExportSummary & WithDestination(DestinationT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue