AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
ApproveTimeOffRequest.h
1
6#pragma once
7#include <aws/connectscheduling/ConnectSchedulingRequest.h>
8#include <aws/connectscheduling/ConnectScheduling_EXPORTS.h>
9#include <aws/connectscheduling/model/RuleFailureAction.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ConnectScheduling {
16namespace Model {
17
24 public:
25 AWS_CONNECTSCHEDULING_API ApproveTimeOffRequest() = 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 "ApproveTimeOff"; }
32
33 AWS_CONNECTSCHEDULING_API Aws::String SerializePayload() const override;
34
36
42 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 template <typename InstanceIdT = Aws::String>
45 void SetInstanceId(InstanceIdT&& value) {
46 m_instanceIdHasBeenSet = true;
47 m_instanceId = std::forward<InstanceIdT>(value);
48 }
49 template <typename InstanceIdT = Aws::String>
50 ApproveTimeOffRequest& WithInstanceId(InstanceIdT&& value) {
51 SetInstanceId(std::forward<InstanceIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetUserId() const { return m_userId; }
62 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
63 template <typename UserIdT = Aws::String>
64 void SetUserId(UserIdT&& value) {
65 m_userIdHasBeenSet = true;
66 m_userId = std::forward<UserIdT>(value);
67 }
68 template <typename UserIdT = Aws::String>
70 SetUserId(std::forward<UserIdT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetTimeOffId() const { return m_timeOffId; }
82 inline bool TimeOffIdHasBeenSet() const { return m_timeOffIdHasBeenSet; }
83 template <typename TimeOffIdT = Aws::String>
84 void SetTimeOffId(TimeOffIdT&& value) {
85 m_timeOffIdHasBeenSet = true;
86 m_timeOffId = std::forward<TimeOffIdT>(value);
87 }
88 template <typename TimeOffIdT = Aws::String>
89 ApproveTimeOffRequest& WithTimeOffId(TimeOffIdT&& value) {
90 SetTimeOffId(std::forward<TimeOffIdT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
108 ApproveTimeOffRequest& WithDescription(DescriptionT&& value) {
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
123 inline RuleFailureAction GetRuleFailureAction() const { return m_ruleFailureAction; }
124 inline bool RuleFailureActionHasBeenSet() const { return m_ruleFailureActionHasBeenSet; }
126 m_ruleFailureActionHasBeenSet = true;
127 m_ruleFailureAction = value;
128 }
131 return *this;
132 }
134 private:
135 Aws::String m_instanceId;
136
137 Aws::String m_userId;
138
139 Aws::String m_timeOffId;
140
141 Aws::String m_description;
142
144 bool m_instanceIdHasBeenSet = false;
145 bool m_userIdHasBeenSet = false;
146 bool m_timeOffIdHasBeenSet = false;
147 bool m_descriptionHasBeenSet = false;
148 bool m_ruleFailureActionHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace ConnectScheduling
153} // namespace Aws
ApproveTimeOffRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
ApproveTimeOffRequest & WithTimeOffId(TimeOffIdT &&value)
ApproveTimeOffRequest & WithUserId(UserIdT &&value)
AWS_CONNECTSCHEDULING_API ApproveTimeOffRequest()=default
AWS_CONNECTSCHEDULING_API Aws::String SerializePayload() const override
ApproveTimeOffRequest & WithRuleFailureAction(RuleFailureAction value)
ApproveTimeOffRequest & WithInstanceId(InstanceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String