AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecommendationFeedbackSummary.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codeguru-reviewer/model/Reaction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeGuruReviewer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary() = default;
38 AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
49 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
50 template<typename RecommendationIdT = Aws::String>
51 void SetRecommendationId(RecommendationIdT&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::forward<RecommendationIdT>(value); }
52 template<typename RecommendationIdT = Aws::String>
53 RecommendationFeedbackSummary& WithRecommendationId(RecommendationIdT&& value) { SetRecommendationId(std::forward<RecommendationIdT>(value)); return *this;}
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) { m_reactionsHasBeenSet = true; m_reactions = std::forward<ReactionsT>(value); }
64 template<typename ReactionsT = Aws::Vector<Reaction>>
65 RecommendationFeedbackSummary& WithReactions(ReactionsT&& value) { SetReactions(std::forward<ReactionsT>(value)); return *this;}
66 inline RecommendationFeedbackSummary& AddReactions(Reaction value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
68
70
78 inline const Aws::String& GetUserId() const { return m_userId; }
79 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
80 template<typename UserIdT = Aws::String>
81 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
82 template<typename UserIdT = Aws::String>
83 RecommendationFeedbackSummary& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
85 private:
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 Aws::String m_userId;
94 bool m_userIdHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CodeGuruReviewer
99} // 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