AWS SDK for C++  1.8.186
AWS SDK for C++
Expression.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/ce/model/TagValues.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace CostExplorer
26 {
27 namespace Model
28 {
29 
69  {
70  public:
75 
76 
80  inline const Aws::Vector<Expression>& GetOr() const{ return m_or; }
81 
85  inline bool OrHasBeenSet() const { return m_orHasBeenSet; }
86 
90  inline void SetOr(const Aws::Vector<Expression>& value) { m_orHasBeenSet = true; m_or = value; }
91 
95  inline void SetOr(Aws::Vector<Expression>&& value) { m_orHasBeenSet = true; m_or = std::move(value); }
96 
100  inline Expression& WithOr(const Aws::Vector<Expression>& value) { SetOr(value); return *this;}
101 
105  inline Expression& WithOr(Aws::Vector<Expression>&& value) { SetOr(std::move(value)); return *this;}
106 
110  inline Expression& AddOr(const Expression& value) { m_orHasBeenSet = true; m_or.push_back(value); return *this; }
111 
115  inline Expression& AddOr(Expression&& value) { m_orHasBeenSet = true; m_or.push_back(std::move(value)); return *this; }
116 
117 
121  inline const Aws::Vector<Expression>& GetAnd() const{ return m_and; }
122 
126  inline bool AndHasBeenSet() const { return m_andHasBeenSet; }
127 
131  inline void SetAnd(const Aws::Vector<Expression>& value) { m_andHasBeenSet = true; m_and = value; }
132 
136  inline void SetAnd(Aws::Vector<Expression>&& value) { m_andHasBeenSet = true; m_and = std::move(value); }
137 
141  inline Expression& WithAnd(const Aws::Vector<Expression>& value) { SetAnd(value); return *this;}
142 
146  inline Expression& WithAnd(Aws::Vector<Expression>&& value) { SetAnd(std::move(value)); return *this;}
147 
151  inline Expression& AddAnd(const Expression& value) { m_andHasBeenSet = true; m_and.push_back(value); return *this; }
152 
156  inline Expression& AddAnd(Expression&& value) { m_andHasBeenSet = true; m_and.push_back(std::move(value)); return *this; }
157 
158 
162  inline const Expression& GetNot() const{ return m_not[0]; }
163 
167  inline bool NotHasBeenSet() const { return m_notHasBeenSet; }
168 
172  inline void SetNot(const Expression& value) { m_notHasBeenSet = true; m_not.resize(1); m_not[0] = value; }
173 
177  inline void SetNot(Expression&& value) { m_notHasBeenSet = true; m_not.resize(1); m_not[0] = std::move(value); }
178 
182  inline Expression& WithNot(const Expression& value) { SetNot(value); return *this;}
183 
187  inline Expression& WithNot(Expression&& value) { SetNot(std::move(value)); return *this;}
188 
189 
193  inline const DimensionValues& GetDimensions() const{ return m_dimensions; }
194 
198  inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
199 
203  inline void SetDimensions(const DimensionValues& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
204 
208  inline void SetDimensions(DimensionValues&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
209 
213  inline Expression& WithDimensions(const DimensionValues& value) { SetDimensions(value); return *this;}
214 
218  inline Expression& WithDimensions(DimensionValues&& value) { SetDimensions(std::move(value)); return *this;}
219 
220 
224  inline const TagValues& GetTags() const{ return m_tags; }
225 
229  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
230 
234  inline void SetTags(const TagValues& value) { m_tagsHasBeenSet = true; m_tags = value; }
235 
239  inline void SetTags(TagValues&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
240 
244  inline Expression& WithTags(const TagValues& value) { SetTags(value); return *this;}
245 
249  inline Expression& WithTags(TagValues&& value) { SetTags(std::move(value)); return *this;}
250 
251 
255  inline const CostCategoryValues& GetCostCategories() const{ return m_costCategories; }
256 
260  inline bool CostCategoriesHasBeenSet() const { return m_costCategoriesHasBeenSet; }
261 
265  inline void SetCostCategories(const CostCategoryValues& value) { m_costCategoriesHasBeenSet = true; m_costCategories = value; }
266 
270  inline void SetCostCategories(CostCategoryValues&& value) { m_costCategoriesHasBeenSet = true; m_costCategories = std::move(value); }
271 
275  inline Expression& WithCostCategories(const CostCategoryValues& value) { SetCostCategories(value); return *this;}
276 
280  inline Expression& WithCostCategories(CostCategoryValues&& value) { SetCostCategories(std::move(value)); return *this;}
281 
282  private:
283 
285  bool m_orHasBeenSet;
286 
288  bool m_andHasBeenSet;
289 
291  bool m_notHasBeenSet;
292 
293  DimensionValues m_dimensions;
294  bool m_dimensionsHasBeenSet;
295 
296  TagValues m_tags;
297  bool m_tagsHasBeenSet;
298 
299  CostCategoryValues m_costCategories;
300  bool m_costCategoriesHasBeenSet;
301  };
302 
303 } // namespace Model
304 } // namespace CostExplorer
305 } // namespace Aws
Aws::CostExplorer::Model::Expression::WithNot
Expression & WithNot(const Expression &value)
Definition: Expression.h:182
DimensionValues.h
Aws::CostExplorer::Model::Expression::SetAnd
void SetAnd(const Aws::Vector< Expression > &value)
Definition: Expression.h:131
Aws::CostExplorer::Model::Expression::GetCostCategories
const CostCategoryValues & GetCostCategories() const
Definition: Expression.h:255
Aws::CostExplorer::Model::CostCategoryValues
Definition: CostCategoryValues.h:41
Aws::CostExplorer::Model::Expression::SetDimensions
void SetDimensions(const DimensionValues &value)
Definition: Expression.h:203
Aws::CostExplorer::Model::Expression::AddOr
Expression & AddOr(Expression &&value)
Definition: Expression.h:115
Aws::CostExplorer::Model::Expression::NotHasBeenSet
bool NotHasBeenSet() const
Definition: Expression.h:167
Aws::CostExplorer::Model::Expression::SetAnd
void SetAnd(Aws::Vector< Expression > &&value)
Definition: Expression.h:136
Aws::CostExplorer::Model::Expression::WithTags
Expression & WithTags(TagValues &&value)
Definition: Expression.h:249
Aws::CostExplorer::Model::Expression::WithCostCategories
Expression & WithCostCategories(CostCategoryValues &&value)
Definition: Expression.h:280
Aws::CostExplorer::Model::Expression::GetAnd
const Aws::Vector< Expression > & GetAnd() const
Definition: Expression.h:121
Aws::CostExplorer::Model::Expression
Definition: Expression.h:69
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::Expression::WithOr
Expression & WithOr(Aws::Vector< Expression > &&value)
Definition: Expression.h:105
TagValues.h
Aws::CostExplorer::Model::Expression::AddAnd
Expression & AddAnd(const Expression &value)
Definition: Expression.h:151
Aws::CostExplorer::Model::Expression::WithDimensions
Expression & WithDimensions(const DimensionValues &value)
Definition: Expression.h:213
Aws::CostExplorer::Model::Expression::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: Expression.h:229
Aws::CostExplorer::Model::Expression::SetCostCategories
void SetCostCategories(CostCategoryValues &&value)
Definition: Expression.h:270
Aws::CostExplorer::Model::Expression::SetOr
void SetOr(const Aws::Vector< Expression > &value)
Definition: Expression.h:90
Aws::CostExplorer::Model::DimensionValues
Definition: DimensionValues.h:37
AWSVector.h
Aws::CostExplorer::Model::Expression::SetTags
void SetTags(TagValues &&value)
Definition: Expression.h:239
Aws::CostExplorer::Model::Expression::CostCategoriesHasBeenSet
bool CostCategoriesHasBeenSet() const
Definition: Expression.h:260
Aws::CostExplorer::Model::Expression::AndHasBeenSet
bool AndHasBeenSet() const
Definition: Expression.h:126
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::Expression::WithOr
Expression & WithOr(const Aws::Vector< Expression > &value)
Definition: Expression.h:100
Aws::CostExplorer::Model::Expression::WithDimensions
Expression & WithDimensions(DimensionValues &&value)
Definition: Expression.h:218
Aws::CostExplorer::Model::Expression::SetNot
void SetNot(Expression &&value)
Definition: Expression.h:177
Aws::CostExplorer::Model::Expression::AddOr
Expression & AddOr(const Expression &value)
Definition: Expression.h:110
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::CostExplorer::Model::Expression::WithCostCategories
Expression & WithCostCategories(const CostCategoryValues &value)
Definition: Expression.h:275
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::Expression::Expression
Expression(Aws::Utils::Json::JsonView jsonValue)
Aws::CostExplorer::Model::Expression::Expression
Expression()
Aws::CostExplorer::Model::Expression::WithAnd
Expression & WithAnd(Aws::Vector< Expression > &&value)
Definition: Expression.h:146
Aws::CostExplorer::Model::Expression::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CostExplorer::Model::Expression::SetOr
void SetOr(Aws::Vector< Expression > &&value)
Definition: Expression.h:95
Aws::CostExplorer::Model::Expression::AddAnd
Expression & AddAnd(Expression &&value)
Definition: Expression.h:156
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::Expression::WithNot
Expression & WithNot(Expression &&value)
Definition: Expression.h:187
Aws::CostExplorer::Model::Expression::GetDimensions
const DimensionValues & GetDimensions() const
Definition: Expression.h:193
Aws::CostExplorer::Model::Expression::WithAnd
Expression & WithAnd(const Aws::Vector< Expression > &value)
Definition: Expression.h:141
Aws::CostExplorer::Model::Expression::GetTags
const TagValues & GetTags() const
Definition: Expression.h:224
Expression.h
Aws::CostExplorer::Model::Expression::SetNot
void SetNot(const Expression &value)
Definition: Expression.h:172
Aws::CostExplorer::Model::Expression::GetOr
const Aws::Vector< Expression > & GetOr() const
Definition: Expression.h:80
CostCategoryValues.h
Aws::CostExplorer::Model::Expression::GetNot
const Expression & GetNot() const
Definition: Expression.h:162
Aws::CostExplorer::Model::Expression::DimensionsHasBeenSet
bool DimensionsHasBeenSet() const
Definition: Expression.h:198
Aws::CostExplorer::Model::Expression::SetCostCategories
void SetCostCategories(const CostCategoryValues &value)
Definition: Expression.h:265
Aws::CostExplorer::Model::Expression::OrHasBeenSet
bool OrHasBeenSet() const
Definition: Expression.h:85
Aws::CostExplorer::Model::TagValues
Definition: TagValues.h:40
Aws::CostExplorer::Model::Expression::SetTags
void SetTags(const TagValues &value)
Definition: Expression.h:234
Aws::CostExplorer::Model::Expression::SetDimensions
void SetDimensions(DimensionValues &&value)
Definition: Expression.h:208
Aws::CostExplorer::Model::Expression::operator=
Expression & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CostExplorer::Model::Expression::WithTags
Expression & WithTags(const TagValues &value)
Definition: Expression.h:244