AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const TargetListType& GetTargetListType() const{ return m_targetListType; }
49 inline bool TargetListTypeHasBeenSet() const { return m_targetListTypeHasBeenSet; }
50 inline void SetTargetListType(const TargetListType& value) { m_targetListTypeHasBeenSet = true; m_targetListType = value; }
51 inline void SetTargetListType(TargetListType&& value) { m_targetListTypeHasBeenSet = true; m_targetListType = std::move(value); }
52 inline ListCondition& WithTargetListType(const TargetListType& value) { SetTargetListType(value); return *this;}
53 inline ListCondition& WithTargetListType(TargetListType&& value) { SetTargetListType(std::move(value)); return *this;}
55
57
61 inline const Aws::Vector<Condition>& GetConditions() const{ return m_conditions; }
62 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
63 inline void SetConditions(const Aws::Vector<Condition>& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
64 inline void SetConditions(Aws::Vector<Condition>&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
65 inline ListCondition& WithConditions(const Aws::Vector<Condition>& value) { SetConditions(value); return *this;}
66 inline ListCondition& WithConditions(Aws::Vector<Condition>&& value) { SetConditions(std::move(value)); return *this;}
67 inline ListCondition& AddConditions(const Condition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
68 inline ListCondition& AddConditions(Condition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; }
70 private:
71
72 TargetListType m_targetListType;
73 bool m_targetListTypeHasBeenSet = false;
74
75 Aws::Vector<Condition> m_conditions;
76 bool m_conditionsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Connect
81} // namespace Aws
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConditions(Aws::Vector< Condition > &&value)
const Aws::Vector< Condition > & GetConditions() const
void SetConditions(const Aws::Vector< Condition > &value)
ListCondition & WithConditions(Aws::Vector< Condition > &&value)
ListCondition & AddConditions(Condition &&value)
void SetTargetListType(TargetListType &&value)
const TargetListType & GetTargetListType() const
AWS_CONNECT_API ListCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
ListCondition & WithConditions(const Aws::Vector< Condition > &value)
AWS_CONNECT_API ListCondition(Aws::Utils::Json::JsonView jsonValue)
ListCondition & WithTargetListType(const TargetListType &value)
ListCondition & AddConditions(const Condition &value)
ListCondition & WithTargetListType(TargetListType &&value)
void SetTargetListType(const TargetListType &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue