AWS SDK for C++  1.9.160
AWS SDK for C++
CreateHoursOfOperationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Connect
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateHoursOfOperation"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
42  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
43 
48  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
49 
54  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
55 
60  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
61 
66  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
67 
72  inline CreateHoursOfOperationRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
73 
78  inline CreateHoursOfOperationRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
79 
84  inline CreateHoursOfOperationRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
85 
86 
90  inline const Aws::String& GetName() const{ return m_name; }
91 
95  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 
100  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
101 
105  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
106 
110  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
111 
115  inline CreateHoursOfOperationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
116 
120  inline CreateHoursOfOperationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
121 
125  inline CreateHoursOfOperationRequest& WithName(const char* value) { SetName(value); return *this;}
126 
127 
131  inline const Aws::String& GetDescription() const{ return m_description; }
132 
136  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
137 
141  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
142 
146  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
147 
151  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
152 
156  inline CreateHoursOfOperationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
157 
161  inline CreateHoursOfOperationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
162 
166  inline CreateHoursOfOperationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
167 
168 
172  inline const Aws::String& GetTimeZone() const{ return m_timeZone; }
173 
177  inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
178 
182  inline void SetTimeZone(const Aws::String& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; }
183 
187  inline void SetTimeZone(Aws::String&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); }
188 
192  inline void SetTimeZone(const char* value) { m_timeZoneHasBeenSet = true; m_timeZone.assign(value); }
193 
197  inline CreateHoursOfOperationRequest& WithTimeZone(const Aws::String& value) { SetTimeZone(value); return *this;}
198 
202  inline CreateHoursOfOperationRequest& WithTimeZone(Aws::String&& value) { SetTimeZone(std::move(value)); return *this;}
203 
207  inline CreateHoursOfOperationRequest& WithTimeZone(const char* value) { SetTimeZone(value); return *this;}
208 
209 
214  inline const Aws::Vector<HoursOfOperationConfig>& GetConfig() const{ return m_config; }
215 
220  inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
221 
226  inline void SetConfig(const Aws::Vector<HoursOfOperationConfig>& value) { m_configHasBeenSet = true; m_config = value; }
227 
232  inline void SetConfig(Aws::Vector<HoursOfOperationConfig>&& value) { m_configHasBeenSet = true; m_config = std::move(value); }
233 
238  inline CreateHoursOfOperationRequest& WithConfig(const Aws::Vector<HoursOfOperationConfig>& value) { SetConfig(value); return *this;}
239 
244  inline CreateHoursOfOperationRequest& WithConfig(Aws::Vector<HoursOfOperationConfig>&& value) { SetConfig(std::move(value)); return *this;}
245 
250  inline CreateHoursOfOperationRequest& AddConfig(const HoursOfOperationConfig& value) { m_configHasBeenSet = true; m_config.push_back(value); return *this; }
251 
256  inline CreateHoursOfOperationRequest& AddConfig(HoursOfOperationConfig&& value) { m_configHasBeenSet = true; m_config.push_back(std::move(value)); return *this; }
257 
258 
262  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
263 
267  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
268 
272  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
273 
277  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
278 
282  inline CreateHoursOfOperationRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
283 
287  inline CreateHoursOfOperationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
288 
292  inline CreateHoursOfOperationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
293 
297  inline CreateHoursOfOperationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
298 
302  inline CreateHoursOfOperationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
303 
307  inline CreateHoursOfOperationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
308 
312  inline CreateHoursOfOperationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
313 
317  inline CreateHoursOfOperationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
318 
322  inline CreateHoursOfOperationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
323 
324  private:
325 
326  Aws::String m_instanceId;
327  bool m_instanceIdHasBeenSet;
328 
329  Aws::String m_name;
330  bool m_nameHasBeenSet;
331 
332  Aws::String m_description;
333  bool m_descriptionHasBeenSet;
334 
335  Aws::String m_timeZone;
336  bool m_timeZoneHasBeenSet;
337 
339  bool m_configHasBeenSet;
340 
342  bool m_tagsHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace Connect
347 } // namespace Aws
Aws::Connect::Model::CreateHoursOfOperationRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateHoursOfOperationRequest.h:105
Aws::Connect::Model::CreateHoursOfOperationRequest::AddTags
CreateHoursOfOperationRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateHoursOfOperationRequest.h:297
Aws::Connect::Model::CreateHoursOfOperationRequest::ConfigHasBeenSet
bool ConfigHasBeenSet() const
Definition: CreateHoursOfOperationRequest.h:220
Aws::Connect::Model::CreateHoursOfOperationRequest::WithName
CreateHoursOfOperationRequest & WithName(const Aws::String &value)
Definition: CreateHoursOfOperationRequest.h:115
Aws::Connect::Model::CreateHoursOfOperationRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: CreateHoursOfOperationRequest.h:66
Aws::Connect::Model::CreateHoursOfOperationRequest
Definition: CreateHoursOfOperationRequest.h:25
Aws::Connect::Model::CreateHoursOfOperationRequest::SetTimeZone
void SetTimeZone(Aws::String &&value)
Definition: CreateHoursOfOperationRequest.h:187
Aws::Connect::Model::CreateHoursOfOperationRequest::WithTags
CreateHoursOfOperationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateHoursOfOperationRequest.h:282
Aws::Connect::Model::CreateHoursOfOperationRequest::TimeZoneHasBeenSet
bool TimeZoneHasBeenSet() const
Definition: CreateHoursOfOperationRequest.h:177
Aws::Connect::Model::CreateHoursOfOperationRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: CreateHoursOfOperationRequest.h:48
Aws::Connect::Model::CreateHoursOfOperationRequest::WithName
CreateHoursOfOperationRequest & WithName(const char *value)
Definition: CreateHoursOfOperationRequest.h:125
Aws::Connect::Model::CreateHoursOfOperationRequest::WithConfig
CreateHoursOfOperationRequest & WithConfig(const Aws::Vector< HoursOfOperationConfig > &value)
Definition: CreateHoursOfOperationRequest.h:238
Aws::Connect::Model::CreateHoursOfOperationRequest::WithTimeZone
CreateHoursOfOperationRequest & WithTimeZone(const char *value)
Definition: CreateHoursOfOperationRequest.h:207
Aws::Connect::Model::CreateHoursOfOperationRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateHoursOfOperationRequest.h:141
Aws::Connect::Model::CreateHoursOfOperationRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateHoursOfOperationRequest.h:277
Aws::Connect::Model::CreateHoursOfOperationRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateHoursOfOperationRequest.h:272
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Connect::Model::CreateHoursOfOperationRequest::SetConfig
void SetConfig(const Aws::Vector< HoursOfOperationConfig > &value)
Definition: CreateHoursOfOperationRequest.h:226
Aws::Connect::Model::CreateHoursOfOperationRequest::AddTags
CreateHoursOfOperationRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateHoursOfOperationRequest.h:302
Aws::Connect::Model::CreateHoursOfOperationRequest::WithInstanceId
CreateHoursOfOperationRequest & WithInstanceId(Aws::String &&value)
Definition: CreateHoursOfOperationRequest.h:78
Aws::Connect::Model::CreateHoursOfOperationRequest::SetConfig
void SetConfig(Aws::Vector< HoursOfOperationConfig > &&value)
Definition: CreateHoursOfOperationRequest.h:232
Aws::Connect::Model::CreateHoursOfOperationRequest::WithInstanceId
CreateHoursOfOperationRequest & WithInstanceId(const Aws::String &value)
Definition: CreateHoursOfOperationRequest.h:72
AWSVector.h
Aws::Connect::Model::CreateHoursOfOperationRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateHoursOfOperationRequest.h:100
Aws::Connect::Model::CreateHoursOfOperationRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: CreateHoursOfOperationRequest.h:54
Aws::Connect::Model::CreateHoursOfOperationRequest::GetName
const Aws::String & GetName() const
Definition: CreateHoursOfOperationRequest.h:90
Aws::Connect::Model::CreateHoursOfOperationRequest::WithTimeZone
CreateHoursOfOperationRequest & WithTimeZone(Aws::String &&value)
Definition: CreateHoursOfOperationRequest.h:202
Aws::Connect::Model::CreateHoursOfOperationRequest::AddTags
CreateHoursOfOperationRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateHoursOfOperationRequest.h:317
Aws::Connect::Model::CreateHoursOfOperationRequest::GetTimeZone
const Aws::String & GetTimeZone() const
Definition: CreateHoursOfOperationRequest.h:172
Aws::Connect::Model::CreateHoursOfOperationRequest::AddConfig
CreateHoursOfOperationRequest & AddConfig(HoursOfOperationConfig &&value)
Definition: CreateHoursOfOperationRequest.h:256
Aws::Connect::Model::CreateHoursOfOperationRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: CreateHoursOfOperationRequest.h:60
Aws::Connect::Model::CreateHoursOfOperationRequest::WithConfig
CreateHoursOfOperationRequest & WithConfig(Aws::Vector< HoursOfOperationConfig > &&value)
Definition: CreateHoursOfOperationRequest.h:244
Aws::Connect::Model::CreateHoursOfOperationRequest::WithTags
CreateHoursOfOperationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateHoursOfOperationRequest.h:287
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::CreateHoursOfOperationRequest::CreateHoursOfOperationRequest
CreateHoursOfOperationRequest()
Aws::Connect::Model::CreateHoursOfOperationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateHoursOfOperationRequest.h:33
Aws::Connect::Model::CreateHoursOfOperationRequest::WithInstanceId
CreateHoursOfOperationRequest & WithInstanceId(const char *value)
Definition: CreateHoursOfOperationRequest.h:84
Aws::Connect::Model::HoursOfOperationConfig
Definition: HoursOfOperationConfig.h:34
Aws::Connect::Model::CreateHoursOfOperationRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateHoursOfOperationRequest.h:262
Aws::Connect::Model::CreateHoursOfOperationRequest::SetTimeZone
void SetTimeZone(const char *value)
Definition: CreateHoursOfOperationRequest.h:192
AWSString.h
Aws::Connect::Model::CreateHoursOfOperationRequest::AddTags
CreateHoursOfOperationRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateHoursOfOperationRequest.h:307
Aws::Connect::Model::CreateHoursOfOperationRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateHoursOfOperationRequest.h:146
Aws::Connect::Model::CreateHoursOfOperationRequest::WithDescription
CreateHoursOfOperationRequest & WithDescription(Aws::String &&value)
Definition: CreateHoursOfOperationRequest.h:161
Aws::Connect::Model::CreateHoursOfOperationRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateHoursOfOperationRequest.h:151
Aws::Connect::Model::CreateHoursOfOperationRequest::WithTimeZone
CreateHoursOfOperationRequest & WithTimeZone(const Aws::String &value)
Definition: CreateHoursOfOperationRequest.h:197
Aws::Connect::Model::CreateHoursOfOperationRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateHoursOfOperationRequest.h:136
Aws::Connect::Model::CreateHoursOfOperationRequest::WithDescription
CreateHoursOfOperationRequest & WithDescription(const Aws::String &value)
Definition: CreateHoursOfOperationRequest.h:156
Aws::Connect::Model::CreateHoursOfOperationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::CreateHoursOfOperationRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateHoursOfOperationRequest.h:95
HoursOfOperationConfig.h
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::CreateHoursOfOperationRequest::GetConfig
const Aws::Vector< HoursOfOperationConfig > & GetConfig() const
Definition: CreateHoursOfOperationRequest.h:214
Aws::Connect::Model::CreateHoursOfOperationRequest::WithDescription
CreateHoursOfOperationRequest & WithDescription(const char *value)
Definition: CreateHoursOfOperationRequest.h:166
Aws::Connect::Model::CreateHoursOfOperationRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateHoursOfOperationRequest.h:131
Aws::Connect::Model::CreateHoursOfOperationRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: CreateHoursOfOperationRequest.h:42
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::CreateHoursOfOperationRequest::AddTags
CreateHoursOfOperationRequest & AddTags(const char *key, const char *value)
Definition: CreateHoursOfOperationRequest.h:322
Aws::Connect::Model::CreateHoursOfOperationRequest::SetTimeZone
void SetTimeZone(const Aws::String &value)
Definition: CreateHoursOfOperationRequest.h:182
Aws::Connect::Model::CreateHoursOfOperationRequest::WithName
CreateHoursOfOperationRequest & WithName(Aws::String &&value)
Definition: CreateHoursOfOperationRequest.h:120
Connect_EXPORTS.h
AWSMap.h
ConnectRequest.h
Aws::Connect::Model::CreateHoursOfOperationRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateHoursOfOperationRequest.h:267
Aws::Connect::Model::CreateHoursOfOperationRequest::AddConfig
CreateHoursOfOperationRequest & AddConfig(const HoursOfOperationConfig &value)
Definition: CreateHoursOfOperationRequest.h:250
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Connect::Model::CreateHoursOfOperationRequest::SetName
void SetName(const char *value)
Definition: CreateHoursOfOperationRequest.h:110
Aws::Connect::Model::CreateHoursOfOperationRequest::AddTags
CreateHoursOfOperationRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateHoursOfOperationRequest.h:292
Aws::Connect::Model::CreateHoursOfOperationRequest::AddTags
CreateHoursOfOperationRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateHoursOfOperationRequest.h:312