AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
BatchGetTaskError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/deadline/Deadline_EXPORTS.h>
9#include <aws/deadline/model/BatchGetTaskErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace deadline {
21namespace Model {
22
30 public:
31 AWS_DEADLINE_API BatchGetTaskError() = default;
32 AWS_DEADLINE_API BatchGetTaskError(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetFarmId() const { return m_farmId; }
41 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
42 template <typename FarmIdT = Aws::String>
43 void SetFarmId(FarmIdT&& value) {
44 m_farmIdHasBeenSet = true;
45 m_farmId = std::forward<FarmIdT>(value);
46 }
47 template <typename FarmIdT = Aws::String>
48 BatchGetTaskError& WithFarmId(FarmIdT&& value) {
49 SetFarmId(std::forward<FarmIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetQueueId() const { return m_queueId; }
59 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
60 template <typename QueueIdT = Aws::String>
61 void SetQueueId(QueueIdT&& value) {
62 m_queueIdHasBeenSet = true;
63 m_queueId = std::forward<QueueIdT>(value);
64 }
65 template <typename QueueIdT = Aws::String>
66 BatchGetTaskError& WithQueueId(QueueIdT&& value) {
67 SetQueueId(std::forward<QueueIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetJobId() const { return m_jobId; }
77 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
78 template <typename JobIdT = Aws::String>
79 void SetJobId(JobIdT&& value) {
80 m_jobIdHasBeenSet = true;
81 m_jobId = std::forward<JobIdT>(value);
82 }
83 template <typename JobIdT = Aws::String>
84 BatchGetTaskError& WithJobId(JobIdT&& value) {
85 SetJobId(std::forward<JobIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetStepId() const { return m_stepId; }
95 inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
96 template <typename StepIdT = Aws::String>
97 void SetStepId(StepIdT&& value) {
98 m_stepIdHasBeenSet = true;
99 m_stepId = std::forward<StepIdT>(value);
100 }
101 template <typename StepIdT = Aws::String>
102 BatchGetTaskError& WithStepId(StepIdT&& value) {
103 SetStepId(std::forward<StepIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetTaskId() const { return m_taskId; }
113 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
114 template <typename TaskIdT = Aws::String>
115 void SetTaskId(TaskIdT&& value) {
116 m_taskIdHasBeenSet = true;
117 m_taskId = std::forward<TaskIdT>(value);
118 }
119 template <typename TaskIdT = Aws::String>
120 BatchGetTaskError& WithTaskId(TaskIdT&& value) {
121 SetTaskId(std::forward<TaskIdT>(value));
122 return *this;
123 }
125
127
130 inline BatchGetTaskErrorCode GetCode() const { return m_code; }
131 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
132 inline void SetCode(BatchGetTaskErrorCode value) {
133 m_codeHasBeenSet = true;
134 m_code = value;
135 }
137 SetCode(value);
138 return *this;
139 }
141
143
146 inline const Aws::String& GetMessage() const { return m_message; }
147 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
148 template <typename MessageT = Aws::String>
149 void SetMessage(MessageT&& value) {
150 m_messageHasBeenSet = true;
151 m_message = std::forward<MessageT>(value);
152 }
153 template <typename MessageT = Aws::String>
154 BatchGetTaskError& WithMessage(MessageT&& value) {
155 SetMessage(std::forward<MessageT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_farmId;
161
162 Aws::String m_queueId;
163
164 Aws::String m_jobId;
165
166 Aws::String m_stepId;
167
168 Aws::String m_taskId;
169
171
172 Aws::String m_message;
173 bool m_farmIdHasBeenSet = false;
174 bool m_queueIdHasBeenSet = false;
175 bool m_jobIdHasBeenSet = false;
176 bool m_stepIdHasBeenSet = false;
177 bool m_taskIdHasBeenSet = false;
178 bool m_codeHasBeenSet = false;
179 bool m_messageHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace deadline
184} // namespace Aws
BatchGetTaskError & WithQueueId(QueueIdT &&value)
BatchGetTaskError & WithMessage(MessageT &&value)
const Aws::String & GetQueueId() const
AWS_DEADLINE_API BatchGetTaskError(Aws::Utils::Json::JsonView jsonValue)
void SetCode(BatchGetTaskErrorCode value)
BatchGetTaskErrorCode GetCode() const
const Aws::String & GetStepId() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API BatchGetTaskError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchGetTaskError & WithJobId(JobIdT &&value)
AWS_DEADLINE_API BatchGetTaskError()=default
const Aws::String & GetFarmId() const
BatchGetTaskError & WithFarmId(FarmIdT &&value)
BatchGetTaskError & WithTaskId(TaskIdT &&value)
BatchGetTaskError & WithCode(BatchGetTaskErrorCode value)
BatchGetTaskError & WithStepId(StepIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue