AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Expression.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ce/model/DimensionValues.h>
10#include <aws/ce/model/TagValues.h>
11#include <aws/ce/model/CostCategoryValues.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CostExplorer
25{
26namespace Model
27{
28
88 {
89 public:
90 AWS_COSTEXPLORER_API Expression() = default;
91 AWS_COSTEXPLORER_API Expression(Aws::Utils::Json::JsonView jsonValue);
92 AWS_COSTEXPLORER_API Expression& operator=(Aws::Utils::Json::JsonView jsonValue);
93 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
94
95
97
100 inline const Aws::Vector<Expression>& GetOr() const { return m_or; }
101 inline bool OrHasBeenSet() const { return m_orHasBeenSet; }
102 template<typename OrT = Aws::Vector<Expression>>
103 void SetOr(OrT&& value) { m_orHasBeenSet = true; m_or = std::forward<OrT>(value); }
104 template<typename OrT = Aws::Vector<Expression>>
105 Expression& WithOr(OrT&& value) { SetOr(std::forward<OrT>(value)); return *this;}
106 template<typename OrT = Expression>
107 Expression& AddOr(OrT&& value) { m_orHasBeenSet = true; m_or.emplace_back(std::forward<OrT>(value)); return *this; }
109
111
114 inline const Aws::Vector<Expression>& GetAnd() const { return m_and; }
115 inline bool AndHasBeenSet() const { return m_andHasBeenSet; }
116 template<typename AndT = Aws::Vector<Expression>>
117 void SetAnd(AndT&& value) { m_andHasBeenSet = true; m_and = std::forward<AndT>(value); }
118 template<typename AndT = Aws::Vector<Expression>>
119 Expression& WithAnd(AndT&& value) { SetAnd(std::forward<AndT>(value)); return *this;}
120 template<typename AndT = Expression>
121 Expression& AddAnd(AndT&& value) { m_andHasBeenSet = true; m_and.emplace_back(std::forward<AndT>(value)); return *this; }
123
125
128 inline const Expression& GetNot() const{
129 return *m_not;
130 }
131 inline bool NotHasBeenSet() const { return m_notHasBeenSet; }
132 template<typename NotT = Expression>
133 void SetNot(NotT&& value) {
134 m_notHasBeenSet = true;
135 m_not = Aws::MakeShared<Expression>("Expression", std::forward<NotT>(value));
136 }
137 template<typename NotT = Expression>
138 Expression& WithNot(NotT&& value) { SetNot(std::forward<NotT>(value)); return *this;}
140
142
145 inline const DimensionValues& GetDimensions() const { return m_dimensions; }
146 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
147 template<typename DimensionsT = DimensionValues>
148 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
149 template<typename DimensionsT = DimensionValues>
150 Expression& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
152
154
157 inline const TagValues& GetTags() const { return m_tags; }
158 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
159 template<typename TagsT = TagValues>
160 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
161 template<typename TagsT = TagValues>
162 Expression& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
164
166
169 inline const CostCategoryValues& GetCostCategories() const { return m_costCategories; }
170 inline bool CostCategoriesHasBeenSet() const { return m_costCategoriesHasBeenSet; }
171 template<typename CostCategoriesT = CostCategoryValues>
172 void SetCostCategories(CostCategoriesT&& value) { m_costCategoriesHasBeenSet = true; m_costCategories = std::forward<CostCategoriesT>(value); }
173 template<typename CostCategoriesT = CostCategoryValues>
174 Expression& WithCostCategories(CostCategoriesT&& value) { SetCostCategories(std::forward<CostCategoriesT>(value)); return *this;}
176 private:
177
179 bool m_orHasBeenSet = false;
180
182 bool m_andHasBeenSet = false;
183
184 std::shared_ptr<Expression> m_not;
185 bool m_notHasBeenSet = false;
186
187 DimensionValues m_dimensions;
188 bool m_dimensionsHasBeenSet = false;
189
190 TagValues m_tags;
191 bool m_tagsHasBeenSet = false;
192
193 CostCategoryValues m_costCategories;
194 bool m_costCategoriesHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace CostExplorer
199} // namespace Aws
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
const TagValues & GetTags() const
Definition Expression.h:157
Expression & WithOr(OrT &&value)
Definition Expression.h:105
AWS_COSTEXPLORER_API Expression & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Expression > & GetOr() const
Definition Expression.h:100
Expression & WithCostCategories(CostCategoriesT &&value)
Definition Expression.h:174
Expression & WithNot(NotT &&value)
Definition Expression.h:138
const DimensionValues & GetDimensions() const
Definition Expression.h:145
const Expression & GetNot() const
Definition Expression.h:128
AWS_COSTEXPLORER_API Expression(Aws::Utils::Json::JsonView jsonValue)
const CostCategoryValues & GetCostCategories() const
Definition Expression.h:169
void SetDimensions(DimensionsT &&value)
Definition Expression.h:148
void SetCostCategories(CostCategoriesT &&value)
Definition Expression.h:172
Expression & WithAnd(AndT &&value)
Definition Expression.h:119
AWS_COSTEXPLORER_API Expression()=default
Expression & WithTags(TagsT &&value)
Definition Expression.h:162
Expression & WithDimensions(DimensionsT &&value)
Definition Expression.h:150
Expression & AddOr(OrT &&value)
Definition Expression.h:107
Expression & AddAnd(AndT &&value)
Definition Expression.h:121
const Aws::Vector< Expression > & GetAnd() const
Definition Expression.h:114
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue