AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
Recommendation.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/RecommendationContent.h>
11#include <aws/devops-agent/model/RecommendationPriority.h>
12#include <aws/devops-agent/model/RecommendationStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DevOpsAgent {
24namespace Model {
25
33 public:
34 AWS_DEVOPSAGENT_API Recommendation() = default;
35 AWS_DEVOPSAGENT_API Recommendation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVOPSAGENT_API Recommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAgentSpaceArn() const { return m_agentSpaceArn; }
44 inline bool AgentSpaceArnHasBeenSet() const { return m_agentSpaceArnHasBeenSet; }
45 template <typename AgentSpaceArnT = Aws::String>
46 void SetAgentSpaceArn(AgentSpaceArnT&& value) {
47 m_agentSpaceArnHasBeenSet = true;
48 m_agentSpaceArn = std::forward<AgentSpaceArnT>(value);
49 }
50 template <typename AgentSpaceArnT = Aws::String>
51 Recommendation& WithAgentSpaceArn(AgentSpaceArnT&& value) {
52 SetAgentSpaceArn(std::forward<AgentSpaceArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
62 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
63 template <typename RecommendationIdT = Aws::String>
64 void SetRecommendationId(RecommendationIdT&& value) {
65 m_recommendationIdHasBeenSet = true;
66 m_recommendationId = std::forward<RecommendationIdT>(value);
67 }
68 template <typename RecommendationIdT = Aws::String>
69 Recommendation& WithRecommendationId(RecommendationIdT&& value) {
70 SetRecommendationId(std::forward<RecommendationIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetTaskId() const { return m_taskId; }
80 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
81 template <typename TaskIdT = Aws::String>
82 void SetTaskId(TaskIdT&& value) {
83 m_taskIdHasBeenSet = true;
84 m_taskId = std::forward<TaskIdT>(value);
85 }
86 template <typename TaskIdT = Aws::String>
87 Recommendation& WithTaskId(TaskIdT&& value) {
88 SetTaskId(std::forward<TaskIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetGoalId() const { return m_goalId; }
98 inline bool GoalIdHasBeenSet() const { return m_goalIdHasBeenSet; }
99 template <typename GoalIdT = Aws::String>
100 void SetGoalId(GoalIdT&& value) {
101 m_goalIdHasBeenSet = true;
102 m_goalId = std::forward<GoalIdT>(value);
103 }
104 template <typename GoalIdT = Aws::String>
105 Recommendation& WithGoalId(GoalIdT&& value) {
106 SetGoalId(std::forward<GoalIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetTitle() const { return m_title; }
116 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
117 template <typename TitleT = Aws::String>
118 void SetTitle(TitleT&& value) {
119 m_titleHasBeenSet = true;
120 m_title = std::forward<TitleT>(value);
121 }
122 template <typename TitleT = Aws::String>
123 Recommendation& WithTitle(TitleT&& value) {
124 SetTitle(std::forward<TitleT>(value));
125 return *this;
126 }
128
130
133 inline const RecommendationContent& GetContent() const { return m_content; }
134 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
135 template <typename ContentT = RecommendationContent>
136 void SetContent(ContentT&& value) {
137 m_contentHasBeenSet = true;
138 m_content = std::forward<ContentT>(value);
139 }
140 template <typename ContentT = RecommendationContent>
141 Recommendation& WithContent(ContentT&& value) {
142 SetContent(std::forward<ContentT>(value));
143 return *this;
144 }
146
148
151 inline RecommendationStatus GetStatus() const { return m_status; }
152 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
153 inline void SetStatus(RecommendationStatus value) {
154 m_statusHasBeenSet = true;
155 m_status = value;
156 }
158 SetStatus(value);
159 return *this;
160 }
162
164
167 inline RecommendationPriority GetPriority() const { return m_priority; }
168 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
170 m_priorityHasBeenSet = true;
171 m_priority = value;
172 }
174 SetPriority(value);
175 return *this;
176 }
178
180
183 inline long long GetGoalVersion() const { return m_goalVersion; }
184 inline bool GoalVersionHasBeenSet() const { return m_goalVersionHasBeenSet; }
185 inline void SetGoalVersion(long long value) {
186 m_goalVersionHasBeenSet = true;
187 m_goalVersion = value;
188 }
189 inline Recommendation& WithGoalVersion(long long value) {
190 SetGoalVersion(value);
191 return *this;
192 }
194
196
199 inline const Aws::String& GetAdditionalContext() const { return m_additionalContext; }
200 inline bool AdditionalContextHasBeenSet() const { return m_additionalContextHasBeenSet; }
201 template <typename AdditionalContextT = Aws::String>
202 void SetAdditionalContext(AdditionalContextT&& value) {
203 m_additionalContextHasBeenSet = true;
204 m_additionalContext = std::forward<AdditionalContextT>(value);
205 }
206 template <typename AdditionalContextT = Aws::String>
207 Recommendation& WithAdditionalContext(AdditionalContextT&& value) {
208 SetAdditionalContext(std::forward<AdditionalContextT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
218 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
219 template <typename CreatedAtT = Aws::Utils::DateTime>
220 void SetCreatedAt(CreatedAtT&& value) {
221 m_createdAtHasBeenSet = true;
222 m_createdAt = std::forward<CreatedAtT>(value);
223 }
224 template <typename CreatedAtT = Aws::Utils::DateTime>
225 Recommendation& WithCreatedAt(CreatedAtT&& value) {
226 SetCreatedAt(std::forward<CreatedAtT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
236 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
237 template <typename UpdatedAtT = Aws::Utils::DateTime>
238 void SetUpdatedAt(UpdatedAtT&& value) {
239 m_updatedAtHasBeenSet = true;
240 m_updatedAt = std::forward<UpdatedAtT>(value);
241 }
242 template <typename UpdatedAtT = Aws::Utils::DateTime>
243 Recommendation& WithUpdatedAt(UpdatedAtT&& value) {
244 SetUpdatedAt(std::forward<UpdatedAtT>(value));
245 return *this;
246 }
248
250
253 inline long long GetVersion() const { return m_version; }
254 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
255 inline void SetVersion(long long value) {
256 m_versionHasBeenSet = true;
257 m_version = value;
258 }
259 inline Recommendation& WithVersion(long long value) {
260 SetVersion(value);
261 return *this;
262 }
264 private:
265 Aws::String m_agentSpaceArn;
266
267 Aws::String m_recommendationId;
268
269 Aws::String m_taskId;
270
271 Aws::String m_goalId;
272
273 Aws::String m_title;
274
275 RecommendationContent m_content;
276
278
280
281 long long m_goalVersion{0};
282
283 Aws::String m_additionalContext;
284
285 Aws::Utils::DateTime m_createdAt{};
286
287 Aws::Utils::DateTime m_updatedAt{};
288
289 long long m_version{0};
290 bool m_agentSpaceArnHasBeenSet = false;
291 bool m_recommendationIdHasBeenSet = false;
292 bool m_taskIdHasBeenSet = false;
293 bool m_goalIdHasBeenSet = false;
294 bool m_titleHasBeenSet = false;
295 bool m_contentHasBeenSet = false;
296 bool m_statusHasBeenSet = false;
297 bool m_priorityHasBeenSet = false;
298 bool m_goalVersionHasBeenSet = false;
299 bool m_additionalContextHasBeenSet = false;
300 bool m_createdAtHasBeenSet = false;
301 bool m_updatedAtHasBeenSet = false;
302 bool m_versionHasBeenSet = false;
303};
304
305} // namespace Model
306} // namespace DevOpsAgent
307} // namespace Aws
Recommendation & WithStatus(RecommendationStatus value)
Recommendation & WithVersion(long long value)
const Aws::String & GetRecommendationId() const
Recommendation & WithContent(ContentT &&value)
AWS_DEVOPSAGENT_API Recommendation()=default
AWS_DEVOPSAGENT_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAgentSpaceArn() const
const Aws::String & GetTaskId() const
Recommendation & WithAdditionalContext(AdditionalContextT &&value)
Recommendation & WithAgentSpaceArn(AgentSpaceArnT &&value)
Recommendation & WithGoalId(GoalIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const RecommendationContent & GetContent() const
const Aws::Utils::DateTime & GetCreatedAt() const
Recommendation & WithRecommendationId(RecommendationIdT &&value)
RecommendationPriority GetPriority() const
AWS_DEVOPSAGENT_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetGoalId() const
void SetRecommendationId(RecommendationIdT &&value)
Recommendation & WithTaskId(TaskIdT &&value)
void SetAgentSpaceArn(AgentSpaceArnT &&value)
const Aws::String & GetTitle() const
Recommendation & WithCreatedAt(CreatedAtT &&value)
void SetPriority(RecommendationPriority value)
RecommendationStatus GetStatus() const
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Recommendation & WithUpdatedAt(UpdatedAtT &&value)
void SetAdditionalContext(AdditionalContextT &&value)
Recommendation & WithTitle(TitleT &&value)
Recommendation & WithPriority(RecommendationPriority value)
void SetStatus(RecommendationStatus value)
Recommendation & WithGoalVersion(long long value)
const Aws::String & GetAdditionalContext() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue