AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleCondition.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/RuleBooleanExpression.h>
9#include <aws/mailmanager/model/RuleDmarcExpression.h>
10#include <aws/mailmanager/model/RuleIpExpression.h>
11#include <aws/mailmanager/model/RuleNumberExpression.h>
12#include <aws/mailmanager/model/RuleStringExpression.h>
13#include <aws/mailmanager/model/RuleVerdictExpression.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace MailManager
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_MAILMANAGER_API RuleCondition();
41 AWS_MAILMANAGER_API RuleCondition(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MAILMANAGER_API RuleCondition& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const RuleBooleanExpression& GetBooleanExpression() const{ return m_booleanExpression; }
51 inline bool BooleanExpressionHasBeenSet() const { return m_booleanExpressionHasBeenSet; }
52 inline void SetBooleanExpression(const RuleBooleanExpression& value) { m_booleanExpressionHasBeenSet = true; m_booleanExpression = value; }
53 inline void SetBooleanExpression(RuleBooleanExpression&& value) { m_booleanExpressionHasBeenSet = true; m_booleanExpression = std::move(value); }
55 inline RuleCondition& WithBooleanExpression(RuleBooleanExpression&& value) { SetBooleanExpression(std::move(value)); return *this;}
57
59
62 inline const RuleDmarcExpression& GetDmarcExpression() const{ return m_dmarcExpression; }
63 inline bool DmarcExpressionHasBeenSet() const { return m_dmarcExpressionHasBeenSet; }
64 inline void SetDmarcExpression(const RuleDmarcExpression& value) { m_dmarcExpressionHasBeenSet = true; m_dmarcExpression = value; }
65 inline void SetDmarcExpression(RuleDmarcExpression&& value) { m_dmarcExpressionHasBeenSet = true; m_dmarcExpression = std::move(value); }
66 inline RuleCondition& WithDmarcExpression(const RuleDmarcExpression& value) { SetDmarcExpression(value); return *this;}
67 inline RuleCondition& WithDmarcExpression(RuleDmarcExpression&& value) { SetDmarcExpression(std::move(value)); return *this;}
69
71
74 inline const RuleIpExpression& GetIpExpression() const{ return m_ipExpression; }
75 inline bool IpExpressionHasBeenSet() const { return m_ipExpressionHasBeenSet; }
76 inline void SetIpExpression(const RuleIpExpression& value) { m_ipExpressionHasBeenSet = true; m_ipExpression = value; }
77 inline void SetIpExpression(RuleIpExpression&& value) { m_ipExpressionHasBeenSet = true; m_ipExpression = std::move(value); }
78 inline RuleCondition& WithIpExpression(const RuleIpExpression& value) { SetIpExpression(value); return *this;}
79 inline RuleCondition& WithIpExpression(RuleIpExpression&& value) { SetIpExpression(std::move(value)); return *this;}
81
83
86 inline const RuleNumberExpression& GetNumberExpression() const{ return m_numberExpression; }
87 inline bool NumberExpressionHasBeenSet() const { return m_numberExpressionHasBeenSet; }
88 inline void SetNumberExpression(const RuleNumberExpression& value) { m_numberExpressionHasBeenSet = true; m_numberExpression = value; }
89 inline void SetNumberExpression(RuleNumberExpression&& value) { m_numberExpressionHasBeenSet = true; m_numberExpression = std::move(value); }
90 inline RuleCondition& WithNumberExpression(const RuleNumberExpression& value) { SetNumberExpression(value); return *this;}
91 inline RuleCondition& WithNumberExpression(RuleNumberExpression&& value) { SetNumberExpression(std::move(value)); return *this;}
93
95
98 inline const RuleStringExpression& GetStringExpression() const{ return m_stringExpression; }
99 inline bool StringExpressionHasBeenSet() const { return m_stringExpressionHasBeenSet; }
100 inline void SetStringExpression(const RuleStringExpression& value) { m_stringExpressionHasBeenSet = true; m_stringExpression = value; }
101 inline void SetStringExpression(RuleStringExpression&& value) { m_stringExpressionHasBeenSet = true; m_stringExpression = std::move(value); }
102 inline RuleCondition& WithStringExpression(const RuleStringExpression& value) { SetStringExpression(value); return *this;}
103 inline RuleCondition& WithStringExpression(RuleStringExpression&& value) { SetStringExpression(std::move(value)); return *this;}
105
107
110 inline const RuleVerdictExpression& GetVerdictExpression() const{ return m_verdictExpression; }
111 inline bool VerdictExpressionHasBeenSet() const { return m_verdictExpressionHasBeenSet; }
112 inline void SetVerdictExpression(const RuleVerdictExpression& value) { m_verdictExpressionHasBeenSet = true; m_verdictExpression = value; }
113 inline void SetVerdictExpression(RuleVerdictExpression&& value) { m_verdictExpressionHasBeenSet = true; m_verdictExpression = std::move(value); }
115 inline RuleCondition& WithVerdictExpression(RuleVerdictExpression&& value) { SetVerdictExpression(std::move(value)); return *this;}
117 private:
118
119 RuleBooleanExpression m_booleanExpression;
120 bool m_booleanExpressionHasBeenSet = false;
121
122 RuleDmarcExpression m_dmarcExpression;
123 bool m_dmarcExpressionHasBeenSet = false;
124
125 RuleIpExpression m_ipExpression;
126 bool m_ipExpressionHasBeenSet = false;
127
128 RuleNumberExpression m_numberExpression;
129 bool m_numberExpressionHasBeenSet = false;
130
131 RuleStringExpression m_stringExpression;
132 bool m_stringExpressionHasBeenSet = false;
133
134 RuleVerdictExpression m_verdictExpression;
135 bool m_verdictExpressionHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace MailManager
140} // namespace Aws
void SetVerdictExpression(RuleVerdictExpression &&value)
AWS_MAILMANAGER_API RuleCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDmarcExpression(RuleDmarcExpression &&value)
AWS_MAILMANAGER_API RuleCondition(Aws::Utils::Json::JsonView jsonValue)
void SetBooleanExpression(const RuleBooleanExpression &value)
RuleCondition & WithNumberExpression(RuleNumberExpression &&value)
const RuleStringExpression & GetStringExpression() const
const RuleVerdictExpression & GetVerdictExpression() const
RuleCondition & WithIpExpression(const RuleIpExpression &value)
void SetStringExpression(const RuleStringExpression &value)
RuleCondition & WithBooleanExpression(const RuleBooleanExpression &value)
const RuleBooleanExpression & GetBooleanExpression() const
void SetIpExpression(const RuleIpExpression &value)
const RuleNumberExpression & GetNumberExpression() const
void SetNumberExpression(RuleNumberExpression &&value)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
RuleCondition & WithIpExpression(RuleIpExpression &&value)
void SetVerdictExpression(const RuleVerdictExpression &value)
RuleCondition & WithVerdictExpression(RuleVerdictExpression &&value)
RuleCondition & WithStringExpression(RuleStringExpression &&value)
void SetIpExpression(RuleIpExpression &&value)
void SetNumberExpression(const RuleNumberExpression &value)
RuleCondition & WithDmarcExpression(const RuleDmarcExpression &value)
const RuleIpExpression & GetIpExpression() const
RuleCondition & WithNumberExpression(const RuleNumberExpression &value)
RuleCondition & WithVerdictExpression(const RuleVerdictExpression &value)
RuleCondition & WithStringExpression(const RuleStringExpression &value)
void SetDmarcExpression(const RuleDmarcExpression &value)
void SetStringExpression(RuleStringExpression &&value)
const RuleDmarcExpression & GetDmarcExpression() const
void SetBooleanExpression(RuleBooleanExpression &&value)
RuleCondition & WithBooleanExpression(RuleBooleanExpression &&value)
RuleCondition & WithDmarcExpression(RuleDmarcExpression &&value)
Aws::Utils::Json::JsonValue JsonValue