AWS SDK for C++

AWS SDK for C++ Version 1.11.848

Loading...
Searching...
No Matches
RulesSearchCriteria.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/StringCondition.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
29 public:
30 AWS_CONNECT_API RulesSearchCriteria() = default;
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::Vector<RulesSearchCriteria>& GetOrConditions() const { return m_orConditions; }
41 inline bool OrConditionsHasBeenSet() const { return m_orConditionsHasBeenSet; }
42 template <typename OrConditionsT = Aws::Vector<RulesSearchCriteria>>
43 void SetOrConditions(OrConditionsT&& value) {
44 m_orConditionsHasBeenSet = true;
45 m_orConditions = std::forward<OrConditionsT>(value);
46 }
47 template <typename OrConditionsT = Aws::Vector<RulesSearchCriteria>>
48 RulesSearchCriteria& WithOrConditions(OrConditionsT&& value) {
49 SetOrConditions(std::forward<OrConditionsT>(value));
50 return *this;
51 }
52 template <typename OrConditionsT = RulesSearchCriteria>
53 RulesSearchCriteria& AddOrConditions(OrConditionsT&& value) {
54 m_orConditionsHasBeenSet = true;
55 m_orConditions.emplace_back(std::forward<OrConditionsT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Vector<RulesSearchCriteria>& GetAndConditions() const { return m_andConditions; }
66 inline bool AndConditionsHasBeenSet() const { return m_andConditionsHasBeenSet; }
67 template <typename AndConditionsT = Aws::Vector<RulesSearchCriteria>>
68 void SetAndConditions(AndConditionsT&& value) {
69 m_andConditionsHasBeenSet = true;
70 m_andConditions = std::forward<AndConditionsT>(value);
71 }
72 template <typename AndConditionsT = Aws::Vector<RulesSearchCriteria>>
73 RulesSearchCriteria& WithAndConditions(AndConditionsT&& value) {
74 SetAndConditions(std::forward<AndConditionsT>(value));
75 return *this;
76 }
77 template <typename AndConditionsT = RulesSearchCriteria>
78 RulesSearchCriteria& AddAndConditions(AndConditionsT&& value) {
79 m_andConditionsHasBeenSet = true;
80 m_andConditions.emplace_back(std::forward<AndConditionsT>(value));
81 return *this;
82 }
84
86
93 inline const StringCondition& GetStringCondition() const { return m_stringCondition; }
94 inline bool StringConditionHasBeenSet() const { return m_stringConditionHasBeenSet; }
95 template <typename StringConditionT = StringCondition>
96 void SetStringCondition(StringConditionT&& value) {
97 m_stringConditionHasBeenSet = true;
98 m_stringCondition = std::forward<StringConditionT>(value);
99 }
100 template <typename StringConditionT = StringCondition>
101 RulesSearchCriteria& WithStringCondition(StringConditionT&& value) {
102 SetStringCondition(std::forward<StringConditionT>(value));
103 return *this;
104 }
106 private:
108
109 Aws::Vector<RulesSearchCriteria> m_andConditions;
110
111 StringCondition m_stringCondition;
112 bool m_orConditionsHasBeenSet = false;
113 bool m_andConditionsHasBeenSet = false;
114 bool m_stringConditionHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Connect
119} // namespace Aws
AWS_CONNECT_API RulesSearchCriteria(Aws::Utils::Json::JsonView jsonValue)
RulesSearchCriteria & AddAndConditions(AndConditionsT &&value)
RulesSearchCriteria & WithAndConditions(AndConditionsT &&value)
AWS_CONNECT_API RulesSearchCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOrConditions(OrConditionsT &&value)
AWS_CONNECT_API RulesSearchCriteria()=default
void SetStringCondition(StringConditionT &&value)
const Aws::Vector< RulesSearchCriteria > & GetOrConditions() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const StringCondition & GetStringCondition() const
RulesSearchCriteria & WithStringCondition(StringConditionT &&value)
RulesSearchCriteria & WithOrConditions(OrConditionsT &&value)
RulesSearchCriteria & AddOrConditions(OrConditionsT &&value)
void SetAndConditions(AndConditionsT &&value)
const Aws::Vector< RulesSearchCriteria > & GetAndConditions() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue