AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
HierarchyGroup.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/HierarchyPath.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect {
23namespace Model {
24
31 public:
32 AWS_CONNECT_API HierarchyGroup() = default;
33 AWS_CONNECT_API HierarchyGroup(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 HierarchyGroup& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 HierarchyGroup& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 HierarchyGroup& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetLevelId() const { return m_levelId; }
96 inline bool LevelIdHasBeenSet() const { return m_levelIdHasBeenSet; }
97 template <typename LevelIdT = Aws::String>
98 void SetLevelId(LevelIdT&& value) {
99 m_levelIdHasBeenSet = true;
100 m_levelId = std::forward<LevelIdT>(value);
101 }
102 template <typename LevelIdT = Aws::String>
103 HierarchyGroup& WithLevelId(LevelIdT&& value) {
104 SetLevelId(std::forward<LevelIdT>(value));
105 return *this;
106 }
108
110
113 inline const HierarchyPath& GetHierarchyPath() const { return m_hierarchyPath; }
114 inline bool HierarchyPathHasBeenSet() const { return m_hierarchyPathHasBeenSet; }
115 template <typename HierarchyPathT = HierarchyPath>
116 void SetHierarchyPath(HierarchyPathT&& value) {
117 m_hierarchyPathHasBeenSet = true;
118 m_hierarchyPath = std::forward<HierarchyPathT>(value);
119 }
120 template <typename HierarchyPathT = HierarchyPath>
121 HierarchyGroup& WithHierarchyPath(HierarchyPathT&& value) {
122 SetHierarchyPath(std::forward<HierarchyPathT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 HierarchyGroup& WithTags(TagsT&& value) {
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 HierarchyGroup& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
157 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
158 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
159 void SetLastModifiedTime(LastModifiedTimeT&& value) {
160 m_lastModifiedTimeHasBeenSet = true;
161 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
162 }
163 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
164 HierarchyGroup& WithLastModifiedTime(LastModifiedTimeT&& value) {
165 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
175 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
176 template <typename LastModifiedRegionT = Aws::String>
177 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
178 m_lastModifiedRegionHasBeenSet = true;
179 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
180 }
181 template <typename LastModifiedRegionT = Aws::String>
182 HierarchyGroup& WithLastModifiedRegion(LastModifiedRegionT&& value) {
183 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_id;
189
190 Aws::String m_arn;
191
192 Aws::String m_name;
193
194 Aws::String m_levelId;
195
196 HierarchyPath m_hierarchyPath;
197
199
200 Aws::Utils::DateTime m_lastModifiedTime{};
201
202 Aws::String m_lastModifiedRegion;
203 bool m_idHasBeenSet = false;
204 bool m_arnHasBeenSet = false;
205 bool m_nameHasBeenSet = false;
206 bool m_levelIdHasBeenSet = false;
207 bool m_hierarchyPathHasBeenSet = false;
208 bool m_tagsHasBeenSet = false;
209 bool m_lastModifiedTimeHasBeenSet = false;
210 bool m_lastModifiedRegionHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace Connect
215} // namespace Aws
HierarchyGroup & AddTags(TagsKeyT &&key, TagsValueT &&value)
HierarchyGroup & WithTags(TagsT &&value)
AWS_CONNECT_API HierarchyGroup(Aws::Utils::Json::JsonView jsonValue)
HierarchyGroup & WithHierarchyPath(HierarchyPathT &&value)
HierarchyGroup & WithName(NameT &&value)
const Aws::String & GetLastModifiedRegion() const
AWS_CONNECT_API HierarchyGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
void SetHierarchyPath(HierarchyPathT &&value)
HierarchyGroup & WithLevelId(LevelIdT &&value)
const Aws::String & GetArn() const
const HierarchyPath & GetHierarchyPath() const
HierarchyGroup & WithLastModifiedRegion(LastModifiedRegionT &&value)
HierarchyGroup & WithId(IdT &&value)
HierarchyGroup & WithLastModifiedTime(LastModifiedTimeT &&value)
HierarchyGroup & WithArn(ArnT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLevelId(LevelIdT &&value)
AWS_CONNECT_API HierarchyGroup()=default
const Aws::String & GetName() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetId() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetLevelId() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue