AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateHoursOfOperationRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/HoursOfOperationConfig.h>
10#include <aws/connect/model/ParentHoursOfOperationConfig.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 Connect {
19namespace Model {
20
24 public:
25 AWS_CONNECT_API CreateHoursOfOperationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateHoursOfOperation"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
36
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
96 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
97 template <typename TimeZoneT = Aws::String>
98 void SetTimeZone(TimeZoneT&& value) {
99 m_timeZoneHasBeenSet = true;
100 m_timeZone = std::forward<TimeZoneT>(value);
101 }
102 template <typename TimeZoneT = Aws::String>
104 SetTimeZone(std::forward<TimeZoneT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Vector<HoursOfOperationConfig>& GetConfig() const { return m_config; }
115 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
116 template <typename ConfigT = Aws::Vector<HoursOfOperationConfig>>
117 void SetConfig(ConfigT&& value) {
118 m_configHasBeenSet = true;
119 m_config = std::forward<ConfigT>(value);
120 }
121 template <typename ConfigT = Aws::Vector<HoursOfOperationConfig>>
123 SetConfig(std::forward<ConfigT>(value));
124 return *this;
125 }
126 template <typename ConfigT = HoursOfOperationConfig>
128 m_configHasBeenSet = true;
129 m_config.emplace_back(std::forward<ConfigT>(value));
130 return *this;
131 }
133
135
143 return m_parentHoursOfOperationConfigs;
144 }
145 inline bool ParentHoursOfOperationConfigsHasBeenSet() const { return m_parentHoursOfOperationConfigsHasBeenSet; }
146 template <typename ParentHoursOfOperationConfigsT = Aws::Vector<ParentHoursOfOperationConfig>>
147 void SetParentHoursOfOperationConfigs(ParentHoursOfOperationConfigsT&& value) {
148 m_parentHoursOfOperationConfigsHasBeenSet = true;
149 m_parentHoursOfOperationConfigs = std::forward<ParentHoursOfOperationConfigsT>(value);
150 }
151 template <typename ParentHoursOfOperationConfigsT = Aws::Vector<ParentHoursOfOperationConfig>>
152 CreateHoursOfOperationRequest& WithParentHoursOfOperationConfigs(ParentHoursOfOperationConfigsT&& value) {
153 SetParentHoursOfOperationConfigs(std::forward<ParentHoursOfOperationConfigsT>(value));
154 return *this;
155 }
156 template <typename ParentHoursOfOperationConfigsT = ParentHoursOfOperationConfig>
157 CreateHoursOfOperationRequest& AddParentHoursOfOperationConfigs(ParentHoursOfOperationConfigsT&& value) {
158 m_parentHoursOfOperationConfigsHasBeenSet = true;
159 m_parentHoursOfOperationConfigs.emplace_back(std::forward<ParentHoursOfOperationConfigsT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
170 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
171 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
172 void SetTags(TagsT&& value) {
173 m_tagsHasBeenSet = true;
174 m_tags = std::forward<TagsT>(value);
175 }
176 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
178 SetTags(std::forward<TagsT>(value));
179 return *this;
180 }
181 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
182 CreateHoursOfOperationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
183 m_tagsHasBeenSet = true;
184 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_instanceId;
190
191 Aws::String m_name;
192
193 Aws::String m_description;
194
195 Aws::String m_timeZone;
196
198
199 Aws::Vector<ParentHoursOfOperationConfig> m_parentHoursOfOperationConfigs;
200
202 bool m_instanceIdHasBeenSet = false;
203 bool m_nameHasBeenSet = false;
204 bool m_descriptionHasBeenSet = false;
205 bool m_timeZoneHasBeenSet = false;
206 bool m_configHasBeenSet = false;
207 bool m_parentHoursOfOperationConfigsHasBeenSet = false;
208 bool m_tagsHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace Connect
213} // namespace Aws
CreateHoursOfOperationRequest & AddConfig(ConfigT &&value)
void SetParentHoursOfOperationConfigs(ParentHoursOfOperationConfigsT &&value)
CreateHoursOfOperationRequest & AddParentHoursOfOperationConfigs(ParentHoursOfOperationConfigsT &&value)
const Aws::Vector< HoursOfOperationConfig > & GetConfig() const
CreateHoursOfOperationRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< ParentHoursOfOperationConfig > & GetParentHoursOfOperationConfigs() const
CreateHoursOfOperationRequest & WithParentHoursOfOperationConfigs(ParentHoursOfOperationConfigsT &&value)
CreateHoursOfOperationRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateHoursOfOperationRequest & WithConfig(ConfigT &&value)
CreateHoursOfOperationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateHoursOfOperationRequest & WithTimeZone(TimeZoneT &&value)
CreateHoursOfOperationRequest & WithTags(TagsT &&value)
AWS_CONNECT_API CreateHoursOfOperationRequest()=default
CreateHoursOfOperationRequest & WithName(NameT &&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