AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AttributeAndCondition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/HierarchyGroupCondition.h>
9#include <aws/connect/model/TagCondition.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 AttributeAndCondition() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<TagCondition>& GetTagConditions() const { return m_tagConditions; }
42 inline bool TagConditionsHasBeenSet() const { return m_tagConditionsHasBeenSet; }
43 template <typename TagConditionsT = Aws::Vector<TagCondition>>
44 void SetTagConditions(TagConditionsT&& value) {
45 m_tagConditionsHasBeenSet = true;
46 m_tagConditions = std::forward<TagConditionsT>(value);
47 }
48 template <typename TagConditionsT = Aws::Vector<TagCondition>>
49 AttributeAndCondition& WithTagConditions(TagConditionsT&& value) {
50 SetTagConditions(std::forward<TagConditionsT>(value));
51 return *this;
52 }
53 template <typename TagConditionsT = TagCondition>
54 AttributeAndCondition& AddTagConditions(TagConditionsT&& value) {
55 m_tagConditionsHasBeenSet = true;
56 m_tagConditions.emplace_back(std::forward<TagConditionsT>(value));
57 return *this;
58 }
60
62
63 inline const HierarchyGroupCondition& GetHierarchyGroupCondition() const { return m_hierarchyGroupCondition; }
64 inline bool HierarchyGroupConditionHasBeenSet() const { return m_hierarchyGroupConditionHasBeenSet; }
65 template <typename HierarchyGroupConditionT = HierarchyGroupCondition>
66 void SetHierarchyGroupCondition(HierarchyGroupConditionT&& value) {
67 m_hierarchyGroupConditionHasBeenSet = true;
68 m_hierarchyGroupCondition = std::forward<HierarchyGroupConditionT>(value);
69 }
70 template <typename HierarchyGroupConditionT = HierarchyGroupCondition>
71 AttributeAndCondition& WithHierarchyGroupCondition(HierarchyGroupConditionT&& value) {
72 SetHierarchyGroupCondition(std::forward<HierarchyGroupConditionT>(value));
73 return *this;
74 }
76 private:
77 Aws::Vector<TagCondition> m_tagConditions;
78
79 HierarchyGroupCondition m_hierarchyGroupCondition;
80 bool m_tagConditionsHasBeenSet = false;
81 bool m_hierarchyGroupConditionHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Connect
86} // 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