AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutRecommendationFeedbackRequest.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codeguru-reviewer/model/Reaction.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeGuruReviewer
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CODEGURUREVIEWER_API PutRecommendationFeedbackRequest();
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_CODEGURUREVIEWER_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
44 inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
45 inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
46 inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
47 inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
49 inline PutRecommendationFeedbackRequest& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
50 inline PutRecommendationFeedbackRequest& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
52
54
58 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
59 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
60 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
61 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
62 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
64 inline PutRecommendationFeedbackRequest& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
65 inline PutRecommendationFeedbackRequest& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
67
69
73 inline const Aws::Vector<Reaction>& GetReactions() const{ return m_reactions; }
74 inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
75 inline void SetReactions(const Aws::Vector<Reaction>& value) { m_reactionsHasBeenSet = true; m_reactions = value; }
76 inline void SetReactions(Aws::Vector<Reaction>&& value) { m_reactionsHasBeenSet = true; m_reactions = std::move(value); }
78 inline PutRecommendationFeedbackRequest& WithReactions(Aws::Vector<Reaction>&& value) { SetReactions(std::move(value)); return *this;}
79 inline PutRecommendationFeedbackRequest& AddReactions(const Reaction& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
80 inline PutRecommendationFeedbackRequest& AddReactions(Reaction&& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(std::move(value)); return *this; }
82 private:
83
84 Aws::String m_codeReviewArn;
85 bool m_codeReviewArnHasBeenSet = false;
86
87 Aws::String m_recommendationId;
88 bool m_recommendationIdHasBeenSet = false;
89
90 Aws::Vector<Reaction> m_reactions;
91 bool m_reactionsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CodeGuruReviewer
96} // namespace Aws
PutRecommendationFeedbackRequest & AddReactions(Reaction &&value)
PutRecommendationFeedbackRequest & WithRecommendationId(Aws::String &&value)
PutRecommendationFeedbackRequest & WithCodeReviewArn(const Aws::String &value)
PutRecommendationFeedbackRequest & WithRecommendationId(const Aws::String &value)
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
PutRecommendationFeedbackRequest & WithReactions(Aws::Vector< Reaction > &&value)
PutRecommendationFeedbackRequest & AddReactions(const Reaction &value)
PutRecommendationFeedbackRequest & WithRecommendationId(const char *value)
PutRecommendationFeedbackRequest & WithReactions(const Aws::Vector< Reaction > &value)
PutRecommendationFeedbackRequest & WithCodeReviewArn(const char *value)
PutRecommendationFeedbackRequest & WithCodeReviewArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector