AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
CreateTimeOffRequest.h
1
6#pragma once
7#include <aws/connectscheduling/ConnectSchedulingRequest.h>
8#include <aws/connectscheduling/ConnectScheduling_EXPORTS.h>
9#include <aws/connectscheduling/model/ApprovalType.h>
10#include <aws/connectscheduling/model/RuleFailureAction.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ConnectScheduling {
19namespace Model {
20
27 public:
28 AWS_CONNECTSCHEDULING_API CreateTimeOffRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateTimeOff"; }
35
36 AWS_CONNECTSCHEDULING_API Aws::String SerializePayload() const override;
37
39
45 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
46 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 template <typename InstanceIdT = Aws::String>
48 void SetInstanceId(InstanceIdT&& value) {
49 m_instanceIdHasBeenSet = true;
50 m_instanceId = std::forward<InstanceIdT>(value);
51 }
52 template <typename InstanceIdT = Aws::String>
53 CreateTimeOffRequest& WithInstanceId(InstanceIdT&& value) {
54 SetInstanceId(std::forward<InstanceIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetUserId() const { return m_userId; }
65 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
66 template <typename UserIdT = Aws::String>
67 void SetUserId(UserIdT&& value) {
68 m_userIdHasBeenSet = true;
69 m_userId = std::forward<UserIdT>(value);
70 }
71 template <typename UserIdT = Aws::String>
72 CreateTimeOffRequest& WithUserId(UserIdT&& value) {
73 SetUserId(std::forward<UserIdT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::String& GetShiftActivityId() const { return m_shiftActivityId; }
86 inline bool ShiftActivityIdHasBeenSet() const { return m_shiftActivityIdHasBeenSet; }
87 template <typename ShiftActivityIdT = Aws::String>
88 void SetShiftActivityId(ShiftActivityIdT&& value) {
89 m_shiftActivityIdHasBeenSet = true;
90 m_shiftActivityId = std::forward<ShiftActivityIdT>(value);
91 }
92 template <typename ShiftActivityIdT = Aws::String>
93 CreateTimeOffRequest& WithShiftActivityId(ShiftActivityIdT&& value) {
94 SetShiftActivityId(std::forward<ShiftActivityIdT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::Utils::DateTime& GetStartAt() const { return m_startAt; }
106 inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
107 template <typename StartAtT = Aws::Utils::DateTime>
108 void SetStartAt(StartAtT&& value) {
109 m_startAtHasBeenSet = true;
110 m_startAt = std::forward<StartAtT>(value);
111 }
112 template <typename StartAtT = Aws::Utils::DateTime>
114 SetStartAt(std::forward<StartAtT>(value));
115 return *this;
116 }
118
120
125 inline const Aws::Utils::DateTime& GetEndAt() const { return m_endAt; }
126 inline bool EndAtHasBeenSet() const { return m_endAtHasBeenSet; }
127 template <typename EndAtT = Aws::Utils::DateTime>
128 void SetEndAt(EndAtT&& value) {
129 m_endAtHasBeenSet = true;
130 m_endAt = std::forward<EndAtT>(value);
131 }
132 template <typename EndAtT = Aws::Utils::DateTime>
134 SetEndAt(std::forward<EndAtT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::String& GetDescription() const { return m_description; }
145 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
146 template <typename DescriptionT = Aws::String>
147 void SetDescription(DescriptionT&& value) {
148 m_descriptionHasBeenSet = true;
149 m_description = std::forward<DescriptionT>(value);
150 }
151 template <typename DescriptionT = Aws::String>
152 CreateTimeOffRequest& WithDescription(DescriptionT&& value) {
153 SetDescription(std::forward<DescriptionT>(value));
154 return *this;
155 }
157
159
165 inline ApprovalType GetApprovalType() const { return m_approvalType; }
166 inline bool ApprovalTypeHasBeenSet() const { return m_approvalTypeHasBeenSet; }
167 inline void SetApprovalType(ApprovalType value) {
168 m_approvalTypeHasBeenSet = true;
169 m_approvalType = value;
170 }
172 SetApprovalType(value);
173 return *this;
174 }
176
178
190 inline RuleFailureAction GetRuleFailureAction() const { return m_ruleFailureAction; }
191 inline bool RuleFailureActionHasBeenSet() const { return m_ruleFailureActionHasBeenSet; }
193 m_ruleFailureActionHasBeenSet = true;
194 m_ruleFailureAction = value;
195 }
198 return *this;
199 }
201
203
214 inline const Aws::String& GetClientToken() const { return m_clientToken; }
215 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
216 template <typename ClientTokenT = Aws::String>
217 void SetClientToken(ClientTokenT&& value) {
218 m_clientTokenHasBeenSet = true;
219 m_clientToken = std::forward<ClientTokenT>(value);
220 }
221 template <typename ClientTokenT = Aws::String>
222 CreateTimeOffRequest& WithClientToken(ClientTokenT&& value) {
223 SetClientToken(std::forward<ClientTokenT>(value));
224 return *this;
225 }
227 private:
228 Aws::String m_instanceId;
229
230 Aws::String m_userId;
231
232 Aws::String m_shiftActivityId;
233
234 Aws::Utils::DateTime m_startAt{};
235
236 Aws::Utils::DateTime m_endAt{};
237
238 Aws::String m_description;
239
240 ApprovalType m_approvalType{ApprovalType::NOT_SET};
241
243
245 bool m_instanceIdHasBeenSet = false;
246 bool m_userIdHasBeenSet = false;
247 bool m_shiftActivityIdHasBeenSet = false;
248 bool m_startAtHasBeenSet = false;
249 bool m_endAtHasBeenSet = false;
250 bool m_descriptionHasBeenSet = false;
251 bool m_approvalTypeHasBeenSet = false;
252 bool m_ruleFailureActionHasBeenSet = false;
253 bool m_clientTokenHasBeenSet = true;
254};
255
256} // namespace Model
257} // namespace ConnectScheduling
258} // namespace Aws
CreateTimeOffRequest & WithApprovalType(ApprovalType value)
CreateTimeOffRequest & WithShiftActivityId(ShiftActivityIdT &&value)
CreateTimeOffRequest & WithClientToken(ClientTokenT &&value)
AWS_CONNECTSCHEDULING_API CreateTimeOffRequest()=default
CreateTimeOffRequest & WithRuleFailureAction(RuleFailureAction value)
CreateTimeOffRequest & WithDescription(DescriptionT &&value)
CreateTimeOffRequest & WithUserId(UserIdT &&value)
CreateTimeOffRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECTSCHEDULING_API Aws::String SerializePayload() const override
CreateTimeOffRequest & WithEndAt(EndAtT &&value)
virtual const char * GetServiceRequestName() const override
CreateTimeOffRequest & WithStartAt(StartAtT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String