AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyCondition.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/IngressBooleanExpression.h>
9#include <aws/mailmanager/model/IngressIpv4Expression.h>
10#include <aws/mailmanager/model/IngressStringExpression.h>
11#include <aws/mailmanager/model/IngressTlsProtocolExpression.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 PolicyCondition();
39 AWS_MAILMANAGER_API PolicyCondition(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MAILMANAGER_API PolicyCondition& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const IngressBooleanExpression& GetBooleanExpression() const{ return m_booleanExpression; }
51 inline bool BooleanExpressionHasBeenSet() const { return m_booleanExpressionHasBeenSet; }
52 inline void SetBooleanExpression(const IngressBooleanExpression& value) { m_booleanExpressionHasBeenSet = true; m_booleanExpression = value; }
53 inline void SetBooleanExpression(IngressBooleanExpression&& value) { m_booleanExpressionHasBeenSet = true; m_booleanExpression = std::move(value); }
55 inline PolicyCondition& WithBooleanExpression(IngressBooleanExpression&& value) { SetBooleanExpression(std::move(value)); return *this;}
57
59
64 inline const IngressIpv4Expression& GetIpExpression() const{ return m_ipExpression; }
65 inline bool IpExpressionHasBeenSet() const { return m_ipExpressionHasBeenSet; }
66 inline void SetIpExpression(const IngressIpv4Expression& value) { m_ipExpressionHasBeenSet = true; m_ipExpression = value; }
67 inline void SetIpExpression(IngressIpv4Expression&& value) { m_ipExpressionHasBeenSet = true; m_ipExpression = std::move(value); }
68 inline PolicyCondition& WithIpExpression(const IngressIpv4Expression& value) { SetIpExpression(value); return *this;}
69 inline PolicyCondition& WithIpExpression(IngressIpv4Expression&& value) { SetIpExpression(std::move(value)); return *this;}
71
73
78 inline const IngressStringExpression& GetStringExpression() const{ return m_stringExpression; }
79 inline bool StringExpressionHasBeenSet() const { return m_stringExpressionHasBeenSet; }
80 inline void SetStringExpression(const IngressStringExpression& value) { m_stringExpressionHasBeenSet = true; m_stringExpression = value; }
81 inline void SetStringExpression(IngressStringExpression&& value) { m_stringExpressionHasBeenSet = true; m_stringExpression = std::move(value); }
83 inline PolicyCondition& WithStringExpression(IngressStringExpression&& value) { SetStringExpression(std::move(value)); return *this;}
85
87
92 inline const IngressTlsProtocolExpression& GetTlsExpression() const{ return m_tlsExpression; }
93 inline bool TlsExpressionHasBeenSet() const { return m_tlsExpressionHasBeenSet; }
94 inline void SetTlsExpression(const IngressTlsProtocolExpression& value) { m_tlsExpressionHasBeenSet = true; m_tlsExpression = value; }
95 inline void SetTlsExpression(IngressTlsProtocolExpression&& value) { m_tlsExpressionHasBeenSet = true; m_tlsExpression = std::move(value); }
97 inline PolicyCondition& WithTlsExpression(IngressTlsProtocolExpression&& value) { SetTlsExpression(std::move(value)); return *this;}
99 private:
100
101 IngressBooleanExpression m_booleanExpression;
102 bool m_booleanExpressionHasBeenSet = false;
103
104 IngressIpv4Expression m_ipExpression;
105 bool m_ipExpressionHasBeenSet = false;
106
107 IngressStringExpression m_stringExpression;
108 bool m_stringExpressionHasBeenSet = false;
109
110 IngressTlsProtocolExpression m_tlsExpression;
111 bool m_tlsExpressionHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace MailManager
116} // namespace Aws
const IngressBooleanExpression & GetBooleanExpression() const
PolicyCondition & WithIpExpression(const IngressIpv4Expression &value)
AWS_MAILMANAGER_API PolicyCondition(Aws::Utils::Json::JsonView jsonValue)
PolicyCondition & WithIpExpression(IngressIpv4Expression &&value)
void SetIpExpression(IngressIpv4Expression &&value)
PolicyCondition & WithStringExpression(const IngressStringExpression &value)
const IngressTlsProtocolExpression & GetTlsExpression() const
PolicyCondition & WithTlsExpression(const IngressTlsProtocolExpression &value)
void SetBooleanExpression(IngressBooleanExpression &&value)
PolicyCondition & WithTlsExpression(IngressTlsProtocolExpression &&value)
void SetStringExpression(const IngressStringExpression &value)
PolicyCondition & WithBooleanExpression(const IngressBooleanExpression &value)
PolicyCondition & WithBooleanExpression(IngressBooleanExpression &&value)
const IngressStringExpression & GetStringExpression() const
AWS_MAILMANAGER_API PolicyCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBooleanExpression(const IngressBooleanExpression &value)
void SetIpExpression(const IngressIpv4Expression &value)
void SetTlsExpression(IngressTlsProtocolExpression &&value)
PolicyCondition & WithStringExpression(IngressStringExpression &&value)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStringExpression(IngressStringExpression &&value)
const IngressIpv4Expression & GetIpExpression() const
void SetTlsExpression(const IngressTlsProtocolExpression &value)
Aws::Utils::Json::JsonValue JsonValue