AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
RuleDmarcExpression.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/mailmanager/MailManager_EXPORTS.h>
9#include <aws/mailmanager/model/RuleDmarcOperator.h>
10#include <aws/mailmanager/model/RuleDmarcPolicy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MailManager {
22namespace Model {
23
31 public:
32 AWS_MAILMANAGER_API RuleDmarcExpression() = default;
33 AWS_MAILMANAGER_API RuleDmarcExpression(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline RuleDmarcOperator GetOperator() const { return m_operator; }
42 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
43 inline void SetOperator(RuleDmarcOperator value) {
44 m_operatorHasBeenSet = true;
45 m_operator = value;
46 }
48 SetOperator(value);
49 return *this;
50 }
52
54
62 inline const Aws::Vector<RuleDmarcPolicy>& GetValues() const { return m_values; }
63 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
64 template <typename ValuesT = Aws::Vector<RuleDmarcPolicy>>
65 void SetValues(ValuesT&& value) {
66 m_valuesHasBeenSet = true;
67 m_values = std::forward<ValuesT>(value);
68 }
69 template <typename ValuesT = Aws::Vector<RuleDmarcPolicy>>
70 RuleDmarcExpression& WithValues(ValuesT&& value) {
71 SetValues(std::forward<ValuesT>(value));
72 return *this;
73 }
75 m_valuesHasBeenSet = true;
76 m_values.push_back(value);
77 return *this;
78 }
80 private:
82
84 bool m_operatorHasBeenSet = false;
85 bool m_valuesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace MailManager
90} // namespace Aws
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
RuleDmarcExpression & WithValues(ValuesT &&value)
AWS_MAILMANAGER_API RuleDmarcExpression(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API RuleDmarcExpression & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API RuleDmarcExpression()=default
RuleDmarcExpression & WithOperator(RuleDmarcOperator value)
RuleDmarcExpression & AddValues(RuleDmarcPolicy value)
const Aws::Vector< RuleDmarcPolicy > & GetValues() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue