AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
TestCaseSearchCriteria.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/StringCondition.h>
9#include <aws/connect/model/TestCaseStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
31 public:
32 AWS_CONNECT_API TestCaseSearchCriteria() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<TestCaseSearchCriteria>& GetOrConditions() const { return m_orConditions; }
43 inline bool OrConditionsHasBeenSet() const { return m_orConditionsHasBeenSet; }
44 template <typename OrConditionsT = Aws::Vector<TestCaseSearchCriteria>>
45 void SetOrConditions(OrConditionsT&& value) {
46 m_orConditionsHasBeenSet = true;
47 m_orConditions = std::forward<OrConditionsT>(value);
48 }
49 template <typename OrConditionsT = Aws::Vector<TestCaseSearchCriteria>>
50 TestCaseSearchCriteria& WithOrConditions(OrConditionsT&& value) {
51 SetOrConditions(std::forward<OrConditionsT>(value));
52 return *this;
53 }
54 template <typename OrConditionsT = TestCaseSearchCriteria>
55 TestCaseSearchCriteria& AddOrConditions(OrConditionsT&& value) {
56 m_orConditionsHasBeenSet = true;
57 m_orConditions.emplace_back(std::forward<OrConditionsT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<TestCaseSearchCriteria>& GetAndConditions() const { return m_andConditions; }
68 inline bool AndConditionsHasBeenSet() const { return m_andConditionsHasBeenSet; }
69 template <typename AndConditionsT = Aws::Vector<TestCaseSearchCriteria>>
70 void SetAndConditions(AndConditionsT&& value) {
71 m_andConditionsHasBeenSet = true;
72 m_andConditions = std::forward<AndConditionsT>(value);
73 }
74 template <typename AndConditionsT = Aws::Vector<TestCaseSearchCriteria>>
75 TestCaseSearchCriteria& WithAndConditions(AndConditionsT&& value) {
76 SetAndConditions(std::forward<AndConditionsT>(value));
77 return *this;
78 }
79 template <typename AndConditionsT = TestCaseSearchCriteria>
80 TestCaseSearchCriteria& AddAndConditions(AndConditionsT&& value) {
81 m_andConditionsHasBeenSet = true;
82 m_andConditions.emplace_back(std::forward<AndConditionsT>(value));
83 return *this;
84 }
86
88
91 inline const StringCondition& GetStringCondition() const { return m_stringCondition; }
92 inline bool StringConditionHasBeenSet() const { return m_stringConditionHasBeenSet; }
93 template <typename StringConditionT = StringCondition>
94 void SetStringCondition(StringConditionT&& value) {
95 m_stringConditionHasBeenSet = true;
96 m_stringCondition = std::forward<StringConditionT>(value);
97 }
98 template <typename StringConditionT = StringCondition>
99 TestCaseSearchCriteria& WithStringCondition(StringConditionT&& value) {
100 SetStringCondition(std::forward<StringConditionT>(value));
101 return *this;
102 }
104
106
109 inline TestCaseStatus GetStatusCondition() const { return m_statusCondition; }
110 inline bool StatusConditionHasBeenSet() const { return m_statusConditionHasBeenSet; }
112 m_statusConditionHasBeenSet = true;
113 m_statusCondition = value;
114 }
116 SetStatusCondition(value);
117 return *this;
118 }
120 private:
122
124
125 StringCondition m_stringCondition;
126
127 TestCaseStatus m_statusCondition{TestCaseStatus::NOT_SET};
128 bool m_orConditionsHasBeenSet = false;
129 bool m_andConditionsHasBeenSet = false;
130 bool m_stringConditionHasBeenSet = false;
131 bool m_statusConditionHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace Connect
136} // namespace Aws
TestCaseSearchCriteria & WithAndConditions(AndConditionsT &&value)
TestCaseSearchCriteria & WithStatusCondition(TestCaseStatus value)
TestCaseSearchCriteria & WithStringCondition(StringConditionT &&value)
TestCaseSearchCriteria & WithOrConditions(OrConditionsT &&value)
TestCaseSearchCriteria & AddOrConditions(OrConditionsT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API TestCaseSearchCriteria(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API TestCaseSearchCriteria()=default
const Aws::Vector< TestCaseSearchCriteria > & GetOrConditions() const
const StringCondition & GetStringCondition() const
void SetStringCondition(StringConditionT &&value)
TestCaseSearchCriteria & AddAndConditions(AndConditionsT &&value)
AWS_CONNECT_API TestCaseSearchCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< TestCaseSearchCriteria > & GetAndConditions() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue