AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTaskRequest.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/TaskTargetRunStatus.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 UpdateTaskRequest();
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 "UpdateTask"; }
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 UpdateTaskRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline UpdateTaskRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline UpdateTaskRequest& 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 UpdateTaskRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
64 inline UpdateTaskRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
65 inline UpdateTaskRequest& 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 UpdateTaskRequest& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;}
78 inline UpdateTaskRequest& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;}
79 inline UpdateTaskRequest& 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 UpdateTaskRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
92 inline UpdateTaskRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
93 inline UpdateTaskRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
95
97
100 inline const Aws::String& GetStepId() const{ return m_stepId; }
101 inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
102 inline void SetStepId(const Aws::String& value) { m_stepIdHasBeenSet = true; m_stepId = value; }
103 inline void SetStepId(Aws::String&& value) { m_stepIdHasBeenSet = true; m_stepId = std::move(value); }
104 inline void SetStepId(const char* value) { m_stepIdHasBeenSet = true; m_stepId.assign(value); }
105 inline UpdateTaskRequest& WithStepId(const Aws::String& value) { SetStepId(value); return *this;}
106 inline UpdateTaskRequest& WithStepId(Aws::String&& value) { SetStepId(std::move(value)); return *this;}
107 inline UpdateTaskRequest& WithStepId(const char* value) { SetStepId(value); return *this;}
109
111
114 inline const Aws::String& GetTaskId() const{ return m_taskId; }
115 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
116 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
117 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
118 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
119 inline UpdateTaskRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
120 inline UpdateTaskRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
121 inline UpdateTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
123
125
128 inline const TaskTargetRunStatus& GetTargetRunStatus() const{ return m_targetRunStatus; }
129 inline bool TargetRunStatusHasBeenSet() const { return m_targetRunStatusHasBeenSet; }
130 inline void SetTargetRunStatus(const TaskTargetRunStatus& value) { m_targetRunStatusHasBeenSet = true; m_targetRunStatus = value; }
131 inline void SetTargetRunStatus(TaskTargetRunStatus&& value) { m_targetRunStatusHasBeenSet = true; m_targetRunStatus = std::move(value); }
133 inline UpdateTaskRequest& WithTargetRunStatus(TaskTargetRunStatus&& value) { SetTargetRunStatus(std::move(value)); return *this;}
135 private:
136
137 Aws::String m_clientToken;
138 bool m_clientTokenHasBeenSet = false;
139
140 Aws::String m_farmId;
141 bool m_farmIdHasBeenSet = false;
142
143 Aws::String m_queueId;
144 bool m_queueIdHasBeenSet = false;
145
146 Aws::String m_jobId;
147 bool m_jobIdHasBeenSet = false;
148
149 Aws::String m_stepId;
150 bool m_stepIdHasBeenSet = false;
151
152 Aws::String m_taskId;
153 bool m_taskIdHasBeenSet = false;
154
155 TaskTargetRunStatus m_targetRunStatus;
156 bool m_targetRunStatusHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace deadline
161} // namespace Aws
const Aws::String & GetClientToken() const
UpdateTaskRequest & WithStepId(Aws::String &&value)
UpdateTaskRequest & WithClientToken(const char *value)
const TaskTargetRunStatus & GetTargetRunStatus() const
void SetJobId(const Aws::String &value)
const Aws::String & GetFarmId() const
UpdateTaskRequest & WithFarmId(const char *value)
UpdateTaskRequest & WithJobId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateTaskRequest & WithFarmId(Aws::String &&value)
const Aws::String & GetQueueId() const
UpdateTaskRequest & WithJobId(const char *value)
void SetClientToken(const Aws::String &value)
UpdateTaskRequest & WithStepId(const char *value)
UpdateTaskRequest & WithStepId(const Aws::String &value)
void SetTaskId(const Aws::String &value)
UpdateTaskRequest & WithTaskId(Aws::String &&value)
UpdateTaskRequest & WithTaskId(const char *value)
void SetTargetRunStatus(const TaskTargetRunStatus &value)
void SetQueueId(const Aws::String &value)
UpdateTaskRequest & WithClientToken(const Aws::String &value)
UpdateTaskRequest & WithJobId(const Aws::String &value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DEADLINE_API Aws::String SerializePayload() const override
void SetStepId(const Aws::String &value)
UpdateTaskRequest & WithTargetRunStatus(const TaskTargetRunStatus &value)
UpdateTaskRequest & WithQueueId(Aws::String &&value)
UpdateTaskRequest & WithTaskId(const Aws::String &value)
UpdateTaskRequest & WithQueueId(const char *value)
UpdateTaskRequest & WithQueueId(const Aws::String &value)
UpdateTaskRequest & WithFarmId(const Aws::String &value)
UpdateTaskRequest & WithTargetRunStatus(TaskTargetRunStatus &&value)
void SetTargetRunStatus(TaskTargetRunStatus &&value)
UpdateTaskRequest & WithClientToken(Aws::String &&value)
void SetFarmId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String