AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListCondition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/TargetListType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/connect/model/Condition.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_CONNECT_API ListCondition() = default;
39 AWS_CONNECT_API ListCondition(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline TargetListType GetTargetListType() const { return m_targetListType; }
49 inline bool TargetListTypeHasBeenSet() const { return m_targetListTypeHasBeenSet; }
50 inline void SetTargetListType(TargetListType value) { m_targetListTypeHasBeenSet = true; m_targetListType = value; }
51 inline ListCondition& WithTargetListType(TargetListType value) { SetTargetListType(value); return *this;}
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) { m_conditionsHasBeenSet = true; m_conditions = std::forward<ConditionsT>(value); }
63 template<typename ConditionsT = Aws::Vector<Condition>>
64 ListCondition& WithConditions(ConditionsT&& value) { SetConditions(std::forward<ConditionsT>(value)); return *this;}
65 template<typename ConditionsT = Condition>
66 ListCondition& AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions.emplace_back(std::forward<ConditionsT>(value)); return *this; }
68 private:
69
71 bool m_targetListTypeHasBeenSet = false;
72
73 Aws::Vector<Condition> m_conditions;
74 bool m_conditionsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Connect
79} // 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