7#include <aws/freetier/FreeTier_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/freetier/model/DimensionValues.h>
73 template<
typename OrT = Aws::Vector<Expression>>
74 void SetOr(OrT&& value) { m_orHasBeenSet =
true; m_or = std::forward<OrT>(value); }
75 template<
typename OrT = Aws::Vector<Expression>>
77 template<
typename OrT = Expression>
78 Expression&
AddOr(OrT&& value) { m_orHasBeenSet =
true; m_or.emplace_back(std::forward<OrT>(value));
return *
this; }
88 template<
typename AndT = Aws::Vector<Expression>>
89 void SetAnd(AndT&& value) { m_andHasBeenSet =
true; m_and = std::forward<AndT>(value); }
90 template<
typename AndT = Aws::Vector<Expression>>
92 template<
typename AndT = Expression>
93 Expression&
AddAnd(AndT&& value) { m_andHasBeenSet =
true; m_and.emplace_back(std::forward<AndT>(value));
return *
this; }
105 template<
typename NotT = Expression>
107 m_notHasBeenSet =
true;
108 m_not = Aws::MakeShared<Expression>(
"Expression", std::forward<NotT>(value));
110 template<
typename NotT = Expression>
120 template<
typename DimensionsT = DimensionValues>
121 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet =
true; m_dimensions = std::forward<DimensionsT>(value); }
122 template<
typename DimensionsT = DimensionValues>
128 bool m_orHasBeenSet =
false;
131 bool m_andHasBeenSet =
false;
133 std::shared_ptr<Expression> m_not;
134 bool m_notHasBeenSet =
false;
137 bool m_dimensionsHasBeenSet =
false;
AWS_FREETIER_API Expression(Aws::Utils::Json::JsonView jsonValue)
const DimensionValues & GetDimensions() const
Expression & WithAnd(AndT &&value)
bool NotHasBeenSet() const
void SetAnd(AndT &&value)
const Aws::Vector< Expression > & GetAnd() const
const Aws::Vector< Expression > & GetOr() const
void SetDimensions(DimensionsT &&value)
bool AndHasBeenSet() const
const Expression & GetNot() const
AWS_FREETIER_API Expression & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DimensionsHasBeenSet() const
Expression & WithNot(NotT &&value)
AWS_FREETIER_API Expression()=default
Expression & WithOr(OrT &&value)
void SetNot(NotT &&value)
Expression & WithDimensions(DimensionsT &&value)
Expression & AddOr(OrT &&value)
Expression & AddAnd(AndT &&value)
AWS_FREETIER_API Aws::Utils::Json::JsonValue Jsonize() const
bool OrHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue