AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StepSearchSummary.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/StepLifecycleStatus.h>
10#include <aws/deadline/model/TaskRunStatus.h>
11#include <aws/deadline/model/StepTargetTaskRunStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/deadline/model/ParameterSpace.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace deadline
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_DEADLINE_API StepSearchSummary() = default;
41 AWS_DEADLINE_API StepSearchSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetStepId() const { return m_stepId; }
51 inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
52 template<typename StepIdT = Aws::String>
53 void SetStepId(StepIdT&& value) { m_stepIdHasBeenSet = true; m_stepId = std::forward<StepIdT>(value); }
54 template<typename StepIdT = Aws::String>
55 StepSearchSummary& WithStepId(StepIdT&& value) { SetStepId(std::forward<StepIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetJobId() const { return m_jobId; }
63 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
64 template<typename JobIdT = Aws::String>
65 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
66 template<typename JobIdT = Aws::String>
67 StepSearchSummary& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetQueueId() const { return m_queueId; }
75 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
76 template<typename QueueIdT = Aws::String>
77 void SetQueueId(QueueIdT&& value) { m_queueIdHasBeenSet = true; m_queueId = std::forward<QueueIdT>(value); }
78 template<typename QueueIdT = Aws::String>
79 StepSearchSummary& WithQueueId(QueueIdT&& value) { SetQueueId(std::forward<QueueIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetName() const { return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 template<typename NameT = Aws::String>
89 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
90 template<typename NameT = Aws::String>
91 StepSearchSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
93
95
98 inline StepLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
99 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
100 inline void SetLifecycleStatus(StepLifecycleStatus value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = value; }
103
105
108 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
109 inline bool LifecycleStatusMessageHasBeenSet() const { return m_lifecycleStatusMessageHasBeenSet; }
110 template<typename LifecycleStatusMessageT = Aws::String>
111 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) { m_lifecycleStatusMessageHasBeenSet = true; m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value); }
112 template<typename LifecycleStatusMessageT = Aws::String>
113 StepSearchSummary& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) { SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value)); return *this;}
115
117
130 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
131 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
132 inline void SetTaskRunStatus(TaskRunStatus value) { m_taskRunStatusHasBeenSet = true; m_taskRunStatus = value; }
135
137
140 inline StepTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
141 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
142 inline void SetTargetTaskRunStatus(StepTargetTaskRunStatus value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = value; }
145
147
150 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
151 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
152 template<typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
153 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) { m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value); }
154 template<typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
155 StepSearchSummary& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) { SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value)); return *this;}
157 m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts.emplace(key, value); return *this;
158 }
160
162
165 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
166 inline bool TaskFailureRetryCountHasBeenSet() const { return m_taskFailureRetryCountHasBeenSet; }
167 inline void SetTaskFailureRetryCount(int value) { m_taskFailureRetryCountHasBeenSet = true; m_taskFailureRetryCount = value; }
168 inline StepSearchSummary& WithTaskFailureRetryCount(int value) { SetTaskFailureRetryCount(value); return *this;}
170
172
175 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
176 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
177 template<typename CreatedAtT = Aws::Utils::DateTime>
178 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
179 template<typename CreatedAtT = Aws::Utils::DateTime>
180 StepSearchSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
182
184
187 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
188 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
189 template<typename StartedAtT = Aws::Utils::DateTime>
190 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
191 template<typename StartedAtT = Aws::Utils::DateTime>
192 StepSearchSummary& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
194
196
199 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
200 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
201 template<typename EndedAtT = Aws::Utils::DateTime>
202 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
203 template<typename EndedAtT = Aws::Utils::DateTime>
204 StepSearchSummary& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
206
208
211 inline const ParameterSpace& GetParameterSpace() const { return m_parameterSpace; }
212 inline bool ParameterSpaceHasBeenSet() const { return m_parameterSpaceHasBeenSet; }
213 template<typename ParameterSpaceT = ParameterSpace>
214 void SetParameterSpace(ParameterSpaceT&& value) { m_parameterSpaceHasBeenSet = true; m_parameterSpace = std::forward<ParameterSpaceT>(value); }
215 template<typename ParameterSpaceT = ParameterSpace>
216 StepSearchSummary& WithParameterSpace(ParameterSpaceT&& value) { SetParameterSpace(std::forward<ParameterSpaceT>(value)); return *this;}
218 private:
219
220 Aws::String m_stepId;
221 bool m_stepIdHasBeenSet = false;
222
223 Aws::String m_jobId;
224 bool m_jobIdHasBeenSet = false;
225
226 Aws::String m_queueId;
227 bool m_queueIdHasBeenSet = false;
228
229 Aws::String m_name;
230 bool m_nameHasBeenSet = false;
231
233 bool m_lifecycleStatusHasBeenSet = false;
234
235 Aws::String m_lifecycleStatusMessage;
236 bool m_lifecycleStatusMessageHasBeenSet = false;
237
238 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
239 bool m_taskRunStatusHasBeenSet = false;
240
242 bool m_targetTaskRunStatusHasBeenSet = false;
243
244 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
245 bool m_taskRunStatusCountsHasBeenSet = false;
246
247 int m_taskFailureRetryCount{0};
248 bool m_taskFailureRetryCountHasBeenSet = false;
249
250 Aws::Utils::DateTime m_createdAt{};
251 bool m_createdAtHasBeenSet = false;
252
253 Aws::Utils::DateTime m_startedAt{};
254 bool m_startedAtHasBeenSet = false;
255
256 Aws::Utils::DateTime m_endedAt{};
257 bool m_endedAtHasBeenSet = false;
258
259 ParameterSpace m_parameterSpace;
260 bool m_parameterSpaceHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace deadline
265} // namespace Aws
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
StepSearchSummary & WithCreatedAt(CreatedAtT &&value)
StepSearchSummary & WithTaskFailureRetryCount(int value)
const Aws::String & GetStepId() const
StepSearchSummary & WithStartedAt(StartedAtT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
StepSearchSummary & WithTaskRunStatus(TaskRunStatus value)
StepSearchSummary & WithParameterSpace(ParameterSpaceT &&value)
StepTargetTaskRunStatus GetTargetTaskRunStatus() const
StepSearchSummary & WithStepId(StepIdT &&value)
const Aws::String & GetQueueId() const
StepSearchSummary & AddTaskRunStatusCounts(TaskRunStatus key, int value)
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
StepLifecycleStatus GetLifecycleStatus() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_DEADLINE_API StepSearchSummary(Aws::Utils::Json::JsonView jsonValue)
StepSearchSummary & WithEndedAt(EndedAtT &&value)
StepSearchSummary & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
StepSearchSummary & WithName(NameT &&value)
StepSearchSummary & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
StepSearchSummary & WithJobId(JobIdT &&value)
void SetTargetTaskRunStatus(StepTargetTaskRunStatus value)
StepSearchSummary & WithQueueId(QueueIdT &&value)
const ParameterSpace & GetParameterSpace() const
StepSearchSummary & WithTargetTaskRunStatus(StepTargetTaskRunStatus value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
AWS_DEADLINE_API StepSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLifecycleStatus(StepLifecycleStatus value)
StepSearchSummary & WithLifecycleStatus(StepLifecycleStatus value)
const Aws::String & GetLifecycleStatusMessage() const
void SetParameterSpace(ParameterSpaceT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::Utils::DateTime & GetStartedAt() const
AWS_DEADLINE_API StepSearchSummary()=default
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