AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
RecommendationFeedbackSummary.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/model/Reaction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeGuruReviewer {
22namespace Model {
23
31 public:
32 AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary() = default;
33 AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
43 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
44 template <typename RecommendationIdT = Aws::String>
45 void SetRecommendationId(RecommendationIdT&& value) {
46 m_recommendationIdHasBeenSet = true;
47 m_recommendationId = std::forward<RecommendationIdT>(value);
48 }
49 template <typename RecommendationIdT = Aws::String>
51 SetRecommendationId(std::forward<RecommendationIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Reaction>& GetReactions() const { return m_reactions; }
61 inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
62 template <typename ReactionsT = Aws::Vector<Reaction>>
63 void SetReactions(ReactionsT&& value) {
64 m_reactionsHasBeenSet = true;
65 m_reactions = std::forward<ReactionsT>(value);
66 }
67 template <typename ReactionsT = Aws::Vector<Reaction>>
69 SetReactions(std::forward<ReactionsT>(value));
70 return *this;
71 }
73 m_reactionsHasBeenSet = true;
74 m_reactions.push_back(value);
75 return *this;
76 }
78
80
88 inline const Aws::String& GetUserId() const { return m_userId; }
89 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
90 template <typename UserIdT = Aws::String>
91 void SetUserId(UserIdT&& value) {
92 m_userIdHasBeenSet = true;
93 m_userId = std::forward<UserIdT>(value);
94 }
95 template <typename UserIdT = Aws::String>
97 SetUserId(std::forward<UserIdT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_recommendationId;
103
104 Aws::Vector<Reaction> m_reactions;
105
106 Aws::String m_userId;
107 bool m_recommendationIdHasBeenSet = false;
108 bool m_reactionsHasBeenSet = false;
109 bool m_userIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace CodeGuruReviewer
114} // namespace Aws
RecommendationFeedbackSummary & WithReactions(ReactionsT &&value)
AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationFeedbackSummary & WithUserId(UserIdT &&value)
RecommendationFeedbackSummary & WithRecommendationId(RecommendationIdT &&value)
AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary()=default
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue