AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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