AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TaskSearchSummary.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/model/TaskRunStatus.h>
10#include <aws/deadline/model/TaskTargetRunStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/deadline/model/TaskParameterValue.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace deadline
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_DEADLINE_API TaskSearchSummary();
40 AWS_DEADLINE_API TaskSearchSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetTaskId() const{ return m_taskId; }
50 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
51 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
52 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
53 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
54 inline TaskSearchSummary& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
55 inline TaskSearchSummary& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
56 inline TaskSearchSummary& WithTaskId(const char* value) { SetTaskId(value); return *this;}
58
60
63 inline const Aws::String& GetStepId() const{ return m_stepId; }
64 inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
65 inline void SetStepId(const Aws::String& value) { m_stepIdHasBeenSet = true; m_stepId = value; }
66 inline void SetStepId(Aws::String&& value) { m_stepIdHasBeenSet = true; m_stepId = std::move(value); }
67 inline void SetStepId(const char* value) { m_stepIdHasBeenSet = true; m_stepId.assign(value); }
68 inline TaskSearchSummary& WithStepId(const Aws::String& value) { SetStepId(value); return *this;}
69 inline TaskSearchSummary& WithStepId(Aws::String&& value) { SetStepId(std::move(value)); return *this;}
70 inline TaskSearchSummary& WithStepId(const char* value) { SetStepId(value); return *this;}
72
74
77 inline const Aws::String& GetJobId() const{ return m_jobId; }
78 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
79 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
80 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
81 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
82 inline TaskSearchSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
83 inline TaskSearchSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
84 inline TaskSearchSummary& WithJobId(const char* value) { SetJobId(value); return *this;}
86
88
91 inline const Aws::String& GetQueueId() const{ return m_queueId; }
92 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
93 inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; }
94 inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); }
95 inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); }
96 inline TaskSearchSummary& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;}
97 inline TaskSearchSummary& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;}
98 inline TaskSearchSummary& WithQueueId(const char* value) { SetQueueId(value); return *this;}
100
102
105 inline const TaskRunStatus& GetRunStatus() const{ return m_runStatus; }
106 inline bool RunStatusHasBeenSet() const { return m_runStatusHasBeenSet; }
107 inline void SetRunStatus(const TaskRunStatus& value) { m_runStatusHasBeenSet = true; m_runStatus = value; }
108 inline void SetRunStatus(TaskRunStatus&& value) { m_runStatusHasBeenSet = true; m_runStatus = std::move(value); }
109 inline TaskSearchSummary& WithRunStatus(const TaskRunStatus& value) { SetRunStatus(value); return *this;}
110 inline TaskSearchSummary& WithRunStatus(TaskRunStatus&& value) { SetRunStatus(std::move(value)); return *this;}
112
114
117 inline const TaskTargetRunStatus& GetTargetRunStatus() const{ return m_targetRunStatus; }
118 inline bool TargetRunStatusHasBeenSet() const { return m_targetRunStatusHasBeenSet; }
119 inline void SetTargetRunStatus(const TaskTargetRunStatus& value) { m_targetRunStatusHasBeenSet = true; m_targetRunStatus = value; }
120 inline void SetTargetRunStatus(TaskTargetRunStatus&& value) { m_targetRunStatusHasBeenSet = true; m_targetRunStatus = std::move(value); }
122 inline TaskSearchSummary& WithTargetRunStatus(TaskTargetRunStatus&& value) { SetTargetRunStatus(std::move(value)); return *this;}
124
126
129 inline const Aws::Map<Aws::String, TaskParameterValue>& GetParameters() const{ return m_parameters; }
130 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
131 inline void SetParameters(const Aws::Map<Aws::String, TaskParameterValue>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
132 inline void SetParameters(Aws::Map<Aws::String, TaskParameterValue>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
135 inline TaskSearchSummary& AddParameters(const Aws::String& key, const TaskParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
136 inline TaskSearchSummary& AddParameters(Aws::String&& key, const TaskParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
137 inline TaskSearchSummary& AddParameters(const Aws::String& key, TaskParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
138 inline TaskSearchSummary& AddParameters(Aws::String&& key, TaskParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
139 inline TaskSearchSummary& AddParameters(const char* key, TaskParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
140 inline TaskSearchSummary& AddParameters(const char* key, const TaskParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
142
144
147 inline int GetFailureRetryCount() const{ return m_failureRetryCount; }
148 inline bool FailureRetryCountHasBeenSet() const { return m_failureRetryCountHasBeenSet; }
149 inline void SetFailureRetryCount(int value) { m_failureRetryCountHasBeenSet = true; m_failureRetryCount = value; }
150 inline TaskSearchSummary& WithFailureRetryCount(int value) { SetFailureRetryCount(value); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
158 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
159 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
160 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
161 inline TaskSearchSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
162 inline TaskSearchSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
164
166
169 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
170 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
171 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; }
172 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); }
173 inline TaskSearchSummary& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
174 inline TaskSearchSummary& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
176 private:
177
178 Aws::String m_taskId;
179 bool m_taskIdHasBeenSet = false;
180
181 Aws::String m_stepId;
182 bool m_stepIdHasBeenSet = false;
183
184 Aws::String m_jobId;
185 bool m_jobIdHasBeenSet = false;
186
187 Aws::String m_queueId;
188 bool m_queueIdHasBeenSet = false;
189
190 TaskRunStatus m_runStatus;
191 bool m_runStatusHasBeenSet = false;
192
193 TaskTargetRunStatus m_targetRunStatus;
194 bool m_targetRunStatusHasBeenSet = false;
195
197 bool m_parametersHasBeenSet = false;
198
199 int m_failureRetryCount;
200 bool m_failureRetryCountHasBeenSet = false;
201
202 Aws::Utils::DateTime m_startedAt;
203 bool m_startedAtHasBeenSet = false;
204
205 Aws::Utils::DateTime m_endedAt;
206 bool m_endedAtHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace deadline
211} // namespace Aws
TaskSearchSummary & WithQueueId(Aws::String &&value)
TaskSearchSummary & WithRunStatus(const TaskRunStatus &value)
TaskSearchSummary & WithTaskId(const char *value)
TaskSearchSummary & WithTaskId(Aws::String &&value)
AWS_DEADLINE_API TaskSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskSearchSummary & WithParameters(Aws::Map< Aws::String, TaskParameterValue > &&value)
void SetRunStatus(const TaskRunStatus &value)
AWS_DEADLINE_API TaskSearchSummary(Aws::Utils::Json::JsonView jsonValue)
void SetTargetRunStatus(const TaskTargetRunStatus &value)
TaskSearchSummary & WithEndedAt(const Aws::Utils::DateTime &value)
void SetQueueId(const Aws::String &value)
void SetTaskId(const Aws::String &value)
void SetRunStatus(TaskRunStatus &&value)
TaskSearchSummary & AddParameters(const Aws::String &key, TaskParameterValue &&value)
TaskSearchSummary & WithStartedAt(const Aws::Utils::DateTime &value)
TaskSearchSummary & AddParameters(const char *key, TaskParameterValue &&value)
TaskSearchSummary & WithStepId(Aws::String &&value)
TaskSearchSummary & AddParameters(Aws::String &&key, const TaskParameterValue &value)
TaskSearchSummary & WithJobId(Aws::String &&value)
const Aws::String & GetQueueId() const
TaskSearchSummary & WithTargetRunStatus(const TaskTargetRunStatus &value)
void SetTargetRunStatus(TaskTargetRunStatus &&value)
TaskSearchSummary & WithQueueId(const Aws::String &value)
const TaskRunStatus & GetRunStatus() const
const Aws::String & GetStepId() const
TaskSearchSummary & WithStepId(const Aws::String &value)
TaskSearchSummary & WithStartedAt(Aws::Utils::DateTime &&value)
TaskSearchSummary & AddParameters(const Aws::String &key, const TaskParameterValue &value)
const TaskTargetRunStatus & GetTargetRunStatus() const
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::Map< Aws::String, TaskParameterValue > & GetParameters() const
TaskSearchSummary & WithTargetRunStatus(TaskTargetRunStatus &&value)
TaskSearchSummary & WithParameters(const Aws::Map< Aws::String, TaskParameterValue > &value)
void SetEndedAt(const Aws::Utils::DateTime &value)
void SetJobId(const Aws::String &value)
const Aws::Utils::DateTime & GetStartedAt() const
TaskSearchSummary & WithQueueId(const char *value)
TaskSearchSummary & AddParameters(Aws::String &&key, TaskParameterValue &&value)
TaskSearchSummary & WithTaskId(const Aws::String &value)
void SetStepId(const Aws::String &value)
void SetParameters(const Aws::Map< Aws::String, TaskParameterValue > &value)
void SetStartedAt(Aws::Utils::DateTime &&value)
TaskSearchSummary & WithJobId(const char *value)
void SetEndedAt(Aws::Utils::DateTime &&value)
TaskSearchSummary & WithStepId(const char *value)
TaskSearchSummary & WithRunStatus(TaskRunStatus &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
TaskSearchSummary & AddParameters(const char *key, const TaskParameterValue &value)
TaskSearchSummary & WithEndedAt(Aws::Utils::DateTime &&value)
void SetParameters(Aws::Map< Aws::String, TaskParameterValue > &&value)
void SetStartedAt(const Aws::Utils::DateTime &value)
TaskSearchSummary & WithFailureRetryCount(int value)
const Aws::String & GetTaskId() const
TaskSearchSummary & WithJobId(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue