AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
Goal.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/GoalContent.h>
11#include <aws/devops-agent/model/GoalSchedule.h>
12#include <aws/devops-agent/model/GoalStatus.h>
13#include <aws/devops-agent/model/GoalType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DevOpsAgent {
25namespace Model {
26
33class Goal {
34 public:
35 AWS_DEVOPSAGENT_API Goal() = default;
36 AWS_DEVOPSAGENT_API Goal(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEVOPSAGENT_API Goal& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetAgentSpaceArn() const { return m_agentSpaceArn; }
45 inline bool AgentSpaceArnHasBeenSet() const { return m_agentSpaceArnHasBeenSet; }
46 template <typename AgentSpaceArnT = Aws::String>
47 void SetAgentSpaceArn(AgentSpaceArnT&& value) {
48 m_agentSpaceArnHasBeenSet = true;
49 m_agentSpaceArn = std::forward<AgentSpaceArnT>(value);
50 }
51 template <typename AgentSpaceArnT = Aws::String>
52 Goal& WithAgentSpaceArn(AgentSpaceArnT&& value) {
53 SetAgentSpaceArn(std::forward<AgentSpaceArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetGoalId() const { return m_goalId; }
63 inline bool GoalIdHasBeenSet() const { return m_goalIdHasBeenSet; }
64 template <typename GoalIdT = Aws::String>
65 void SetGoalId(GoalIdT&& value) {
66 m_goalIdHasBeenSet = true;
67 m_goalId = std::forward<GoalIdT>(value);
68 }
69 template <typename GoalIdT = Aws::String>
70 Goal& WithGoalId(GoalIdT&& value) {
71 SetGoalId(std::forward<GoalIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetTitle() const { return m_title; }
81 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
82 template <typename TitleT = Aws::String>
83 void SetTitle(TitleT&& value) {
84 m_titleHasBeenSet = true;
85 m_title = std::forward<TitleT>(value);
86 }
87 template <typename TitleT = Aws::String>
88 Goal& WithTitle(TitleT&& value) {
89 SetTitle(std::forward<TitleT>(value));
90 return *this;
91 }
93
95
98 inline const GoalContent& GetContent() const { return m_content; }
99 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
100 template <typename ContentT = GoalContent>
101 void SetContent(ContentT&& value) {
102 m_contentHasBeenSet = true;
103 m_content = std::forward<ContentT>(value);
104 }
105 template <typename ContentT = GoalContent>
106 Goal& WithContent(ContentT&& value) {
107 SetContent(std::forward<ContentT>(value));
108 return *this;
109 }
111
113
116 inline GoalStatus GetStatus() const { return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 inline void SetStatus(GoalStatus value) {
119 m_statusHasBeenSet = true;
120 m_status = value;
121 }
122 inline Goal& WithStatus(GoalStatus value) {
123 SetStatus(value);
124 return *this;
125 }
127
129
132 inline GoalType GetGoalType() const { return m_goalType; }
133 inline bool GoalTypeHasBeenSet() const { return m_goalTypeHasBeenSet; }
134 inline void SetGoalType(GoalType value) {
135 m_goalTypeHasBeenSet = true;
136 m_goalType = value;
137 }
138 inline Goal& WithGoalType(GoalType value) {
139 SetGoalType(value);
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
149 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
150 template <typename CreatedAtT = Aws::Utils::DateTime>
151 void SetCreatedAt(CreatedAtT&& value) {
152 m_createdAtHasBeenSet = true;
153 m_createdAt = std::forward<CreatedAtT>(value);
154 }
155 template <typename CreatedAtT = Aws::Utils::DateTime>
156 Goal& WithCreatedAt(CreatedAtT&& value) {
157 SetCreatedAt(std::forward<CreatedAtT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
167 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
168 template <typename UpdatedAtT = Aws::Utils::DateTime>
169 void SetUpdatedAt(UpdatedAtT&& value) {
170 m_updatedAtHasBeenSet = true;
171 m_updatedAt = std::forward<UpdatedAtT>(value);
172 }
173 template <typename UpdatedAtT = Aws::Utils::DateTime>
174 Goal& WithUpdatedAt(UpdatedAtT&& value) {
175 SetUpdatedAt(std::forward<UpdatedAtT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetLastEvaluatedAt() const { return m_lastEvaluatedAt; }
185 inline bool LastEvaluatedAtHasBeenSet() const { return m_lastEvaluatedAtHasBeenSet; }
186 template <typename LastEvaluatedAtT = Aws::Utils::DateTime>
187 void SetLastEvaluatedAt(LastEvaluatedAtT&& value) {
188 m_lastEvaluatedAtHasBeenSet = true;
189 m_lastEvaluatedAt = std::forward<LastEvaluatedAtT>(value);
190 }
191 template <typename LastEvaluatedAtT = Aws::Utils::DateTime>
192 Goal& WithLastEvaluatedAt(LastEvaluatedAtT&& value) {
193 SetLastEvaluatedAt(std::forward<LastEvaluatedAtT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetLastTaskId() const { return m_lastTaskId; }
203 inline bool LastTaskIdHasBeenSet() const { return m_lastTaskIdHasBeenSet; }
204 template <typename LastTaskIdT = Aws::String>
205 void SetLastTaskId(LastTaskIdT&& value) {
206 m_lastTaskIdHasBeenSet = true;
207 m_lastTaskId = std::forward<LastTaskIdT>(value);
208 }
209 template <typename LastTaskIdT = Aws::String>
210 Goal& WithLastTaskId(LastTaskIdT&& value) {
211 SetLastTaskId(std::forward<LastTaskIdT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetLastSuccessfulTaskId() const { return m_lastSuccessfulTaskId; }
221 inline bool LastSuccessfulTaskIdHasBeenSet() const { return m_lastSuccessfulTaskIdHasBeenSet; }
222 template <typename LastSuccessfulTaskIdT = Aws::String>
223 void SetLastSuccessfulTaskId(LastSuccessfulTaskIdT&& value) {
224 m_lastSuccessfulTaskIdHasBeenSet = true;
225 m_lastSuccessfulTaskId = std::forward<LastSuccessfulTaskIdT>(value);
226 }
227 template <typename LastSuccessfulTaskIdT = Aws::String>
228 Goal& WithLastSuccessfulTaskId(LastSuccessfulTaskIdT&& value) {
229 SetLastSuccessfulTaskId(std::forward<LastSuccessfulTaskIdT>(value));
230 return *this;
231 }
233
235
238 inline int GetVersion() const { return m_version; }
239 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
240 inline void SetVersion(int value) {
241 m_versionHasBeenSet = true;
242 m_version = value;
243 }
244 inline Goal& WithVersion(int value) {
245 SetVersion(value);
246 return *this;
247 }
249
251
255 inline const GoalSchedule& GetEvaluationSchedule() const { return m_evaluationSchedule; }
256 inline bool EvaluationScheduleHasBeenSet() const { return m_evaluationScheduleHasBeenSet; }
257 template <typename EvaluationScheduleT = GoalSchedule>
258 void SetEvaluationSchedule(EvaluationScheduleT&& value) {
259 m_evaluationScheduleHasBeenSet = true;
260 m_evaluationSchedule = std::forward<EvaluationScheduleT>(value);
261 }
262 template <typename EvaluationScheduleT = GoalSchedule>
263 Goal& WithEvaluationSchedule(EvaluationScheduleT&& value) {
264 SetEvaluationSchedule(std::forward<EvaluationScheduleT>(value));
265 return *this;
266 }
268 private:
269 Aws::String m_agentSpaceArn;
270
271 Aws::String m_goalId;
272
273 Aws::String m_title;
274
275 GoalContent m_content;
276
278
279 GoalType m_goalType{GoalType::NOT_SET};
280
281 Aws::Utils::DateTime m_createdAt{};
282
283 Aws::Utils::DateTime m_updatedAt{};
284
285 Aws::Utils::DateTime m_lastEvaluatedAt{};
286
287 Aws::String m_lastTaskId;
288
289 Aws::String m_lastSuccessfulTaskId;
290
291 int m_version{0};
292
293 GoalSchedule m_evaluationSchedule;
294 bool m_agentSpaceArnHasBeenSet = false;
295 bool m_goalIdHasBeenSet = false;
296 bool m_titleHasBeenSet = false;
297 bool m_contentHasBeenSet = false;
298 bool m_statusHasBeenSet = false;
299 bool m_goalTypeHasBeenSet = false;
300 bool m_createdAtHasBeenSet = false;
301 bool m_updatedAtHasBeenSet = false;
302 bool m_lastEvaluatedAtHasBeenSet = false;
303 bool m_lastTaskIdHasBeenSet = false;
304 bool m_lastSuccessfulTaskIdHasBeenSet = false;
305 bool m_versionHasBeenSet = false;
306 bool m_evaluationScheduleHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace DevOpsAgent
311} // namespace Aws
bool UpdatedAtHasBeenSet() const
Definition Goal.h:167
Goal & WithUpdatedAt(UpdatedAtT &&value)
Definition Goal.h:174
void SetVersion(int value)
Definition Goal.h:240
Goal & WithTitle(TitleT &&value)
Definition Goal.h:88
const Aws::String & GetAgentSpaceArn() const
Definition Goal.h:44
AWS_DEVOPSAGENT_API Goal(Aws::Utils::Json::JsonView jsonValue)
void SetLastTaskId(LastTaskIdT &&value)
Definition Goal.h:205
void SetCreatedAt(CreatedAtT &&value)
Definition Goal.h:151
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Goal.h:166
Goal & WithCreatedAt(CreatedAtT &&value)
Definition Goal.h:156
GoalType GetGoalType() const
Definition Goal.h:132
bool StatusHasBeenSet() const
Definition Goal.h:117
const Aws::String & GetLastSuccessfulTaskId() const
Definition Goal.h:220
AWS_DEVOPSAGENT_API Goal()=default
const GoalSchedule & GetEvaluationSchedule() const
Definition Goal.h:255
void SetUpdatedAt(UpdatedAtT &&value)
Definition Goal.h:169
Goal & WithAgentSpaceArn(AgentSpaceArnT &&value)
Definition Goal.h:52
bool LastTaskIdHasBeenSet() const
Definition Goal.h:203
void SetTitle(TitleT &&value)
Definition Goal.h:83
Goal & WithGoalType(GoalType value)
Definition Goal.h:138
bool ContentHasBeenSet() const
Definition Goal.h:99
bool TitleHasBeenSet() const
Definition Goal.h:81
Goal & WithContent(ContentT &&value)
Definition Goal.h:106
bool LastSuccessfulTaskIdHasBeenSet() const
Definition Goal.h:221
void SetLastSuccessfulTaskId(LastSuccessfulTaskIdT &&value)
Definition Goal.h:223
const GoalContent & GetContent() const
Definition Goal.h:98
bool AgentSpaceArnHasBeenSet() const
Definition Goal.h:45
const Aws::String & GetTitle() const
Definition Goal.h:80
const Aws::Utils::DateTime & GetLastEvaluatedAt() const
Definition Goal.h:184
Goal & WithLastEvaluatedAt(LastEvaluatedAtT &&value)
Definition Goal.h:192
Goal & WithEvaluationSchedule(EvaluationScheduleT &&value)
Definition Goal.h:263
void SetLastEvaluatedAt(LastEvaluatedAtT &&value)
Definition Goal.h:187
AWS_DEVOPSAGENT_API Goal & operator=(Aws::Utils::Json::JsonView jsonValue)
Goal & WithVersion(int value)
Definition Goal.h:244
Goal & WithLastTaskId(LastTaskIdT &&value)
Definition Goal.h:210
bool VersionHasBeenSet() const
Definition Goal.h:239
void SetStatus(GoalStatus value)
Definition Goal.h:118
bool GoalIdHasBeenSet() const
Definition Goal.h:63
Goal & WithGoalId(GoalIdT &&value)
Definition Goal.h:70
void SetAgentSpaceArn(AgentSpaceArnT &&value)
Definition Goal.h:47
bool GoalTypeHasBeenSet() const
Definition Goal.h:133
void SetContent(ContentT &&value)
Definition Goal.h:101
const Aws::String & GetLastTaskId() const
Definition Goal.h:202
Goal & WithStatus(GoalStatus value)
Definition Goal.h:122
void SetGoalId(GoalIdT &&value)
Definition Goal.h:65
void SetGoalType(GoalType value)
Definition Goal.h:134
bool LastEvaluatedAtHasBeenSet() const
Definition Goal.h:185
Goal & WithLastSuccessfulTaskId(LastSuccessfulTaskIdT &&value)
Definition Goal.h:228
bool EvaluationScheduleHasBeenSet() const
Definition Goal.h:256
const Aws::String & GetGoalId() const
Definition Goal.h:62
GoalStatus GetStatus() const
Definition Goal.h:116
bool CreatedAtHasBeenSet() const
Definition Goal.h:149
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Goal.h:148
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEvaluationSchedule(EvaluationScheduleT &&value)
Definition Goal.h:258
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue