AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleDmarcExpression.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/RuleDmarcOperator.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mailmanager/model/RuleDmarcPolicy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MailManager
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MAILMANAGER_API RuleDmarcExpression();
38 AWS_MAILMANAGER_API RuleDmarcExpression(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const RuleDmarcOperator& GetOperator() const{ return m_operator; }
48 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
49 inline void SetOperator(const RuleDmarcOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
50 inline void SetOperator(RuleDmarcOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
51 inline RuleDmarcExpression& WithOperator(const RuleDmarcOperator& value) { SetOperator(value); return *this;}
52 inline RuleDmarcExpression& WithOperator(RuleDmarcOperator&& value) { SetOperator(std::move(value)); return *this;}
54
56
64 inline const Aws::Vector<RuleDmarcPolicy>& GetValues() const{ return m_values; }
65 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
66 inline void SetValues(const Aws::Vector<RuleDmarcPolicy>& value) { m_valuesHasBeenSet = true; m_values = value; }
67 inline void SetValues(Aws::Vector<RuleDmarcPolicy>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
68 inline RuleDmarcExpression& WithValues(const Aws::Vector<RuleDmarcPolicy>& value) { SetValues(value); return *this;}
69 inline RuleDmarcExpression& WithValues(Aws::Vector<RuleDmarcPolicy>&& value) { SetValues(std::move(value)); return *this;}
70 inline RuleDmarcExpression& AddValues(const RuleDmarcPolicy& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
71 inline RuleDmarcExpression& AddValues(RuleDmarcPolicy&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
73 private:
74
75 RuleDmarcOperator m_operator;
76 bool m_operatorHasBeenSet = false;
77
79 bool m_valuesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace MailManager
84} // namespace Aws
RuleDmarcExpression & AddValues(RuleDmarcPolicy &&value)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
RuleDmarcExpression & WithOperator(RuleDmarcOperator &&value)
void SetOperator(RuleDmarcOperator &&value)
void SetValues(Aws::Vector< RuleDmarcPolicy > &&value)
AWS_MAILMANAGER_API RuleDmarcExpression(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API RuleDmarcExpression & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleDmarcExpression & WithValues(Aws::Vector< RuleDmarcPolicy > &&value)
RuleDmarcExpression & WithValues(const Aws::Vector< RuleDmarcPolicy > &value)
void SetValues(const Aws::Vector< RuleDmarcPolicy > &value)
const RuleDmarcOperator & GetOperator() const
RuleDmarcExpression & AddValues(const RuleDmarcPolicy &value)
void SetOperator(const RuleDmarcOperator &value)
RuleDmarcExpression & WithOperator(const RuleDmarcOperator &value)
const Aws::Vector< RuleDmarcPolicy > & GetValues() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue