AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
UpdateHoursOfOperationRequest.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/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API UpdateHoursOfOperationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateHoursOfOperation"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetHoursOfOperationId() const { return m_hoursOfOperationId; }
58 inline bool HoursOfOperationIdHasBeenSet() const { return m_hoursOfOperationIdHasBeenSet; }
59 template <typename HoursOfOperationIdT = Aws::String>
60 void SetHoursOfOperationId(HoursOfOperationIdT&& value) {
61 m_hoursOfOperationIdHasBeenSet = true;
62 m_hoursOfOperationId = std::forward<HoursOfOperationIdT>(value);
63 }
64 template <typename HoursOfOperationIdT = Aws::String>
66 SetHoursOfOperationId(std::forward<HoursOfOperationIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
112 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
113 template <typename TimeZoneT = Aws::String>
114 void SetTimeZone(TimeZoneT&& value) {
115 m_timeZoneHasBeenSet = true;
116 m_timeZone = std::forward<TimeZoneT>(value);
117 }
118 template <typename TimeZoneT = Aws::String>
120 SetTimeZone(std::forward<TimeZoneT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<HoursOfOperationConfig>& GetConfig() const { return m_config; }
130 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
131 template <typename ConfigT = Aws::Vector<HoursOfOperationConfig>>
132 void SetConfig(ConfigT&& value) {
133 m_configHasBeenSet = true;
134 m_config = std::forward<ConfigT>(value);
135 }
136 template <typename ConfigT = Aws::Vector<HoursOfOperationConfig>>
138 SetConfig(std::forward<ConfigT>(value));
139 return *this;
140 }
141 template <typename ConfigT = HoursOfOperationConfig>
143 m_configHasBeenSet = true;
144 m_config.emplace_back(std::forward<ConfigT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_instanceId;
150
151 Aws::String m_hoursOfOperationId;
152
153 Aws::String m_name;
154
155 Aws::String m_description;
156
157 Aws::String m_timeZone;
158
160 bool m_instanceIdHasBeenSet = false;
161 bool m_hoursOfOperationIdHasBeenSet = false;
162 bool m_nameHasBeenSet = false;
163 bool m_descriptionHasBeenSet = false;
164 bool m_timeZoneHasBeenSet = false;
165 bool m_configHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace Connect
170} // namespace Aws
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateHoursOfOperationRequest & WithInstanceId(InstanceIdT &&value)
UpdateHoursOfOperationRequest & WithConfig(ConfigT &&value)
UpdateHoursOfOperationRequest & AddConfig(ConfigT &&value)
UpdateHoursOfOperationRequest & WithTimeZone(TimeZoneT &&value)
const Aws::Vector< HoursOfOperationConfig > & GetConfig() const
UpdateHoursOfOperationRequest & WithHoursOfOperationId(HoursOfOperationIdT &&value)
AWS_CONNECT_API UpdateHoursOfOperationRequest()=default
UpdateHoursOfOperationRequest & WithName(NameT &&value)
UpdateHoursOfOperationRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector