AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
PutRecommendationFeedbackRequest.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
8#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
9#include <aws/codeguru-reviewer/model/Reaction.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodeGuruReviewer {
17namespace Model {
18
22 public:
23 AWS_CODEGURUREVIEWER_API PutRecommendationFeedbackRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutRecommendationFeedback"; }
30
31 AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetCodeReviewArn() const { return m_codeReviewArn; }
40 inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
41 template <typename CodeReviewArnT = Aws::String>
42 void SetCodeReviewArn(CodeReviewArnT&& value) {
43 m_codeReviewArnHasBeenSet = true;
44 m_codeReviewArn = std::forward<CodeReviewArnT>(value);
45 }
46 template <typename CodeReviewArnT = Aws::String>
48 SetCodeReviewArn(std::forward<CodeReviewArnT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
59 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
60 template <typename RecommendationIdT = Aws::String>
61 void SetRecommendationId(RecommendationIdT&& value) {
62 m_recommendationIdHasBeenSet = true;
63 m_recommendationId = std::forward<RecommendationIdT>(value);
64 }
65 template <typename RecommendationIdT = Aws::String>
67 SetRecommendationId(std::forward<RecommendationIdT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Vector<Reaction>& GetReactions() const { return m_reactions; }
78 inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
79 template <typename ReactionsT = Aws::Vector<Reaction>>
80 void SetReactions(ReactionsT&& value) {
81 m_reactionsHasBeenSet = true;
82 m_reactions = std::forward<ReactionsT>(value);
83 }
84 template <typename ReactionsT = Aws::Vector<Reaction>>
86 SetReactions(std::forward<ReactionsT>(value));
87 return *this;
88 }
90 m_reactionsHasBeenSet = true;
91 m_reactions.push_back(value);
92 return *this;
93 }
95 private:
96 Aws::String m_codeReviewArn;
97
98 Aws::String m_recommendationId;
99
100 Aws::Vector<Reaction> m_reactions;
101 bool m_codeReviewArnHasBeenSet = false;
102 bool m_recommendationIdHasBeenSet = false;
103 bool m_reactionsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace CodeGuruReviewer
108} // 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