AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ReportGenerator.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManager_EXPORTS.h>
10#include <aws/license-manager/model/ReportContext.h>
11#include <aws/license-manager/model/ReportFrequency.h>
12#include <aws/license-manager/model/ReportType.h>
13#include <aws/license-manager/model/S3Location.h>
14#include <aws/license-manager/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LicenseManager {
26namespace Model {
27
34 public:
35 AWS_LICENSEMANAGER_API ReportGenerator() = default;
36 AWS_LICENSEMANAGER_API ReportGenerator(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LICENSEMANAGER_API ReportGenerator& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetReportGeneratorName() const { return m_reportGeneratorName; }
45 inline bool ReportGeneratorNameHasBeenSet() const { return m_reportGeneratorNameHasBeenSet; }
46 template <typename ReportGeneratorNameT = Aws::String>
47 void SetReportGeneratorName(ReportGeneratorNameT&& value) {
48 m_reportGeneratorNameHasBeenSet = true;
49 m_reportGeneratorName = std::forward<ReportGeneratorNameT>(value);
50 }
51 template <typename ReportGeneratorNameT = Aws::String>
52 ReportGenerator& WithReportGeneratorName(ReportGeneratorNameT&& value) {
53 SetReportGeneratorName(std::forward<ReportGeneratorNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<ReportType>& GetReportType() const { return m_reportType; }
63 inline bool ReportTypeHasBeenSet() const { return m_reportTypeHasBeenSet; }
64 template <typename ReportTypeT = Aws::Vector<ReportType>>
65 void SetReportType(ReportTypeT&& value) {
66 m_reportTypeHasBeenSet = true;
67 m_reportType = std::forward<ReportTypeT>(value);
68 }
69 template <typename ReportTypeT = Aws::Vector<ReportType>>
70 ReportGenerator& WithReportType(ReportTypeT&& value) {
71 SetReportType(std::forward<ReportTypeT>(value));
72 return *this;
73 }
75 m_reportTypeHasBeenSet = true;
76 m_reportType.push_back(value);
77 return *this;
78 }
80
82
85 inline const ReportContext& GetReportContext() const { return m_reportContext; }
86 inline bool ReportContextHasBeenSet() const { return m_reportContextHasBeenSet; }
87 template <typename ReportContextT = ReportContext>
88 void SetReportContext(ReportContextT&& value) {
89 m_reportContextHasBeenSet = true;
90 m_reportContext = std::forward<ReportContextT>(value);
91 }
92 template <typename ReportContextT = ReportContext>
93 ReportGenerator& WithReportContext(ReportContextT&& value) {
94 SetReportContext(std::forward<ReportContextT>(value));
95 return *this;
96 }
98
100
103 inline const ReportFrequency& GetReportFrequency() const { return m_reportFrequency; }
104 inline bool ReportFrequencyHasBeenSet() const { return m_reportFrequencyHasBeenSet; }
105 template <typename ReportFrequencyT = ReportFrequency>
106 void SetReportFrequency(ReportFrequencyT&& value) {
107 m_reportFrequencyHasBeenSet = true;
108 m_reportFrequency = std::forward<ReportFrequencyT>(value);
109 }
110 template <typename ReportFrequencyT = ReportFrequency>
111 ReportGenerator& WithReportFrequency(ReportFrequencyT&& value) {
112 SetReportFrequency(std::forward<ReportFrequencyT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetLicenseManagerReportGeneratorArn() const { return m_licenseManagerReportGeneratorArn; }
122 inline bool LicenseManagerReportGeneratorArnHasBeenSet() const { return m_licenseManagerReportGeneratorArnHasBeenSet; }
123 template <typename LicenseManagerReportGeneratorArnT = Aws::String>
124 void SetLicenseManagerReportGeneratorArn(LicenseManagerReportGeneratorArnT&& value) {
125 m_licenseManagerReportGeneratorArnHasBeenSet = true;
126 m_licenseManagerReportGeneratorArn = std::forward<LicenseManagerReportGeneratorArnT>(value);
127 }
128 template <typename LicenseManagerReportGeneratorArnT = Aws::String>
129 ReportGenerator& WithLicenseManagerReportGeneratorArn(LicenseManagerReportGeneratorArnT&& value) {
130 SetLicenseManagerReportGeneratorArn(std::forward<LicenseManagerReportGeneratorArnT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetLastRunStatus() const { return m_lastRunStatus; }
140 inline bool LastRunStatusHasBeenSet() const { return m_lastRunStatusHasBeenSet; }
141 template <typename LastRunStatusT = Aws::String>
142 void SetLastRunStatus(LastRunStatusT&& value) {
143 m_lastRunStatusHasBeenSet = true;
144 m_lastRunStatus = std::forward<LastRunStatusT>(value);
145 }
146 template <typename LastRunStatusT = Aws::String>
147 ReportGenerator& WithLastRunStatus(LastRunStatusT&& value) {
148 SetLastRunStatus(std::forward<LastRunStatusT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetLastRunFailureReason() const { return m_lastRunFailureReason; }
158 inline bool LastRunFailureReasonHasBeenSet() const { return m_lastRunFailureReasonHasBeenSet; }
159 template <typename LastRunFailureReasonT = Aws::String>
160 void SetLastRunFailureReason(LastRunFailureReasonT&& value) {
161 m_lastRunFailureReasonHasBeenSet = true;
162 m_lastRunFailureReason = std::forward<LastRunFailureReasonT>(value);
163 }
164 template <typename LastRunFailureReasonT = Aws::String>
165 ReportGenerator& WithLastRunFailureReason(LastRunFailureReasonT&& value) {
166 SetLastRunFailureReason(std::forward<LastRunFailureReasonT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetLastReportGenerationTime() const { return m_lastReportGenerationTime; }
176 inline bool LastReportGenerationTimeHasBeenSet() const { return m_lastReportGenerationTimeHasBeenSet; }
177 template <typename LastReportGenerationTimeT = Aws::String>
178 void SetLastReportGenerationTime(LastReportGenerationTimeT&& value) {
179 m_lastReportGenerationTimeHasBeenSet = true;
180 m_lastReportGenerationTime = std::forward<LastReportGenerationTimeT>(value);
181 }
182 template <typename LastReportGenerationTimeT = Aws::String>
183 ReportGenerator& WithLastReportGenerationTime(LastReportGenerationTimeT&& value) {
184 SetLastReportGenerationTime(std::forward<LastReportGenerationTimeT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetReportCreatorAccount() const { return m_reportCreatorAccount; }
194 inline bool ReportCreatorAccountHasBeenSet() const { return m_reportCreatorAccountHasBeenSet; }
195 template <typename ReportCreatorAccountT = Aws::String>
196 void SetReportCreatorAccount(ReportCreatorAccountT&& value) {
197 m_reportCreatorAccountHasBeenSet = true;
198 m_reportCreatorAccount = std::forward<ReportCreatorAccountT>(value);
199 }
200 template <typename ReportCreatorAccountT = Aws::String>
201 ReportGenerator& WithReportCreatorAccount(ReportCreatorAccountT&& value) {
202 SetReportCreatorAccount(std::forward<ReportCreatorAccountT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetDescription() const { return m_description; }
212 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
213 template <typename DescriptionT = Aws::String>
214 void SetDescription(DescriptionT&& value) {
215 m_descriptionHasBeenSet = true;
216 m_description = std::forward<DescriptionT>(value);
217 }
218 template <typename DescriptionT = Aws::String>
219 ReportGenerator& WithDescription(DescriptionT&& value) {
220 SetDescription(std::forward<DescriptionT>(value));
221 return *this;
222 }
224
226
229 inline const S3Location& GetS3Location() const { return m_s3Location; }
230 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
231 template <typename S3LocationT = S3Location>
232 void SetS3Location(S3LocationT&& value) {
233 m_s3LocationHasBeenSet = true;
234 m_s3Location = std::forward<S3LocationT>(value);
235 }
236 template <typename S3LocationT = S3Location>
237 ReportGenerator& WithS3Location(S3LocationT&& value) {
238 SetS3Location(std::forward<S3LocationT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetCreateTime() const { return m_createTime; }
248 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
249 template <typename CreateTimeT = Aws::String>
250 void SetCreateTime(CreateTimeT&& value) {
251 m_createTimeHasBeenSet = true;
252 m_createTime = std::forward<CreateTimeT>(value);
253 }
254 template <typename CreateTimeT = Aws::String>
255 ReportGenerator& WithCreateTime(CreateTimeT&& value) {
256 SetCreateTime(std::forward<CreateTimeT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
266 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
267 template <typename TagsT = Aws::Vector<Tag>>
268 void SetTags(TagsT&& value) {
269 m_tagsHasBeenSet = true;
270 m_tags = std::forward<TagsT>(value);
271 }
272 template <typename TagsT = Aws::Vector<Tag>>
273 ReportGenerator& WithTags(TagsT&& value) {
274 SetTags(std::forward<TagsT>(value));
275 return *this;
276 }
277 template <typename TagsT = Tag>
278 ReportGenerator& AddTags(TagsT&& value) {
279 m_tagsHasBeenSet = true;
280 m_tags.emplace_back(std::forward<TagsT>(value));
281 return *this;
282 }
284 private:
285 Aws::String m_reportGeneratorName;
286
287 Aws::Vector<ReportType> m_reportType;
288
289 ReportContext m_reportContext;
290
291 ReportFrequency m_reportFrequency;
292
293 Aws::String m_licenseManagerReportGeneratorArn;
294
295 Aws::String m_lastRunStatus;
296
297 Aws::String m_lastRunFailureReason;
298
299 Aws::String m_lastReportGenerationTime;
300
301 Aws::String m_reportCreatorAccount;
302
303 Aws::String m_description;
304
305 S3Location m_s3Location;
306
307 Aws::String m_createTime;
308
309 Aws::Vector<Tag> m_tags;
310 bool m_reportGeneratorNameHasBeenSet = false;
311 bool m_reportTypeHasBeenSet = false;
312 bool m_reportContextHasBeenSet = false;
313 bool m_reportFrequencyHasBeenSet = false;
314 bool m_licenseManagerReportGeneratorArnHasBeenSet = false;
315 bool m_lastRunStatusHasBeenSet = false;
316 bool m_lastRunFailureReasonHasBeenSet = false;
317 bool m_lastReportGenerationTimeHasBeenSet = false;
318 bool m_reportCreatorAccountHasBeenSet = false;
319 bool m_descriptionHasBeenSet = false;
320 bool m_s3LocationHasBeenSet = false;
321 bool m_createTimeHasBeenSet = false;
322 bool m_tagsHasBeenSet = false;
323};
324
325} // namespace Model
326} // namespace LicenseManager
327} // namespace Aws
const Aws::String & GetReportGeneratorName() const
void SetReportFrequency(ReportFrequencyT &&value)
ReportGenerator & WithLastRunStatus(LastRunStatusT &&value)
void SetLastReportGenerationTime(LastReportGenerationTimeT &&value)
ReportGenerator & WithLicenseManagerReportGeneratorArn(LicenseManagerReportGeneratorArnT &&value)
ReportGenerator & WithReportGeneratorName(ReportGeneratorNameT &&value)
ReportGenerator & WithTags(TagsT &&value)
const Aws::Vector< ReportType > & GetReportType() const
const Aws::String & GetLastReportGenerationTime() const
const Aws::Vector< Tag > & GetTags() const
const ReportFrequency & GetReportFrequency() const
ReportGenerator & WithS3Location(S3LocationT &&value)
ReportGenerator & WithLastReportGenerationTime(LastReportGenerationTimeT &&value)
ReportGenerator & WithDescription(DescriptionT &&value)
const Aws::String & GetLastRunStatus() const
AWS_LICENSEMANAGER_API ReportGenerator()=default
const Aws::String & GetLastRunFailureReason() const
void SetLastRunFailureReason(LastRunFailureReasonT &&value)
ReportGenerator & WithCreateTime(CreateTimeT &&value)
ReportGenerator & WithReportFrequency(ReportFrequencyT &&value)
const ReportContext & GetReportContext() const
void SetReportContext(ReportContextT &&value)
ReportGenerator & AddReportType(ReportType value)
ReportGenerator & WithReportType(ReportTypeT &&value)
ReportGenerator & WithReportContext(ReportContextT &&value)
void SetLicenseManagerReportGeneratorArn(LicenseManagerReportGeneratorArnT &&value)
const Aws::String & GetLicenseManagerReportGeneratorArn() const
const Aws::String & GetReportCreatorAccount() const
void SetReportGeneratorName(ReportGeneratorNameT &&value)
void SetReportCreatorAccount(ReportCreatorAccountT &&value)
AWS_LICENSEMANAGER_API ReportGenerator(Aws::Utils::Json::JsonView jsonValue)
ReportGenerator & AddTags(TagsT &&value)
ReportGenerator & WithReportCreatorAccount(ReportCreatorAccountT &&value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LICENSEMANAGER_API ReportGenerator & operator=(Aws::Utils::Json::JsonView jsonValue)
ReportGenerator & WithLastRunFailureReason(LastRunFailureReasonT &&value)
void SetLastRunStatus(LastRunStatusT &&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