AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
ListCondition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/Condition.h>
9#include <aws/connect/model/TargetListType.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
32 public:
33 AWS_CONNECT_API ListCondition() = default;
34 AWS_CONNECT_API ListCondition(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline TargetListType GetTargetListType() const { return m_targetListType; }
43 inline bool TargetListTypeHasBeenSet() const { return m_targetListTypeHasBeenSet; }
44 inline void SetTargetListType(TargetListType value) {
45 m_targetListTypeHasBeenSet = true;
46 m_targetListType = value;
47 }
49 SetTargetListType(value);
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Condition>& GetConditions() const { return m_conditions; }
60 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
61 template <typename ConditionsT = Aws::Vector<Condition>>
62 void SetConditions(ConditionsT&& value) {
63 m_conditionsHasBeenSet = true;
64 m_conditions = std::forward<ConditionsT>(value);
65 }
66 template <typename ConditionsT = Aws::Vector<Condition>>
67 ListCondition& WithConditions(ConditionsT&& value) {
68 SetConditions(std::forward<ConditionsT>(value));
69 return *this;
70 }
71 template <typename ConditionsT = Condition>
72 ListCondition& AddConditions(ConditionsT&& value) {
73 m_conditionsHasBeenSet = true;
74 m_conditions.emplace_back(std::forward<ConditionsT>(value));
75 return *this;
76 }
78 private:
80
81 Aws::Vector<Condition> m_conditions;
82 bool m_targetListTypeHasBeenSet = false;
83 bool m_conditionsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Connect
88} // namespace Aws
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
TargetListType GetTargetListType() const
const Aws::Vector< Condition > & GetConditions() const
void SetTargetListType(TargetListType value)
void SetConditions(ConditionsT &&value)
AWS_CONNECT_API ListCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
ListCondition & WithConditions(ConditionsT &&value)
AWS_CONNECT_API ListCondition(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API ListCondition()=default
ListCondition & AddConditions(ConditionsT &&value)
ListCondition & WithTargetListType(TargetListType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue