AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
CancelTimeOffRequest.h
1
6#pragma once
7#include <aws/connectscheduling/ConnectSchedulingRequest.h>
8#include <aws/connectscheduling/ConnectScheduling_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ConnectScheduling {
15namespace Model {
16
23 public:
24 AWS_CONNECTSCHEDULING_API CancelTimeOffRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CancelTimeOff"; }
31
32 AWS_CONNECTSCHEDULING_API Aws::String SerializePayload() const override;
33
35
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
49 CancelTimeOffRequest& WithInstanceId(InstanceIdT&& value) {
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetUserId() const { return m_userId; }
61 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
62 template <typename UserIdT = Aws::String>
63 void SetUserId(UserIdT&& value) {
64 m_userIdHasBeenSet = true;
65 m_userId = std::forward<UserIdT>(value);
66 }
67 template <typename UserIdT = Aws::String>
68 CancelTimeOffRequest& WithUserId(UserIdT&& value) {
69 SetUserId(std::forward<UserIdT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetTimeOffId() const { return m_timeOffId; }
81 inline bool TimeOffIdHasBeenSet() const { return m_timeOffIdHasBeenSet; }
82 template <typename TimeOffIdT = Aws::String>
83 void SetTimeOffId(TimeOffIdT&& value) {
84 m_timeOffIdHasBeenSet = true;
85 m_timeOffId = std::forward<TimeOffIdT>(value);
86 }
87 template <typename TimeOffIdT = Aws::String>
88 CancelTimeOffRequest& WithTimeOffId(TimeOffIdT&& value) {
89 SetTimeOffId(std::forward<TimeOffIdT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
107 CancelTimeOffRequest& WithDescription(DescriptionT&& value) {
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_instanceId;
114
115 Aws::String m_userId;
116
117 Aws::String m_timeOffId;
118
119 Aws::String m_description;
120 bool m_instanceIdHasBeenSet = false;
121 bool m_userIdHasBeenSet = false;
122 bool m_timeOffIdHasBeenSet = false;
123 bool m_descriptionHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace ConnectScheduling
128} // namespace Aws
AWS_CONNECTSCHEDULING_API Aws::String SerializePayload() const override
CancelTimeOffRequest & WithUserId(UserIdT &&value)
virtual const char * GetServiceRequestName() const override
CancelTimeOffRequest & WithTimeOffId(TimeOffIdT &&value)
AWS_CONNECTSCHEDULING_API CancelTimeOffRequest()=default
CancelTimeOffRequest & WithDescription(DescriptionT &&value)
CancelTimeOffRequest & WithInstanceId(InstanceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String