AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleStringExpression.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/RuleStringToEvaluate.h>
9#include <aws/mailmanager/model/RuleStringOperator.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.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 MailManager
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MAILMANAGER_API RuleStringExpression();
39 AWS_MAILMANAGER_API RuleStringExpression(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const RuleStringToEvaluate& GetEvaluate() const{ return m_evaluate; }
49 inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; }
50 inline void SetEvaluate(const RuleStringToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; }
51 inline void SetEvaluate(RuleStringToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); }
52 inline RuleStringExpression& WithEvaluate(const RuleStringToEvaluate& value) { SetEvaluate(value); return *this;}
53 inline RuleStringExpression& WithEvaluate(RuleStringToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;}
55
57
60 inline const RuleStringOperator& GetOperator() const{ return m_operator; }
61 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
62 inline void SetOperator(const RuleStringOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
63 inline void SetOperator(RuleStringOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
64 inline RuleStringExpression& WithOperator(const RuleStringOperator& value) { SetOperator(value); return *this;}
65 inline RuleStringExpression& WithOperator(RuleStringOperator&& value) { SetOperator(std::move(value)); return *this;}
67
69
77 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
78 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
79 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
80 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
81 inline RuleStringExpression& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
82 inline RuleStringExpression& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
83 inline RuleStringExpression& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
84 inline RuleStringExpression& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
85 inline RuleStringExpression& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
87 private:
88
89 RuleStringToEvaluate m_evaluate;
90 bool m_evaluateHasBeenSet = false;
91
92 RuleStringOperator m_operator;
93 bool m_operatorHasBeenSet = false;
94
96 bool m_valuesHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace MailManager
101} // namespace Aws
RuleStringExpression & WithEvaluate(RuleStringToEvaluate &&value)
RuleStringExpression & AddValues(Aws::String &&value)
void SetValues(const Aws::Vector< Aws::String > &value)
void SetEvaluate(const RuleStringToEvaluate &value)
void SetOperator(const RuleStringOperator &value)
RuleStringExpression & WithValues(const Aws::Vector< Aws::String > &value)
RuleStringExpression & AddValues(const char *value)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MAILMANAGER_API RuleStringExpression & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleStringExpression & WithOperator(RuleStringOperator &&value)
RuleStringExpression & WithOperator(const RuleStringOperator &value)
const Aws::Vector< Aws::String > & GetValues() const
void SetEvaluate(RuleStringToEvaluate &&value)
RuleStringExpression & WithEvaluate(const RuleStringToEvaluate &value)
const RuleStringToEvaluate & GetEvaluate() const
RuleStringExpression & WithValues(Aws::Vector< Aws::String > &&value)
RuleStringExpression & AddValues(const Aws::String &value)
void SetValues(Aws::Vector< Aws::String > &&value)
const RuleStringOperator & GetOperator() const
AWS_MAILMANAGER_API RuleStringExpression(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue