AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RecommendationFeedbackSummary.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeGuruReviewer
24{
25namespace Model
26{
27
35 {
36 public:
41
42
47 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
48
53 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
54
59 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
60
65 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
66
71 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
72
78
83 inline RecommendationFeedbackSummary& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
84
89 inline RecommendationFeedbackSummary& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
90
91
95 inline const Aws::Vector<Reaction>& GetReactions() const{ return m_reactions; }
96
100 inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
101
105 inline void SetReactions(const Aws::Vector<Reaction>& value) { m_reactionsHasBeenSet = true; m_reactions = value; }
106
110 inline void SetReactions(Aws::Vector<Reaction>&& value) { m_reactionsHasBeenSet = true; m_reactions = std::move(value); }
111
116
120 inline RecommendationFeedbackSummary& WithReactions(Aws::Vector<Reaction>&& value) { SetReactions(std::move(value)); return *this;}
121
125 inline RecommendationFeedbackSummary& AddReactions(const Reaction& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
126
130 inline RecommendationFeedbackSummary& AddReactions(Reaction&& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(std::move(value)); return *this; }
131
132
141 inline const Aws::String& GetUserId() const{ return m_userId; }
142
151 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
152
161 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
162
171 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
172
181 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
182
191 inline RecommendationFeedbackSummary& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
192
201 inline RecommendationFeedbackSummary& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
202
211 inline RecommendationFeedbackSummary& WithUserId(const char* value) { SetUserId(value); return *this;}
212
213 private:
214
215 Aws::String m_recommendationId;
216 bool m_recommendationIdHasBeenSet = false;
217
218 Aws::Vector<Reaction> m_reactions;
219 bool m_reactionsHasBeenSet = false;
220
221 Aws::String m_userId;
222 bool m_userIdHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace CodeGuruReviewer
227} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
RecommendationFeedbackSummary & WithUserId(Aws::String &&value)
RecommendationFeedbackSummary & AddReactions(Reaction &&value)
AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationFeedbackSummary & WithUserId(const Aws::String &value)
RecommendationFeedbackSummary & AddReactions(const Reaction &value)
RecommendationFeedbackSummary & WithRecommendationId(Aws::String &&value)
RecommendationFeedbackSummary & WithRecommendationId(const Aws::String &value)
RecommendationFeedbackSummary & WithUserId(const char *value)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationFeedbackSummary & WithReactions(const Aws::Vector< Reaction > &value)
AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary(Aws::Utils::Json::JsonView jsonValue)
RecommendationFeedbackSummary & WithReactions(Aws::Vector< Reaction > &&value)
RecommendationFeedbackSummary & WithRecommendationId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector