AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateSessionRequest.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/model/SessionLifecycleTargetStatus.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace deadline
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DEADLINE_API UpdateSessionRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateSession"; }
33
34 AWS_DEADLINE_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline UpdateSessionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline UpdateSessionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline UpdateSessionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
58 inline const Aws::String& GetFarmId() const{ return m_farmId; }
59 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
60 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
61 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
62 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
63 inline UpdateSessionRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
64 inline UpdateSessionRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
65 inline UpdateSessionRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
67
69
72 inline const Aws::String& GetQueueId() const{ return m_queueId; }
73 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
74 inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; }
75 inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); }
76 inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); }
77 inline UpdateSessionRequest& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;}
78 inline UpdateSessionRequest& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;}
79 inline UpdateSessionRequest& WithQueueId(const char* value) { SetQueueId(value); return *this;}
81
83
86 inline const Aws::String& GetJobId() const{ return m_jobId; }
87 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
88 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
89 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
90 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
91 inline UpdateSessionRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
92 inline UpdateSessionRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
93 inline UpdateSessionRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
95
97
100 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
101 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
102 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
103 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
104 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
105 inline UpdateSessionRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
106 inline UpdateSessionRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
107 inline UpdateSessionRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
109
111
114 inline const SessionLifecycleTargetStatus& GetTargetLifecycleStatus() const{ return m_targetLifecycleStatus; }
115 inline bool TargetLifecycleStatusHasBeenSet() const { return m_targetLifecycleStatusHasBeenSet; }
116 inline void SetTargetLifecycleStatus(const SessionLifecycleTargetStatus& value) { m_targetLifecycleStatusHasBeenSet = true; m_targetLifecycleStatus = value; }
117 inline void SetTargetLifecycleStatus(SessionLifecycleTargetStatus&& value) { m_targetLifecycleStatusHasBeenSet = true; m_targetLifecycleStatus = std::move(value); }
121 private:
122
123 Aws::String m_clientToken;
124 bool m_clientTokenHasBeenSet = false;
125
126 Aws::String m_farmId;
127 bool m_farmIdHasBeenSet = false;
128
129 Aws::String m_queueId;
130 bool m_queueIdHasBeenSet = false;
131
132 Aws::String m_jobId;
133 bool m_jobIdHasBeenSet = false;
134
135 Aws::String m_sessionId;
136 bool m_sessionIdHasBeenSet = false;
137
138 SessionLifecycleTargetStatus m_targetLifecycleStatus;
139 bool m_targetLifecycleStatusHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace deadline
144} // namespace Aws
AWS_DEADLINE_API Aws::String SerializePayload() const override
UpdateSessionRequest & WithClientToken(Aws::String &&value)
UpdateSessionRequest & WithTargetLifecycleStatus(const SessionLifecycleTargetStatus &value)
UpdateSessionRequest & WithFarmId(const Aws::String &value)
UpdateSessionRequest & WithSessionId(const Aws::String &value)
UpdateSessionRequest & WithTargetLifecycleStatus(SessionLifecycleTargetStatus &&value)
UpdateSessionRequest & WithQueueId(Aws::String &&value)
UpdateSessionRequest & WithQueueId(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateSessionRequest & WithClientToken(const Aws::String &value)
const SessionLifecycleTargetStatus & GetTargetLifecycleStatus() const
UpdateSessionRequest & WithFarmId(const char *value)
UpdateSessionRequest & WithSessionId(Aws::String &&value)
UpdateSessionRequest & WithClientToken(const char *value)
void SetTargetLifecycleStatus(SessionLifecycleTargetStatus &&value)
UpdateSessionRequest & WithJobId(Aws::String &&value)
UpdateSessionRequest & WithSessionId(const char *value)
UpdateSessionRequest & WithFarmId(Aws::String &&value)
UpdateSessionRequest & WithJobId(const Aws::String &value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTargetLifecycleStatus(const SessionLifecycleTargetStatus &value)
UpdateSessionRequest & WithQueueId(const Aws::String &value)
void SetClientToken(const Aws::String &value)
UpdateSessionRequest & WithJobId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String