AWS SDK for C++  1.9.1
AWS SDK for C++
PutRecommendationFeedbackRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CodeGuruReviewer
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "PutRecommendationFeedback"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
42  inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
43 
49  inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
50 
56  inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
57 
63  inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
64 
70  inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
71 
77  inline PutRecommendationFeedbackRequest& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
78 
84  inline PutRecommendationFeedbackRequest& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
85 
91  inline PutRecommendationFeedbackRequest& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
92 
93 
98  inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
99 
104  inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
105 
110  inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
111 
116  inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
117 
122  inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
123 
128  inline PutRecommendationFeedbackRequest& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
129 
134  inline PutRecommendationFeedbackRequest& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
135 
140  inline PutRecommendationFeedbackRequest& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
141 
142 
147  inline const Aws::Vector<Reaction>& GetReactions() const{ return m_reactions; }
148 
153  inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
154 
159  inline void SetReactions(const Aws::Vector<Reaction>& value) { m_reactionsHasBeenSet = true; m_reactions = value; }
160 
165  inline void SetReactions(Aws::Vector<Reaction>&& value) { m_reactionsHasBeenSet = true; m_reactions = std::move(value); }
166 
171  inline PutRecommendationFeedbackRequest& WithReactions(const Aws::Vector<Reaction>& value) { SetReactions(value); return *this;}
172 
177  inline PutRecommendationFeedbackRequest& WithReactions(Aws::Vector<Reaction>&& value) { SetReactions(std::move(value)); return *this;}
178 
183  inline PutRecommendationFeedbackRequest& AddReactions(const Reaction& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
184 
189  inline PutRecommendationFeedbackRequest& AddReactions(Reaction&& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(std::move(value)); return *this; }
190 
191  private:
192 
193  Aws::String m_codeReviewArn;
194  bool m_codeReviewArnHasBeenSet;
195 
196  Aws::String m_recommendationId;
197  bool m_recommendationIdHasBeenSet;
198 
199  Aws::Vector<Reaction> m_reactions;
200  bool m_reactionsHasBeenSet;
201  };
202 
203 } // namespace Model
204 } // namespace CodeGuruReviewer
205 } // namespace Aws
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::GetReactions
const Aws::Vector< Reaction > & GetReactions() const
Definition: PutRecommendationFeedbackRequest.h:147
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::SetRecommendationId
void SetRecommendationId(const char *value)
Definition: PutRecommendationFeedbackRequest.h:122
CodeGuruReviewerRequest.h
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::AddReactions
PutRecommendationFeedbackRequest & AddReactions(Reaction &&value)
Definition: PutRecommendationFeedbackRequest.h:189
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::GetRecommendationId
const Aws::String & GetRecommendationId() const
Definition: PutRecommendationFeedbackRequest.h:98
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::ReactionsHasBeenSet
bool ReactionsHasBeenSet() const
Definition: PutRecommendationFeedbackRequest.h:153
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::WithRecommendationId
PutRecommendationFeedbackRequest & WithRecommendationId(const char *value)
Definition: PutRecommendationFeedbackRequest.h:140
AWS_CODEGURUREVIEWER_API
#define AWS_CODEGURUREVIEWER_API
Definition: CodeGuruReviewer_EXPORTS.h:28
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::WithReactions
PutRecommendationFeedbackRequest & WithReactions(const Aws::Vector< Reaction > &value)
Definition: PutRecommendationFeedbackRequest.h:171
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::SetRecommendationId
void SetRecommendationId(Aws::String &&value)
Definition: PutRecommendationFeedbackRequest.h:116
Aws::CodeGuruReviewer::CodeGuruReviewerRequest
Definition: CodeGuruReviewerRequest.h:17
AWSVector.h
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::WithRecommendationId
PutRecommendationFeedbackRequest & WithRecommendationId(Aws::String &&value)
Definition: PutRecommendationFeedbackRequest.h:134
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::SetReactions
void SetReactions(Aws::Vector< Reaction > &&value)
Definition: PutRecommendationFeedbackRequest.h:165
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::AddReactions
PutRecommendationFeedbackRequest & AddReactions(const Reaction &value)
Definition: PutRecommendationFeedbackRequest.h:183
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::SetCodeReviewArn
void SetCodeReviewArn(const char *value)
Definition: PutRecommendationFeedbackRequest.h:70
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::SetCodeReviewArn
void SetCodeReviewArn(const Aws::String &value)
Definition: PutRecommendationFeedbackRequest.h:56
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::GetCodeReviewArn
const Aws::String & GetCodeReviewArn() const
Definition: PutRecommendationFeedbackRequest.h:42
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::RecommendationIdHasBeenSet
bool RecommendationIdHasBeenSet() const
Definition: PutRecommendationFeedbackRequest.h:104
CodeGuruReviewer_EXPORTS.h
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::SetCodeReviewArn
void SetCodeReviewArn(Aws::String &&value)
Definition: PutRecommendationFeedbackRequest.h:63
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::WithReactions
PutRecommendationFeedbackRequest & WithReactions(Aws::Vector< Reaction > &&value)
Definition: PutRecommendationFeedbackRequest.h:177
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::SetRecommendationId
void SetRecommendationId(const Aws::String &value)
Definition: PutRecommendationFeedbackRequest.h:110
AWSString.h
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutRecommendationFeedbackRequest.h:32
Reaction.h
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::WithCodeReviewArn
PutRecommendationFeedbackRequest & WithCodeReviewArn(const char *value)
Definition: PutRecommendationFeedbackRequest.h:91
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::WithCodeReviewArn
PutRecommendationFeedbackRequest & WithCodeReviewArn(Aws::String &&value)
Definition: PutRecommendationFeedbackRequest.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::CodeReviewArnHasBeenSet
bool CodeReviewArnHasBeenSet() const
Definition: PutRecommendationFeedbackRequest.h:49
Aws::CodeGuruReviewer::Model::Reaction
Reaction
Definition: Reaction.h:17
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::PutRecommendationFeedbackRequest
PutRecommendationFeedbackRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::SetReactions
void SetReactions(const Aws::Vector< Reaction > &value)
Definition: PutRecommendationFeedbackRequest.h:159
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest
Definition: PutRecommendationFeedbackRequest.h:24
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::WithCodeReviewArn
PutRecommendationFeedbackRequest & WithCodeReviewArn(const Aws::String &value)
Definition: PutRecommendationFeedbackRequest.h:77
Aws::CodeGuruReviewer::Model::PutRecommendationFeedbackRequest::WithRecommendationId
PutRecommendationFeedbackRequest & WithRecommendationId(const Aws::String &value)
Definition: PutRecommendationFeedbackRequest.h:128