AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
HoursOfOperation.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/HoursOfOperationConfig.h>
9#include <aws/connect/model/HoursOfOperationsIdentifier.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect {
25namespace Model {
26
33 public:
34 AWS_CONNECT_API HoursOfOperation() = default;
35 AWS_CONNECT_API HoursOfOperation(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetHoursOfOperationId() const { return m_hoursOfOperationId; }
44 inline bool HoursOfOperationIdHasBeenSet() const { return m_hoursOfOperationIdHasBeenSet; }
45 template <typename HoursOfOperationIdT = Aws::String>
46 void SetHoursOfOperationId(HoursOfOperationIdT&& value) {
47 m_hoursOfOperationIdHasBeenSet = true;
48 m_hoursOfOperationId = std::forward<HoursOfOperationIdT>(value);
49 }
50 template <typename HoursOfOperationIdT = Aws::String>
51 HoursOfOperation& WithHoursOfOperationId(HoursOfOperationIdT&& value) {
52 SetHoursOfOperationId(std::forward<HoursOfOperationIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetHoursOfOperationArn() const { return m_hoursOfOperationArn; }
62 inline bool HoursOfOperationArnHasBeenSet() const { return m_hoursOfOperationArnHasBeenSet; }
63 template <typename HoursOfOperationArnT = Aws::String>
64 void SetHoursOfOperationArn(HoursOfOperationArnT&& value) {
65 m_hoursOfOperationArnHasBeenSet = true;
66 m_hoursOfOperationArn = std::forward<HoursOfOperationArnT>(value);
67 }
68 template <typename HoursOfOperationArnT = Aws::String>
69 HoursOfOperation& WithHoursOfOperationArn(HoursOfOperationArnT&& value) {
70 SetHoursOfOperationArn(std::forward<HoursOfOperationArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 HoursOfOperation& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
105 HoursOfOperation& WithDescription(DescriptionT&& value) {
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
116 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
117 template <typename TimeZoneT = Aws::String>
118 void SetTimeZone(TimeZoneT&& value) {
119 m_timeZoneHasBeenSet = true;
120 m_timeZone = std::forward<TimeZoneT>(value);
121 }
122 template <typename TimeZoneT = Aws::String>
123 HoursOfOperation& WithTimeZone(TimeZoneT&& value) {
124 SetTimeZone(std::forward<TimeZoneT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<HoursOfOperationConfig>& GetConfig() const { return m_config; }
134 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
135 template <typename ConfigT = Aws::Vector<HoursOfOperationConfig>>
136 void SetConfig(ConfigT&& value) {
137 m_configHasBeenSet = true;
138 m_config = std::forward<ConfigT>(value);
139 }
140 template <typename ConfigT = Aws::Vector<HoursOfOperationConfig>>
141 HoursOfOperation& WithConfig(ConfigT&& value) {
142 SetConfig(std::forward<ConfigT>(value));
143 return *this;
144 }
145 template <typename ConfigT = HoursOfOperationConfig>
146 HoursOfOperation& AddConfig(ConfigT&& value) {
147 m_configHasBeenSet = true;
148 m_config.emplace_back(std::forward<ConfigT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Vector<HoursOfOperationsIdentifier>& GetParentHoursOfOperations() const { return m_parentHoursOfOperations; }
158 inline bool ParentHoursOfOperationsHasBeenSet() const { return m_parentHoursOfOperationsHasBeenSet; }
159 template <typename ParentHoursOfOperationsT = Aws::Vector<HoursOfOperationsIdentifier>>
160 void SetParentHoursOfOperations(ParentHoursOfOperationsT&& value) {
161 m_parentHoursOfOperationsHasBeenSet = true;
162 m_parentHoursOfOperations = std::forward<ParentHoursOfOperationsT>(value);
163 }
164 template <typename ParentHoursOfOperationsT = Aws::Vector<HoursOfOperationsIdentifier>>
165 HoursOfOperation& WithParentHoursOfOperations(ParentHoursOfOperationsT&& value) {
166 SetParentHoursOfOperations(std::forward<ParentHoursOfOperationsT>(value));
167 return *this;
168 }
169 template <typename ParentHoursOfOperationsT = HoursOfOperationsIdentifier>
170 HoursOfOperation& AddParentHoursOfOperations(ParentHoursOfOperationsT&& value) {
171 m_parentHoursOfOperationsHasBeenSet = true;
172 m_parentHoursOfOperations.emplace_back(std::forward<ParentHoursOfOperationsT>(value));
173 return *this;
174 }
176
178
182 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
185 void SetTags(TagsT&& value) {
186 m_tagsHasBeenSet = true;
187 m_tags = std::forward<TagsT>(value);
188 }
189 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
190 HoursOfOperation& WithTags(TagsT&& value) {
191 SetTags(std::forward<TagsT>(value));
192 return *this;
193 }
194 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
195 HoursOfOperation& AddTags(TagsKeyT&& key, TagsValueT&& value) {
196 m_tagsHasBeenSet = true;
197 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
207 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
208 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
209 void SetLastModifiedTime(LastModifiedTimeT&& value) {
210 m_lastModifiedTimeHasBeenSet = true;
211 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
212 }
213 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
214 HoursOfOperation& WithLastModifiedTime(LastModifiedTimeT&& value) {
215 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
225 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
226 template <typename LastModifiedRegionT = Aws::String>
227 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
228 m_lastModifiedRegionHasBeenSet = true;
229 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
230 }
231 template <typename LastModifiedRegionT = Aws::String>
232 HoursOfOperation& WithLastModifiedRegion(LastModifiedRegionT&& value) {
233 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
234 return *this;
235 }
237 private:
238 Aws::String m_hoursOfOperationId;
239
240 Aws::String m_hoursOfOperationArn;
241
242 Aws::String m_name;
243
244 Aws::String m_description;
245
246 Aws::String m_timeZone;
247
249
250 Aws::Vector<HoursOfOperationsIdentifier> m_parentHoursOfOperations;
251
253
254 Aws::Utils::DateTime m_lastModifiedTime{};
255
256 Aws::String m_lastModifiedRegion;
257 bool m_hoursOfOperationIdHasBeenSet = false;
258 bool m_hoursOfOperationArnHasBeenSet = false;
259 bool m_nameHasBeenSet = false;
260 bool m_descriptionHasBeenSet = false;
261 bool m_timeZoneHasBeenSet = false;
262 bool m_configHasBeenSet = false;
263 bool m_parentHoursOfOperationsHasBeenSet = false;
264 bool m_tagsHasBeenSet = false;
265 bool m_lastModifiedTimeHasBeenSet = false;
266 bool m_lastModifiedRegionHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace Connect
271} // namespace Aws
HoursOfOperation & AddConfig(ConfigT &&value)
void SetHoursOfOperationArn(HoursOfOperationArnT &&value)
void SetParentHoursOfOperations(ParentHoursOfOperationsT &&value)
const Aws::String & GetHoursOfOperationId() const
HoursOfOperation & WithParentHoursOfOperations(ParentHoursOfOperationsT &&value)
HoursOfOperation & WithName(NameT &&value)
HoursOfOperation & WithTimeZone(TimeZoneT &&value)
AWS_CONNECT_API HoursOfOperation(Aws::Utils::Json::JsonView jsonValue)
HoursOfOperation & WithHoursOfOperationArn(HoursOfOperationArnT &&value)
const Aws::String & GetDescription() const
const Aws::Vector< HoursOfOperationsIdentifier > & GetParentHoursOfOperations() const
HoursOfOperation & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CONNECT_API HoursOfOperation()=default
HoursOfOperation & AddParentHoursOfOperations(ParentHoursOfOperationsT &&value)
const Aws::Vector< HoursOfOperationConfig > & GetConfig() const
HoursOfOperation & WithTags(TagsT &&value)
HoursOfOperation & WithLastModifiedTime(LastModifiedTimeT &&value)
HoursOfOperation & WithLastModifiedRegion(LastModifiedRegionT &&value)
HoursOfOperation & WithConfig(ConfigT &&value)
const Aws::String & GetLastModifiedRegion() const
void SetDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_CONNECT_API HoursOfOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetTimeZone() const
void SetLastModifiedRegion(LastModifiedRegionT &&value)
const Aws::String & GetName() const
const Aws::String & GetHoursOfOperationArn() const
void SetHoursOfOperationId(HoursOfOperationIdT &&value)
HoursOfOperation & WithHoursOfOperationId(HoursOfOperationIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
HoursOfOperation & WithDescription(DescriptionT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue