AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReportGenerator.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/license-manager/model/ReportContext.h>
11#include <aws/license-manager/model/ReportFrequency.h>
12#include <aws/license-manager/model/S3Location.h>
13#include <aws/license-manager/model/ReportType.h>
14#include <aws/license-manager/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace LicenseManager
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_LICENSEMANAGER_API ReportGenerator() = default;
41 AWS_LICENSEMANAGER_API ReportGenerator(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LICENSEMANAGER_API ReportGenerator& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetReportGeneratorName() const { return m_reportGeneratorName; }
51 inline bool ReportGeneratorNameHasBeenSet() const { return m_reportGeneratorNameHasBeenSet; }
52 template<typename ReportGeneratorNameT = Aws::String>
53 void SetReportGeneratorName(ReportGeneratorNameT&& value) { m_reportGeneratorNameHasBeenSet = true; m_reportGeneratorName = std::forward<ReportGeneratorNameT>(value); }
54 template<typename ReportGeneratorNameT = Aws::String>
55 ReportGenerator& WithReportGeneratorName(ReportGeneratorNameT&& value) { SetReportGeneratorName(std::forward<ReportGeneratorNameT>(value)); return *this;}
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) { m_reportTypeHasBeenSet = true; m_reportType = std::forward<ReportTypeT>(value); }
66 template<typename ReportTypeT = Aws::Vector<ReportType>>
67 ReportGenerator& WithReportType(ReportTypeT&& value) { SetReportType(std::forward<ReportTypeT>(value)); return *this;}
68 inline ReportGenerator& AddReportType(ReportType value) { m_reportTypeHasBeenSet = true; m_reportType.push_back(value); return *this; }
70
72
75 inline const ReportContext& GetReportContext() const { return m_reportContext; }
76 inline bool ReportContextHasBeenSet() const { return m_reportContextHasBeenSet; }
77 template<typename ReportContextT = ReportContext>
78 void SetReportContext(ReportContextT&& value) { m_reportContextHasBeenSet = true; m_reportContext = std::forward<ReportContextT>(value); }
79 template<typename ReportContextT = ReportContext>
80 ReportGenerator& WithReportContext(ReportContextT&& value) { SetReportContext(std::forward<ReportContextT>(value)); return *this;}
82
84
87 inline const ReportFrequency& GetReportFrequency() const { return m_reportFrequency; }
88 inline bool ReportFrequencyHasBeenSet() const { return m_reportFrequencyHasBeenSet; }
89 template<typename ReportFrequencyT = ReportFrequency>
90 void SetReportFrequency(ReportFrequencyT&& value) { m_reportFrequencyHasBeenSet = true; m_reportFrequency = std::forward<ReportFrequencyT>(value); }
91 template<typename ReportFrequencyT = ReportFrequency>
92 ReportGenerator& WithReportFrequency(ReportFrequencyT&& value) { SetReportFrequency(std::forward<ReportFrequencyT>(value)); return *this;}
94
96
99 inline const Aws::String& GetLicenseManagerReportGeneratorArn() const { return m_licenseManagerReportGeneratorArn; }
100 inline bool LicenseManagerReportGeneratorArnHasBeenSet() const { return m_licenseManagerReportGeneratorArnHasBeenSet; }
101 template<typename LicenseManagerReportGeneratorArnT = Aws::String>
102 void SetLicenseManagerReportGeneratorArn(LicenseManagerReportGeneratorArnT&& value) { m_licenseManagerReportGeneratorArnHasBeenSet = true; m_licenseManagerReportGeneratorArn = std::forward<LicenseManagerReportGeneratorArnT>(value); }
103 template<typename LicenseManagerReportGeneratorArnT = Aws::String>
104 ReportGenerator& WithLicenseManagerReportGeneratorArn(LicenseManagerReportGeneratorArnT&& value) { SetLicenseManagerReportGeneratorArn(std::forward<LicenseManagerReportGeneratorArnT>(value)); return *this;}
106
108
111 inline const Aws::String& GetLastRunStatus() const { return m_lastRunStatus; }
112 inline bool LastRunStatusHasBeenSet() const { return m_lastRunStatusHasBeenSet; }
113 template<typename LastRunStatusT = Aws::String>
114 void SetLastRunStatus(LastRunStatusT&& value) { m_lastRunStatusHasBeenSet = true; m_lastRunStatus = std::forward<LastRunStatusT>(value); }
115 template<typename LastRunStatusT = Aws::String>
116 ReportGenerator& WithLastRunStatus(LastRunStatusT&& value) { SetLastRunStatus(std::forward<LastRunStatusT>(value)); return *this;}
118
120
123 inline const Aws::String& GetLastRunFailureReason() const { return m_lastRunFailureReason; }
124 inline bool LastRunFailureReasonHasBeenSet() const { return m_lastRunFailureReasonHasBeenSet; }
125 template<typename LastRunFailureReasonT = Aws::String>
126 void SetLastRunFailureReason(LastRunFailureReasonT&& value) { m_lastRunFailureReasonHasBeenSet = true; m_lastRunFailureReason = std::forward<LastRunFailureReasonT>(value); }
127 template<typename LastRunFailureReasonT = Aws::String>
128 ReportGenerator& WithLastRunFailureReason(LastRunFailureReasonT&& value) { SetLastRunFailureReason(std::forward<LastRunFailureReasonT>(value)); return *this;}
130
132
135 inline const Aws::String& GetLastReportGenerationTime() const { return m_lastReportGenerationTime; }
136 inline bool LastReportGenerationTimeHasBeenSet() const { return m_lastReportGenerationTimeHasBeenSet; }
137 template<typename LastReportGenerationTimeT = Aws::String>
138 void SetLastReportGenerationTime(LastReportGenerationTimeT&& value) { m_lastReportGenerationTimeHasBeenSet = true; m_lastReportGenerationTime = std::forward<LastReportGenerationTimeT>(value); }
139 template<typename LastReportGenerationTimeT = Aws::String>
140 ReportGenerator& WithLastReportGenerationTime(LastReportGenerationTimeT&& value) { SetLastReportGenerationTime(std::forward<LastReportGenerationTimeT>(value)); return *this;}
142
144
147 inline const Aws::String& GetReportCreatorAccount() const { return m_reportCreatorAccount; }
148 inline bool ReportCreatorAccountHasBeenSet() const { return m_reportCreatorAccountHasBeenSet; }
149 template<typename ReportCreatorAccountT = Aws::String>
150 void SetReportCreatorAccount(ReportCreatorAccountT&& value) { m_reportCreatorAccountHasBeenSet = true; m_reportCreatorAccount = std::forward<ReportCreatorAccountT>(value); }
151 template<typename ReportCreatorAccountT = Aws::String>
152 ReportGenerator& WithReportCreatorAccount(ReportCreatorAccountT&& value) { SetReportCreatorAccount(std::forward<ReportCreatorAccountT>(value)); return *this;}
154
156
159 inline const Aws::String& GetDescription() const { return m_description; }
160 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
161 template<typename DescriptionT = Aws::String>
162 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
163 template<typename DescriptionT = Aws::String>
164 ReportGenerator& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
166
168
171 inline const S3Location& GetS3Location() const { return m_s3Location; }
172 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
173 template<typename S3LocationT = S3Location>
174 void SetS3Location(S3LocationT&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::forward<S3LocationT>(value); }
175 template<typename S3LocationT = S3Location>
176 ReportGenerator& WithS3Location(S3LocationT&& value) { SetS3Location(std::forward<S3LocationT>(value)); return *this;}
178
180
183 inline const Aws::String& GetCreateTime() const { return m_createTime; }
184 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
185 template<typename CreateTimeT = Aws::String>
186 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
187 template<typename CreateTimeT = Aws::String>
188 ReportGenerator& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
190
192
195 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
196 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
197 template<typename TagsT = Aws::Vector<Tag>>
198 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
199 template<typename TagsT = Aws::Vector<Tag>>
200 ReportGenerator& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
201 template<typename TagsT = Tag>
202 ReportGenerator& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
204 private:
205
206 Aws::String m_reportGeneratorName;
207 bool m_reportGeneratorNameHasBeenSet = false;
208
209 Aws::Vector<ReportType> m_reportType;
210 bool m_reportTypeHasBeenSet = false;
211
212 ReportContext m_reportContext;
213 bool m_reportContextHasBeenSet = false;
214
215 ReportFrequency m_reportFrequency;
216 bool m_reportFrequencyHasBeenSet = false;
217
218 Aws::String m_licenseManagerReportGeneratorArn;
219 bool m_licenseManagerReportGeneratorArnHasBeenSet = false;
220
221 Aws::String m_lastRunStatus;
222 bool m_lastRunStatusHasBeenSet = false;
223
224 Aws::String m_lastRunFailureReason;
225 bool m_lastRunFailureReasonHasBeenSet = false;
226
227 Aws::String m_lastReportGenerationTime;
228 bool m_lastReportGenerationTimeHasBeenSet = false;
229
230 Aws::String m_reportCreatorAccount;
231 bool m_reportCreatorAccountHasBeenSet = false;
232
233 Aws::String m_description;
234 bool m_descriptionHasBeenSet = false;
235
236 S3Location m_s3Location;
237 bool m_s3LocationHasBeenSet = false;
238
239 Aws::String m_createTime;
240 bool m_createTimeHasBeenSet = false;
241
242 Aws::Vector<Tag> m_tags;
243 bool m_tagsHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace LicenseManager
248} // 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