AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AttributeAndCondition.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/HierarchyGroupCondition.h>
10#include <aws/connect/model/TagCondition.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
35 {
36 public:
37 AWS_CONNECT_API AttributeAndCondition() = default;
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<TagCondition>& GetTagConditions() const { return m_tagConditions; }
48 inline bool TagConditionsHasBeenSet() const { return m_tagConditionsHasBeenSet; }
49 template<typename TagConditionsT = Aws::Vector<TagCondition>>
50 void SetTagConditions(TagConditionsT&& value) { m_tagConditionsHasBeenSet = true; m_tagConditions = std::forward<TagConditionsT>(value); }
51 template<typename TagConditionsT = Aws::Vector<TagCondition>>
52 AttributeAndCondition& WithTagConditions(TagConditionsT&& value) { SetTagConditions(std::forward<TagConditionsT>(value)); return *this;}
53 template<typename TagConditionsT = TagCondition>
54 AttributeAndCondition& AddTagConditions(TagConditionsT&& value) { m_tagConditionsHasBeenSet = true; m_tagConditions.emplace_back(std::forward<TagConditionsT>(value)); return *this; }
56
58
59 inline const HierarchyGroupCondition& GetHierarchyGroupCondition() const { return m_hierarchyGroupCondition; }
60 inline bool HierarchyGroupConditionHasBeenSet() const { return m_hierarchyGroupConditionHasBeenSet; }
61 template<typename HierarchyGroupConditionT = HierarchyGroupCondition>
62 void SetHierarchyGroupCondition(HierarchyGroupConditionT&& value) { m_hierarchyGroupConditionHasBeenSet = true; m_hierarchyGroupCondition = std::forward<HierarchyGroupConditionT>(value); }
63 template<typename HierarchyGroupConditionT = HierarchyGroupCondition>
64 AttributeAndCondition& WithHierarchyGroupCondition(HierarchyGroupConditionT&& value) { SetHierarchyGroupCondition(std::forward<HierarchyGroupConditionT>(value)); return *this;}
66 private:
67
68 Aws::Vector<TagCondition> m_tagConditions;
69 bool m_tagConditionsHasBeenSet = false;
70
71 HierarchyGroupCondition m_hierarchyGroupCondition;
72 bool m_hierarchyGroupConditionHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Connect
77} // namespace Aws
const Aws::Vector< TagCondition > & GetTagConditions() const
AttributeAndCondition & AddTagConditions(TagConditionsT &&value)
AWS_CONNECT_API AttributeAndCondition()=default
AttributeAndCondition & WithHierarchyGroupCondition(HierarchyGroupConditionT &&value)
AWS_CONNECT_API AttributeAndCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API AttributeAndCondition(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHierarchyGroupCondition(HierarchyGroupConditionT &&value)
const HierarchyGroupCondition & GetHierarchyGroupCondition() const
AttributeAndCondition & WithTagConditions(TagConditionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue