AWS SDK for C++

AWS SDK for C++ Version 1.11.611

Loading...
Searching...
No Matches
ContactFlowSearchCriteria.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/connect/model/StringCondition.h>
10#include <aws/connect/model/ContactFlowType.h>
11#include <aws/connect/model/ContactFlowState.h>
12#include <aws/connect/model/ContactFlowStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Connect
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CONNECT_API ContactFlowSearchCriteria() = default;
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<ContactFlowSearchCriteria>& GetOrConditions() const { return m_orConditions; }
50 inline bool OrConditionsHasBeenSet() const { return m_orConditionsHasBeenSet; }
51 template<typename OrConditionsT = Aws::Vector<ContactFlowSearchCriteria>>
52 void SetOrConditions(OrConditionsT&& value) { m_orConditionsHasBeenSet = true; m_orConditions = std::forward<OrConditionsT>(value); }
53 template<typename OrConditionsT = Aws::Vector<ContactFlowSearchCriteria>>
54 ContactFlowSearchCriteria& WithOrConditions(OrConditionsT&& value) { SetOrConditions(std::forward<OrConditionsT>(value)); return *this;}
55 template<typename OrConditionsT = ContactFlowSearchCriteria>
56 ContactFlowSearchCriteria& AddOrConditions(OrConditionsT&& value) { m_orConditionsHasBeenSet = true; m_orConditions.emplace_back(std::forward<OrConditionsT>(value)); return *this; }
58
60
64 inline const Aws::Vector<ContactFlowSearchCriteria>& GetAndConditions() const { return m_andConditions; }
65 inline bool AndConditionsHasBeenSet() const { return m_andConditionsHasBeenSet; }
66 template<typename AndConditionsT = Aws::Vector<ContactFlowSearchCriteria>>
67 void SetAndConditions(AndConditionsT&& value) { m_andConditionsHasBeenSet = true; m_andConditions = std::forward<AndConditionsT>(value); }
68 template<typename AndConditionsT = Aws::Vector<ContactFlowSearchCriteria>>
69 ContactFlowSearchCriteria& WithAndConditions(AndConditionsT&& value) { SetAndConditions(std::forward<AndConditionsT>(value)); return *this;}
70 template<typename AndConditionsT = ContactFlowSearchCriteria>
71 ContactFlowSearchCriteria& AddAndConditions(AndConditionsT&& value) { m_andConditionsHasBeenSet = true; m_andConditions.emplace_back(std::forward<AndConditionsT>(value)); return *this; }
73
75
76 inline const StringCondition& GetStringCondition() const { return m_stringCondition; }
77 inline bool StringConditionHasBeenSet() const { return m_stringConditionHasBeenSet; }
78 template<typename StringConditionT = StringCondition>
79 void SetStringCondition(StringConditionT&& value) { m_stringConditionHasBeenSet = true; m_stringCondition = std::forward<StringConditionT>(value); }
80 template<typename StringConditionT = StringCondition>
81 ContactFlowSearchCriteria& WithStringCondition(StringConditionT&& value) { SetStringCondition(std::forward<StringConditionT>(value)); return *this;}
83
85
88 inline ContactFlowType GetTypeCondition() const { return m_typeCondition; }
89 inline bool TypeConditionHasBeenSet() const { return m_typeConditionHasBeenSet; }
90 inline void SetTypeCondition(ContactFlowType value) { m_typeConditionHasBeenSet = true; m_typeCondition = value; }
93
95
98 inline ContactFlowState GetStateCondition() const { return m_stateCondition; }
99 inline bool StateConditionHasBeenSet() const { return m_stateConditionHasBeenSet; }
100 inline void SetStateCondition(ContactFlowState value) { m_stateConditionHasBeenSet = true; m_stateCondition = value; }
103
105
108 inline ContactFlowStatus GetStatusCondition() const { return m_statusCondition; }
109 inline bool StatusConditionHasBeenSet() const { return m_statusConditionHasBeenSet; }
110 inline void SetStatusCondition(ContactFlowStatus value) { m_statusConditionHasBeenSet = true; m_statusCondition = value; }
113 private:
114
116 bool m_orConditionsHasBeenSet = false;
117
119 bool m_andConditionsHasBeenSet = false;
120
121 StringCondition m_stringCondition;
122 bool m_stringConditionHasBeenSet = false;
123
125 bool m_typeConditionHasBeenSet = false;
126
128 bool m_stateConditionHasBeenSet = false;
129
131 bool m_statusConditionHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Connect
136} // namespace Aws
ContactFlowSearchCriteria & AddOrConditions(OrConditionsT &&value)
AWS_CONNECT_API ContactFlowSearchCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
ContactFlowSearchCriteria & WithOrConditions(OrConditionsT &&value)
AWS_CONNECT_API ContactFlowSearchCriteria()=default
AWS_CONNECT_API ContactFlowSearchCriteria(Aws::Utils::Json::JsonView jsonValue)
ContactFlowSearchCriteria & WithStatusCondition(ContactFlowStatus value)
ContactFlowSearchCriteria & WithAndConditions(AndConditionsT &&value)
ContactFlowSearchCriteria & WithStringCondition(StringConditionT &&value)
ContactFlowSearchCriteria & WithStateCondition(ContactFlowState value)
const Aws::Vector< ContactFlowSearchCriteria > & GetAndConditions() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ContactFlowSearchCriteria > & GetOrConditions() const
ContactFlowSearchCriteria & AddAndConditions(AndConditionsT &&value)
ContactFlowSearchCriteria & WithTypeCondition(ContactFlowType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue