AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CodeReviewArnT = Aws::String>
46 void SetCodeReviewArn(CodeReviewArnT&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::forward<CodeReviewArnT>(value); }
47 template<typename CodeReviewArnT = Aws::String>
48 PutRecommendationFeedbackRequest& WithCodeReviewArn(CodeReviewArnT&& value) { SetCodeReviewArn(std::forward<CodeReviewArnT>(value)); return *this;}
50
52
56 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
57 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
58 template<typename RecommendationIdT = Aws::String>
59 void SetRecommendationId(RecommendationIdT&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::forward<RecommendationIdT>(value); }
60 template<typename RecommendationIdT = Aws::String>
61 PutRecommendationFeedbackRequest& WithRecommendationId(RecommendationIdT&& value) { SetRecommendationId(std::forward<RecommendationIdT>(value)); return *this;}
63
65
69 inline const Aws::Vector<Reaction>& GetReactions() const { return m_reactions; }
70 inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
71 template<typename ReactionsT = Aws::Vector<Reaction>>
72 void SetReactions(ReactionsT&& value) { m_reactionsHasBeenSet = true; m_reactions = std::forward<ReactionsT>(value); }
73 template<typename ReactionsT = Aws::Vector<Reaction>>
74 PutRecommendationFeedbackRequest& WithReactions(ReactionsT&& value) { SetReactions(std::forward<ReactionsT>(value)); return *this;}
75 inline PutRecommendationFeedbackRequest& AddReactions(Reaction value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
77 private:
78
79 Aws::String m_codeReviewArn;
80 bool m_codeReviewArnHasBeenSet = false;
81
82 Aws::String m_recommendationId;
83 bool m_recommendationIdHasBeenSet = false;
84
85 Aws::Vector<Reaction> m_reactions;
86 bool m_reactionsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CodeGuruReviewer
91} // namespace Aws
PutRecommendationFeedbackRequest & WithCodeReviewArn(CodeReviewArnT &&value)
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
PutRecommendationFeedbackRequest & WithRecommendationId(RecommendationIdT &&value)
AWS_CODEGURUREVIEWER_API PutRecommendationFeedbackRequest()=default
PutRecommendationFeedbackRequest & WithReactions(ReactionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector