AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
ReportDefinition.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/cur/CostandUsageReportService_EXPORTS.h>
10#include <aws/cur/model/AWSRegion.h>
11#include <aws/cur/model/AdditionalArtifact.h>
12#include <aws/cur/model/CompressionFormat.h>
13#include <aws/cur/model/ReportFormat.h>
14#include <aws/cur/model/ReportStatus.h>
15#include <aws/cur/model/ReportVersioning.h>
16#include <aws/cur/model/SchemaElement.h>
17#include <aws/cur/model/TimeUnit.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace CostandUsageReportService {
29namespace Model {
30
40 public:
41 AWS_COSTANDUSAGEREPORTSERVICE_API ReportDefinition() = default;
42 AWS_COSTANDUSAGEREPORTSERVICE_API ReportDefinition(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COSTANDUSAGEREPORTSERVICE_API ReportDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_COSTANDUSAGEREPORTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
48 inline const Aws::String& GetReportName() const { return m_reportName; }
49 inline bool ReportNameHasBeenSet() const { return m_reportNameHasBeenSet; }
50 template <typename ReportNameT = Aws::String>
51 void SetReportName(ReportNameT&& value) {
52 m_reportNameHasBeenSet = true;
53 m_reportName = std::forward<ReportNameT>(value);
54 }
55 template <typename ReportNameT = Aws::String>
56 ReportDefinition& WithReportName(ReportNameT&& value) {
57 SetReportName(std::forward<ReportNameT>(value));
58 return *this;
59 }
61
63
64 inline TimeUnit GetTimeUnit() const { return m_timeUnit; }
65 inline bool TimeUnitHasBeenSet() const { return m_timeUnitHasBeenSet; }
66 inline void SetTimeUnit(TimeUnit value) {
67 m_timeUnitHasBeenSet = true;
68 m_timeUnit = value;
69 }
71 SetTimeUnit(value);
72 return *this;
73 }
75
77
78 inline ReportFormat GetFormat() const { return m_format; }
79 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
80 inline void SetFormat(ReportFormat value) {
81 m_formatHasBeenSet = true;
82 m_format = value;
83 }
85 SetFormat(value);
86 return *this;
87 }
89
91
92 inline CompressionFormat GetCompression() const { return m_compression; }
93 inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
94 inline void SetCompression(CompressionFormat value) {
95 m_compressionHasBeenSet = true;
96 m_compression = value;
97 }
99 SetCompression(value);
100 return *this;
101 }
103
105
109 inline const Aws::Vector<SchemaElement>& GetAdditionalSchemaElements() const { return m_additionalSchemaElements; }
110 inline bool AdditionalSchemaElementsHasBeenSet() const { return m_additionalSchemaElementsHasBeenSet; }
111 template <typename AdditionalSchemaElementsT = Aws::Vector<SchemaElement>>
112 void SetAdditionalSchemaElements(AdditionalSchemaElementsT&& value) {
113 m_additionalSchemaElementsHasBeenSet = true;
114 m_additionalSchemaElements = std::forward<AdditionalSchemaElementsT>(value);
115 }
116 template <typename AdditionalSchemaElementsT = Aws::Vector<SchemaElement>>
117 ReportDefinition& WithAdditionalSchemaElements(AdditionalSchemaElementsT&& value) {
118 SetAdditionalSchemaElements(std::forward<AdditionalSchemaElementsT>(value));
119 return *this;
120 }
122 m_additionalSchemaElementsHasBeenSet = true;
123 m_additionalSchemaElements.push_back(value);
124 return *this;
125 }
127
129
130 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
131 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
132 template <typename S3BucketT = Aws::String>
133 void SetS3Bucket(S3BucketT&& value) {
134 m_s3BucketHasBeenSet = true;
135 m_s3Bucket = std::forward<S3BucketT>(value);
136 }
137 template <typename S3BucketT = Aws::String>
138 ReportDefinition& WithS3Bucket(S3BucketT&& value) {
139 SetS3Bucket(std::forward<S3BucketT>(value));
140 return *this;
141 }
143
145
146 inline const Aws::String& GetS3Prefix() const { return m_s3Prefix; }
147 inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
148 template <typename S3PrefixT = Aws::String>
149 void SetS3Prefix(S3PrefixT&& value) {
150 m_s3PrefixHasBeenSet = true;
151 m_s3Prefix = std::forward<S3PrefixT>(value);
152 }
153 template <typename S3PrefixT = Aws::String>
154 ReportDefinition& WithS3Prefix(S3PrefixT&& value) {
155 SetS3Prefix(std::forward<S3PrefixT>(value));
156 return *this;
157 }
159
161
162 inline AWSRegion GetS3Region() const { return m_s3Region; }
163 inline bool S3RegionHasBeenSet() const { return m_s3RegionHasBeenSet; }
164 inline void SetS3Region(AWSRegion value) {
165 m_s3RegionHasBeenSet = true;
166 m_s3Region = value;
167 }
169 SetS3Region(value);
170 return *this;
171 }
173
175
179 inline const Aws::Vector<AdditionalArtifact>& GetAdditionalArtifacts() const { return m_additionalArtifacts; }
180 inline bool AdditionalArtifactsHasBeenSet() const { return m_additionalArtifactsHasBeenSet; }
181 template <typename AdditionalArtifactsT = Aws::Vector<AdditionalArtifact>>
182 void SetAdditionalArtifacts(AdditionalArtifactsT&& value) {
183 m_additionalArtifactsHasBeenSet = true;
184 m_additionalArtifacts = std::forward<AdditionalArtifactsT>(value);
185 }
186 template <typename AdditionalArtifactsT = Aws::Vector<AdditionalArtifact>>
187 ReportDefinition& WithAdditionalArtifacts(AdditionalArtifactsT&& value) {
188 SetAdditionalArtifacts(std::forward<AdditionalArtifactsT>(value));
189 return *this;
190 }
192 m_additionalArtifactsHasBeenSet = true;
193 m_additionalArtifacts.push_back(value);
194 return *this;
195 }
197
199
204 inline bool GetRefreshClosedReports() const { return m_refreshClosedReports; }
205 inline bool RefreshClosedReportsHasBeenSet() const { return m_refreshClosedReportsHasBeenSet; }
206 inline void SetRefreshClosedReports(bool value) {
207 m_refreshClosedReportsHasBeenSet = true;
208 m_refreshClosedReports = value;
209 }
212 return *this;
213 }
215
217
221 inline ReportVersioning GetReportVersioning() const { return m_reportVersioning; }
222 inline bool ReportVersioningHasBeenSet() const { return m_reportVersioningHasBeenSet; }
224 m_reportVersioningHasBeenSet = true;
225 m_reportVersioning = value;
226 }
228 SetReportVersioning(value);
229 return *this;
230 }
232
234
243 inline const Aws::String& GetBillingViewArn() const { return m_billingViewArn; }
244 inline bool BillingViewArnHasBeenSet() const { return m_billingViewArnHasBeenSet; }
245 template <typename BillingViewArnT = Aws::String>
246 void SetBillingViewArn(BillingViewArnT&& value) {
247 m_billingViewArnHasBeenSet = true;
248 m_billingViewArn = std::forward<BillingViewArnT>(value);
249 }
250 template <typename BillingViewArnT = Aws::String>
251 ReportDefinition& WithBillingViewArn(BillingViewArnT&& value) {
252 SetBillingViewArn(std::forward<BillingViewArnT>(value));
253 return *this;
254 }
256
258
261 inline const ReportStatus& GetReportStatus() const { return m_reportStatus; }
262 inline bool ReportStatusHasBeenSet() const { return m_reportStatusHasBeenSet; }
263 template <typename ReportStatusT = ReportStatus>
264 void SetReportStatus(ReportStatusT&& value) {
265 m_reportStatusHasBeenSet = true;
266 m_reportStatus = std::forward<ReportStatusT>(value);
267 }
268 template <typename ReportStatusT = ReportStatus>
269 ReportDefinition& WithReportStatus(ReportStatusT&& value) {
270 SetReportStatus(std::forward<ReportStatusT>(value));
271 return *this;
272 }
274 private:
275 Aws::String m_reportName;
276
277 TimeUnit m_timeUnit{TimeUnit::NOT_SET};
278
280
282
283 Aws::Vector<SchemaElement> m_additionalSchemaElements;
284
285 Aws::String m_s3Bucket;
286
287 Aws::String m_s3Prefix;
288
289 AWSRegion m_s3Region{AWSRegion::NOT_SET};
290
291 Aws::Vector<AdditionalArtifact> m_additionalArtifacts;
292
293 bool m_refreshClosedReports{false};
294
296
297 Aws::String m_billingViewArn;
298
299 ReportStatus m_reportStatus;
300 bool m_reportNameHasBeenSet = false;
301 bool m_timeUnitHasBeenSet = false;
302 bool m_formatHasBeenSet = false;
303 bool m_compressionHasBeenSet = false;
304 bool m_additionalSchemaElementsHasBeenSet = false;
305 bool m_s3BucketHasBeenSet = false;
306 bool m_s3PrefixHasBeenSet = false;
307 bool m_s3RegionHasBeenSet = false;
308 bool m_additionalArtifactsHasBeenSet = false;
309 bool m_refreshClosedReportsHasBeenSet = false;
310 bool m_reportVersioningHasBeenSet = false;
311 bool m_billingViewArnHasBeenSet = false;
312 bool m_reportStatusHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace CostandUsageReportService
317} // namespace Aws
void SetAdditionalArtifacts(AdditionalArtifactsT &&value)
ReportDefinition & WithReportName(ReportNameT &&value)
ReportDefinition & WithFormat(ReportFormat value)
const Aws::Vector< SchemaElement > & GetAdditionalSchemaElements() const
ReportDefinition & WithReportStatus(ReportStatusT &&value)
AWS_COSTANDUSAGEREPORTSERVICE_API ReportDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
ReportDefinition & WithS3Prefix(S3PrefixT &&value)
ReportDefinition & AddAdditionalArtifacts(AdditionalArtifact value)
AWS_COSTANDUSAGEREPORTSERVICE_API ReportDefinition(Aws::Utils::Json::JsonView jsonValue)
ReportDefinition & WithS3Bucket(S3BucketT &&value)
ReportDefinition & WithAdditionalSchemaElements(AdditionalSchemaElementsT &&value)
ReportDefinition & WithBillingViewArn(BillingViewArnT &&value)
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ReportDefinition & WithCompression(CompressionFormat value)
ReportDefinition & AddAdditionalSchemaElements(SchemaElement value)
AWS_COSTANDUSAGEREPORTSERVICE_API ReportDefinition()=default
ReportDefinition & WithAdditionalArtifacts(AdditionalArtifactsT &&value)
ReportDefinition & WithReportVersioning(ReportVersioning value)
const Aws::Vector< AdditionalArtifact > & GetAdditionalArtifacts() const
void SetAdditionalSchemaElements(AdditionalSchemaElementsT &&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