AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
GetTimeOffRequest.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 GetTimeOffRequest() = 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 "GetTimeOff"; }
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 GetTimeOffRequest& 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 GetTimeOffRequest& 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 GetTimeOffRequest& WithTimeOffId(TimeOffIdT&& value) {
89 SetTimeOffId(std::forward<TimeOffIdT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_instanceId;
95
96 Aws::String m_userId;
97
98 Aws::String m_timeOffId;
99 bool m_instanceIdHasBeenSet = false;
100 bool m_userIdHasBeenSet = false;
101 bool m_timeOffIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace ConnectScheduling
106} // namespace Aws
AWS_CONNECTSCHEDULING_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetTimeOffRequest & WithTimeOffId(TimeOffIdT &&value)
GetTimeOffRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECTSCHEDULING_API GetTimeOffRequest()=default
GetTimeOffRequest & WithUserId(UserIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String