AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/DeadlineRequest.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/SessionLifecycleTargetStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace deadline {
17namespace Model {
18
22 public:
23 AWS_DEADLINE_API UpdateSessionRequest() = 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 "UpdateSession"; }
30
31 AWS_DEADLINE_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetClientToken() const { return m_clientToken; }
41 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
42 template <typename ClientTokenT = Aws::String>
43 void SetClientToken(ClientTokenT&& value) {
44 m_clientTokenHasBeenSet = true;
45 m_clientToken = std::forward<ClientTokenT>(value);
46 }
47 template <typename ClientTokenT = Aws::String>
48 UpdateSessionRequest& WithClientToken(ClientTokenT&& value) {
49 SetClientToken(std::forward<ClientTokenT>(value));
50 return *this;
51 }
53
55
58 inline SessionLifecycleTargetStatus GetTargetLifecycleStatus() const { return m_targetLifecycleStatus; }
59 inline bool TargetLifecycleStatusHasBeenSet() const { return m_targetLifecycleStatusHasBeenSet; }
61 m_targetLifecycleStatusHasBeenSet = true;
62 m_targetLifecycleStatus = value;
63 }
66 return *this;
67 }
69
71
74 inline const Aws::String& GetFarmId() const { return m_farmId; }
75 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
76 template <typename FarmIdT = Aws::String>
77 void SetFarmId(FarmIdT&& value) {
78 m_farmIdHasBeenSet = true;
79 m_farmId = std::forward<FarmIdT>(value);
80 }
81 template <typename FarmIdT = Aws::String>
82 UpdateSessionRequest& WithFarmId(FarmIdT&& value) {
83 SetFarmId(std::forward<FarmIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetQueueId() const { return m_queueId; }
93 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
94 template <typename QueueIdT = Aws::String>
95 void SetQueueId(QueueIdT&& value) {
96 m_queueIdHasBeenSet = true;
97 m_queueId = std::forward<QueueIdT>(value);
98 }
99 template <typename QueueIdT = Aws::String>
101 SetQueueId(std::forward<QueueIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetJobId() const { return m_jobId; }
111 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
112 template <typename JobIdT = Aws::String>
113 void SetJobId(JobIdT&& value) {
114 m_jobIdHasBeenSet = true;
115 m_jobId = std::forward<JobIdT>(value);
116 }
117 template <typename JobIdT = Aws::String>
119 SetJobId(std::forward<JobIdT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetSessionId() const { return m_sessionId; }
129 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
130 template <typename SessionIdT = Aws::String>
131 void SetSessionId(SessionIdT&& value) {
132 m_sessionIdHasBeenSet = true;
133 m_sessionId = std::forward<SessionIdT>(value);
134 }
135 template <typename SessionIdT = Aws::String>
136 UpdateSessionRequest& WithSessionId(SessionIdT&& value) {
137 SetSessionId(std::forward<SessionIdT>(value));
138 return *this;
139 }
141 private:
143
145
146 Aws::String m_farmId;
147
148 Aws::String m_queueId;
149
150 Aws::String m_jobId;
151
152 Aws::String m_sessionId;
153 bool m_clientTokenHasBeenSet = true;
154 bool m_targetLifecycleStatusHasBeenSet = false;
155 bool m_farmIdHasBeenSet = false;
156 bool m_queueIdHasBeenSet = false;
157 bool m_jobIdHasBeenSet = false;
158 bool m_sessionIdHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace deadline
163} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_DEADLINE_API Aws::String SerializePayload() const override
UpdateSessionRequest & WithJobId(JobIdT &&value)
void SetTargetLifecycleStatus(SessionLifecycleTargetStatus value)
SessionLifecycleTargetStatus GetTargetLifecycleStatus() const
virtual const char * GetServiceRequestName() const override
AWS_DEADLINE_API UpdateSessionRequest()=default
UpdateSessionRequest & WithQueueId(QueueIdT &&value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateSessionRequest & WithFarmId(FarmIdT &&value)
UpdateSessionRequest & WithClientToken(ClientTokenT &&value)
UpdateSessionRequest & WithSessionId(SessionIdT &&value)
UpdateSessionRequest & WithTargetLifecycleStatus(SessionLifecycleTargetStatus value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String