AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ResourceLogicalExpression.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
9#include <aws/network-security-manager/model/ResourceCriteria.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkSecurityManager {
21namespace Model {
22
31 public:
32 AWS_NETWORKSECURITYMANAGER_API ResourceLogicalExpression() = default;
33 AWS_NETWORKSECURITYMANAGER_API ResourceLogicalExpression(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKSECURITYMANAGER_API ResourceLogicalExpression& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const ResourceCriteria& GetCriteria() const { return m_criteria; }
43 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
44 template <typename CriteriaT = ResourceCriteria>
45 void SetCriteria(CriteriaT&& value) {
46 m_criteriaHasBeenSet = true;
47 m_criteria = std::forward<CriteriaT>(value);
48 }
49 template <typename CriteriaT = ResourceCriteria>
51 SetCriteria(std::forward<CriteriaT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<ResourceLogicalExpression>& GetAnd() const { return m_and; }
61 inline bool AndHasBeenSet() const { return m_andHasBeenSet; }
62 template <typename AndT = Aws::Vector<ResourceLogicalExpression>>
63 void SetAnd(AndT&& value) {
64 m_andHasBeenSet = true;
65 m_and = std::forward<AndT>(value);
66 }
67 template <typename AndT = Aws::Vector<ResourceLogicalExpression>>
69 SetAnd(std::forward<AndT>(value));
70 return *this;
71 }
72 template <typename AndT = ResourceLogicalExpression>
74 m_andHasBeenSet = true;
75 m_and.emplace_back(std::forward<AndT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Vector<ResourceLogicalExpression>& GetOr() const { return m_or; }
85 inline bool OrHasBeenSet() const { return m_orHasBeenSet; }
86 template <typename OrT = Aws::Vector<ResourceLogicalExpression>>
87 void SetOr(OrT&& value) {
88 m_orHasBeenSet = true;
89 m_or = std::forward<OrT>(value);
90 }
91 template <typename OrT = Aws::Vector<ResourceLogicalExpression>>
93 SetOr(std::forward<OrT>(value));
94 return *this;
95 }
96 template <typename OrT = ResourceLogicalExpression>
98 m_orHasBeenSet = true;
99 m_or.emplace_back(std::forward<OrT>(value));
100 return *this;
101 }
103
105
108 inline const ResourceLogicalExpression& GetNot() const { return *m_not; }
109 inline bool NotHasBeenSet() const { return m_notHasBeenSet; }
110 template <typename NotT = ResourceLogicalExpression>
111 void SetNot(NotT&& value) {
112 m_notHasBeenSet = true;
113 m_not = Aws::MakeShared<ResourceLogicalExpression>("ResourceLogicalExpression", std::forward<NotT>(value));
114 }
115 template <typename NotT = ResourceLogicalExpression>
117 SetNot(std::forward<NotT>(value));
118 return *this;
119 }
121 private:
122 ResourceCriteria m_criteria;
123
125
127
128 std::shared_ptr<ResourceLogicalExpression> m_not;
129 bool m_criteriaHasBeenSet = false;
130 bool m_andHasBeenSet = false;
131 bool m_orHasBeenSet = false;
132 bool m_notHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace NetworkSecurityManager
137} // namespace Aws
AWS_NETWORKSECURITYMANAGER_API ResourceLogicalExpression & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ResourceLogicalExpression > & GetAnd() const
ResourceLogicalExpression & WithCriteria(CriteriaT &&value)
AWS_NETWORKSECURITYMANAGER_API ResourceLogicalExpression(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKSECURITYMANAGER_API ResourceLogicalExpression()=default
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ResourceLogicalExpression > & GetOr() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue