AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateHoursOfOperationRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/connect/model/HoursOfOperationConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace 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_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
44 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
45 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
47 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
48 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
49 inline CreateHoursOfOperationRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
50 inline CreateHoursOfOperationRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
51 inline CreateHoursOfOperationRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline CreateHoursOfOperationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline CreateHoursOfOperationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline CreateHoursOfOperationRequest& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline CreateHoursOfOperationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline CreateHoursOfOperationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline CreateHoursOfOperationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
86 inline const Aws::String& GetTimeZone() const{ return m_timeZone; }
87 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
88 inline void SetTimeZone(const Aws::String& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; }
89 inline void SetTimeZone(Aws::String&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); }
90 inline void SetTimeZone(const char* value) { m_timeZoneHasBeenSet = true; m_timeZone.assign(value); }
91 inline CreateHoursOfOperationRequest& WithTimeZone(const Aws::String& value) { SetTimeZone(value); return *this;}
92 inline CreateHoursOfOperationRequest& WithTimeZone(Aws::String&& value) { SetTimeZone(std::move(value)); return *this;}
93 inline CreateHoursOfOperationRequest& WithTimeZone(const char* value) { SetTimeZone(value); return *this;}
95
97
101 inline const Aws::Vector<HoursOfOperationConfig>& GetConfig() const{ return m_config; }
102 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
103 inline void SetConfig(const Aws::Vector<HoursOfOperationConfig>& value) { m_configHasBeenSet = true; m_config = value; }
104 inline void SetConfig(Aws::Vector<HoursOfOperationConfig>&& value) { m_configHasBeenSet = true; m_config = std::move(value); }
107 inline CreateHoursOfOperationRequest& AddConfig(const HoursOfOperationConfig& value) { m_configHasBeenSet = true; m_config.push_back(value); return *this; }
108 inline CreateHoursOfOperationRequest& AddConfig(HoursOfOperationConfig&& value) { m_configHasBeenSet = true; m_config.push_back(std::move(value)); return *this; }
110
112
116 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
121 inline CreateHoursOfOperationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateHoursOfOperationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
123 inline CreateHoursOfOperationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
124 inline CreateHoursOfOperationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
125 inline CreateHoursOfOperationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
126 inline CreateHoursOfOperationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline CreateHoursOfOperationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline CreateHoursOfOperationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
130 private:
131
132 Aws::String m_instanceId;
133 bool m_instanceIdHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::String m_description;
139 bool m_descriptionHasBeenSet = false;
140
141 Aws::String m_timeZone;
142 bool m_timeZoneHasBeenSet = false;
143
145 bool m_configHasBeenSet = false;
146
148 bool m_tagsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace Connect
153} // namespace Aws
CreateHoursOfOperationRequest & WithName(Aws::String &&value)
CreateHoursOfOperationRequest & WithDescription(const Aws::String &value)
CreateHoursOfOperationRequest & WithInstanceId(Aws::String &&value)
CreateHoursOfOperationRequest & WithName(const Aws::String &value)
CreateHoursOfOperationRequest & AddConfig(HoursOfOperationConfig &&value)
CreateHoursOfOperationRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateHoursOfOperationRequest & WithInstanceId(const Aws::String &value)
const Aws::Vector< HoursOfOperationConfig > & GetConfig() const
CreateHoursOfOperationRequest & WithDescription(const char *value)
CreateHoursOfOperationRequest & WithConfig(const Aws::Vector< HoursOfOperationConfig > &value)
CreateHoursOfOperationRequest & WithDescription(Aws::String &&value)
CreateHoursOfOperationRequest & WithInstanceId(const char *value)
CreateHoursOfOperationRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateHoursOfOperationRequest & AddTags(const char *key, Aws::String &&value)
CreateHoursOfOperationRequest & AddTags(Aws::String &&key, const char *value)
CreateHoursOfOperationRequest & AddTags(const char *key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateHoursOfOperationRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateHoursOfOperationRequest & WithConfig(Aws::Vector< HoursOfOperationConfig > &&value)
void SetConfig(Aws::Vector< HoursOfOperationConfig > &&value)
CreateHoursOfOperationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateHoursOfOperationRequest & WithTimeZone(const char *value)
CreateHoursOfOperationRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateHoursOfOperationRequest & WithName(const char *value)
void SetConfig(const Aws::Vector< HoursOfOperationConfig > &value)
CreateHoursOfOperationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateHoursOfOperationRequest & WithTimeZone(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateHoursOfOperationRequest & AddConfig(const HoursOfOperationConfig &value)
CreateHoursOfOperationRequest & WithTimeZone(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &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