AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RecommendationFeedback.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeGuruReviewer
25{
26namespace Model
27{
28
35 {
36 public:
41
42
48 inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
49
55 inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
56
62 inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
63
69 inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
70
76 inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
77
83 inline RecommendationFeedback& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
84
90 inline RecommendationFeedback& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
91
97 inline RecommendationFeedback& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
98
99
104 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
105
110 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
111
116 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
117
122 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
123
128 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
129
134 inline RecommendationFeedback& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
135
140 inline RecommendationFeedback& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
141
146 inline RecommendationFeedback& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
147
148
153 inline const Aws::Vector<Reaction>& GetReactions() const{ return m_reactions; }
154
159 inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
160
165 inline void SetReactions(const Aws::Vector<Reaction>& value) { m_reactionsHasBeenSet = true; m_reactions = value; }
166
171 inline void SetReactions(Aws::Vector<Reaction>&& value) { m_reactionsHasBeenSet = true; m_reactions = std::move(value); }
172
177 inline RecommendationFeedback& WithReactions(const Aws::Vector<Reaction>& value) { SetReactions(value); return *this;}
178
183 inline RecommendationFeedback& WithReactions(Aws::Vector<Reaction>&& value) { SetReactions(std::move(value)); return *this;}
184
189 inline RecommendationFeedback& AddReactions(const Reaction& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
190
195 inline RecommendationFeedback& AddReactions(Reaction&& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(std::move(value)); return *this; }
196
197
206 inline const Aws::String& GetUserId() const{ return m_userId; }
207
216 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
217
226 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
227
236 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
237
246 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
247
256 inline RecommendationFeedback& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
257
266 inline RecommendationFeedback& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
267
276 inline RecommendationFeedback& WithUserId(const char* value) { SetUserId(value); return *this;}
277
278
282 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; }
283
287 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
288
292 inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; }
293
297 inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); }
298
303
307 inline RecommendationFeedback& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;}
308
309
313 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; }
314
318 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
319
323 inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; }
324
328 inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); }
329
334
339
340 private:
341
342 Aws::String m_codeReviewArn;
343 bool m_codeReviewArnHasBeenSet = false;
344
345 Aws::String m_recommendationId;
346 bool m_recommendationIdHasBeenSet = false;
347
348 Aws::Vector<Reaction> m_reactions;
349 bool m_reactionsHasBeenSet = false;
350
351 Aws::String m_userId;
352 bool m_userIdHasBeenSet = false;
353
354 Aws::Utils::DateTime m_createdTimeStamp;
355 bool m_createdTimeStampHasBeenSet = false;
356
357 Aws::Utils::DateTime m_lastUpdatedTimeStamp;
358 bool m_lastUpdatedTimeStampHasBeenSet = false;
359 };
360
361} // namespace Model
362} // namespace CodeGuruReviewer
363} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
RecommendationFeedback & WithCreatedTimeStamp(const Aws::Utils::DateTime &value)
RecommendationFeedback & WithUserId(const char *value)
void SetReactions(const Aws::Vector< Reaction > &value)
RecommendationFeedback & WithRecommendationId(const char *value)
const Aws::Vector< Reaction > & GetReactions() const
RecommendationFeedback & AddReactions(const Reaction &value)
RecommendationFeedback & WithRecommendationId(const Aws::String &value)
AWS_CODEGURUREVIEWER_API RecommendationFeedback(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime &value)
RecommendationFeedback & WithLastUpdatedTimeStamp(const Aws::Utils::DateTime &value)
RecommendationFeedback & WithCreatedTimeStamp(Aws::Utils::DateTime &&value)
RecommendationFeedback & WithCodeReviewArn(const Aws::String &value)
RecommendationFeedback & WithUserId(const Aws::String &value)
void SetLastUpdatedTimeStamp(Aws::Utils::DateTime &&value)
RecommendationFeedback & WithLastUpdatedTimeStamp(Aws::Utils::DateTime &&value)
RecommendationFeedback & WithRecommendationId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedTimeStamp() const
AWS_CODEGURUREVIEWER_API RecommendationFeedback & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationFeedback & WithReactions(const Aws::Vector< Reaction > &value)
void SetCreatedTimeStamp(const Aws::Utils::DateTime &value)
RecommendationFeedback & WithReactions(Aws::Vector< Reaction > &&value)
RecommendationFeedback & WithCodeReviewArn(Aws::String &&value)
RecommendationFeedback & WithUserId(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimeStamp() const
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationFeedback & AddReactions(Reaction &&value)
RecommendationFeedback & WithCodeReviewArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector