AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BillingViewElement.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/model/BillingViewHealthStatus.h>
9#include <aws/billing/model/BillingViewType.h>
10#include <aws/billing/model/Expression.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Billing {
24namespace Model {
25
32 public:
33 AWS_BILLING_API BillingViewElement() = default;
36 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
51 BillingViewElement& WithArn(ArnT&& value) {
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 BillingViewElement& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 BillingViewElement& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline BillingViewType GetBillingViewType() const { return m_billingViewType; }
98 inline bool BillingViewTypeHasBeenSet() const { return m_billingViewTypeHasBeenSet; }
100 m_billingViewTypeHasBeenSet = true;
101 m_billingViewType = value;
102 }
104 SetBillingViewType(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
114 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
115 template <typename OwnerAccountIdT = Aws::String>
116 void SetOwnerAccountId(OwnerAccountIdT&& value) {
117 m_ownerAccountIdHasBeenSet = true;
118 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
119 }
120 template <typename OwnerAccountIdT = Aws::String>
121 BillingViewElement& WithOwnerAccountId(OwnerAccountIdT&& value) {
122 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetSourceAccountId() const { return m_sourceAccountId; }
133 inline bool SourceAccountIdHasBeenSet() const { return m_sourceAccountIdHasBeenSet; }
134 template <typename SourceAccountIdT = Aws::String>
135 void SetSourceAccountId(SourceAccountIdT&& value) {
136 m_sourceAccountIdHasBeenSet = true;
137 m_sourceAccountId = std::forward<SourceAccountIdT>(value);
138 }
139 template <typename SourceAccountIdT = Aws::String>
140 BillingViewElement& WithSourceAccountId(SourceAccountIdT&& value) {
141 SetSourceAccountId(std::forward<SourceAccountIdT>(value));
142 return *this;
143 }
145
147
153 inline const Expression& GetDataFilterExpression() const { return m_dataFilterExpression; }
154 inline bool DataFilterExpressionHasBeenSet() const { return m_dataFilterExpressionHasBeenSet; }
155 template <typename DataFilterExpressionT = Expression>
156 void SetDataFilterExpression(DataFilterExpressionT&& value) {
157 m_dataFilterExpressionHasBeenSet = true;
158 m_dataFilterExpression = std::forward<DataFilterExpressionT>(value);
159 }
160 template <typename DataFilterExpressionT = Expression>
161 BillingViewElement& WithDataFilterExpression(DataFilterExpressionT&& value) {
162 SetDataFilterExpression(std::forward<DataFilterExpressionT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
172 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
173 template <typename CreatedAtT = Aws::Utils::DateTime>
174 void SetCreatedAt(CreatedAtT&& value) {
175 m_createdAtHasBeenSet = true;
176 m_createdAt = std::forward<CreatedAtT>(value);
177 }
178 template <typename CreatedAtT = Aws::Utils::DateTime>
179 BillingViewElement& WithCreatedAt(CreatedAtT&& value) {
180 SetCreatedAt(std::forward<CreatedAtT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
190 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
191 template <typename UpdatedAtT = Aws::Utils::DateTime>
192 void SetUpdatedAt(UpdatedAtT&& value) {
193 m_updatedAtHasBeenSet = true;
194 m_updatedAt = std::forward<UpdatedAtT>(value);
195 }
196 template <typename UpdatedAtT = Aws::Utils::DateTime>
197 BillingViewElement& WithUpdatedAt(UpdatedAtT&& value) {
198 SetUpdatedAt(std::forward<UpdatedAtT>(value));
199 return *this;
200 }
202
204
207 inline int GetDerivedViewCount() const { return m_derivedViewCount; }
208 inline bool DerivedViewCountHasBeenSet() const { return m_derivedViewCountHasBeenSet; }
209 inline void SetDerivedViewCount(int value) {
210 m_derivedViewCountHasBeenSet = true;
211 m_derivedViewCount = value;
212 }
214 SetDerivedViewCount(value);
215 return *this;
216 }
218
220
223 inline int GetSourceViewCount() const { return m_sourceViewCount; }
224 inline bool SourceViewCountHasBeenSet() const { return m_sourceViewCountHasBeenSet; }
225 inline void SetSourceViewCount(int value) {
226 m_sourceViewCountHasBeenSet = true;
227 m_sourceViewCount = value;
228 }
230 SetSourceViewCount(value);
231 return *this;
232 }
234
236
239 inline const Aws::Utils::DateTime& GetViewDefinitionLastUpdatedAt() const { return m_viewDefinitionLastUpdatedAt; }
240 inline bool ViewDefinitionLastUpdatedAtHasBeenSet() const { return m_viewDefinitionLastUpdatedAtHasBeenSet; }
241 template <typename ViewDefinitionLastUpdatedAtT = Aws::Utils::DateTime>
242 void SetViewDefinitionLastUpdatedAt(ViewDefinitionLastUpdatedAtT&& value) {
243 m_viewDefinitionLastUpdatedAtHasBeenSet = true;
244 m_viewDefinitionLastUpdatedAt = std::forward<ViewDefinitionLastUpdatedAtT>(value);
245 }
246 template <typename ViewDefinitionLastUpdatedAtT = Aws::Utils::DateTime>
247 BillingViewElement& WithViewDefinitionLastUpdatedAt(ViewDefinitionLastUpdatedAtT&& value) {
248 SetViewDefinitionLastUpdatedAt(std::forward<ViewDefinitionLastUpdatedAtT>(value));
249 return *this;
250 }
252
254
257 inline const BillingViewHealthStatus& GetHealthStatus() const { return m_healthStatus; }
258 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
259 template <typename HealthStatusT = BillingViewHealthStatus>
260 void SetHealthStatus(HealthStatusT&& value) {
261 m_healthStatusHasBeenSet = true;
262 m_healthStatus = std::forward<HealthStatusT>(value);
263 }
264 template <typename HealthStatusT = BillingViewHealthStatus>
265 BillingViewElement& WithHealthStatus(HealthStatusT&& value) {
266 SetHealthStatus(std::forward<HealthStatusT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_arn;
272
273 Aws::String m_name;
274
275 Aws::String m_description;
276
277 BillingViewType m_billingViewType{BillingViewType::NOT_SET};
278
279 Aws::String m_ownerAccountId;
280
281 Aws::String m_sourceAccountId;
282
283 Expression m_dataFilterExpression;
284
285 Aws::Utils::DateTime m_createdAt{};
286
287 Aws::Utils::DateTime m_updatedAt{};
288
289 int m_derivedViewCount{0};
290
291 int m_sourceViewCount{0};
292
293 Aws::Utils::DateTime m_viewDefinitionLastUpdatedAt{};
294
295 BillingViewHealthStatus m_healthStatus;
296 bool m_arnHasBeenSet = false;
297 bool m_nameHasBeenSet = false;
298 bool m_descriptionHasBeenSet = false;
299 bool m_billingViewTypeHasBeenSet = false;
300 bool m_ownerAccountIdHasBeenSet = false;
301 bool m_sourceAccountIdHasBeenSet = false;
302 bool m_dataFilterExpressionHasBeenSet = false;
303 bool m_createdAtHasBeenSet = false;
304 bool m_updatedAtHasBeenSet = false;
305 bool m_derivedViewCountHasBeenSet = false;
306 bool m_sourceViewCountHasBeenSet = false;
307 bool m_viewDefinitionLastUpdatedAtHasBeenSet = false;
308 bool m_healthStatusHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace Billing
313} // namespace Aws
void SetOwnerAccountId(OwnerAccountIdT &&value)
AWS_BILLING_API BillingViewElement()=default
const Aws::String & GetSourceAccountId() const
BillingViewElement & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetViewDefinitionLastUpdatedAt() const
BillingViewElement & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_BILLING_API BillingViewElement(Aws::Utils::Json::JsonView jsonValue)
const Expression & GetDataFilterExpression() const
const Aws::String & GetOwnerAccountId() const
AWS_BILLING_API BillingViewElement & operator=(Aws::Utils::Json::JsonView jsonValue)
BillingViewElement & WithOwnerAccountId(OwnerAccountIdT &&value)
BillingViewElement & WithArn(ArnT &&value)
void SetHealthStatus(HealthStatusT &&value)
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
const BillingViewHealthStatus & GetHealthStatus() const
BillingViewElement & WithBillingViewType(BillingViewType value)
BillingViewElement & WithDataFilterExpression(DataFilterExpressionT &&value)
void SetDataFilterExpression(DataFilterExpressionT &&value)
BillingViewElement & WithHealthStatus(HealthStatusT &&value)
BillingViewElement & WithViewDefinitionLastUpdatedAt(ViewDefinitionLastUpdatedAtT &&value)
void SetSourceAccountId(SourceAccountIdT &&value)
BillingViewElement & WithDerivedViewCount(int value)
void SetDescription(DescriptionT &&value)
BillingViewElement & WithName(NameT &&value)
void SetViewDefinitionLastUpdatedAt(ViewDefinitionLastUpdatedAtT &&value)
BillingViewElement & WithSourceAccountId(SourceAccountIdT &&value)
BillingViewElement & WithSourceViewCount(int value)
BillingViewElement & WithCreatedAt(CreatedAtT &&value)
void SetBillingViewType(BillingViewType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue