AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
51 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
52 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
54 inline RecommendationFeedbackSummary& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
55 inline RecommendationFeedbackSummary& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
57
59
62 inline const Aws::Vector<Reaction>& GetReactions() const{ return m_reactions; }
63 inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
64 inline void SetReactions(const Aws::Vector<Reaction>& value) { m_reactionsHasBeenSet = true; m_reactions = value; }
65 inline void SetReactions(Aws::Vector<Reaction>&& value) { m_reactionsHasBeenSet = true; m_reactions = std::move(value); }
67 inline RecommendationFeedbackSummary& WithReactions(Aws::Vector<Reaction>&& value) { SetReactions(std::move(value)); return *this;}
68 inline RecommendationFeedbackSummary& AddReactions(const Reaction& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
69 inline RecommendationFeedbackSummary& AddReactions(Reaction&& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(std::move(value)); return *this; }
71
73
81 inline const Aws::String& GetUserId() const{ return m_userId; }
82 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
83 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
84 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
85 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
86 inline RecommendationFeedbackSummary& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
87 inline RecommendationFeedbackSummary& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
88 inline RecommendationFeedbackSummary& WithUserId(const char* value) { SetUserId(value); return *this;}
90 private:
91
92 Aws::String m_recommendationId;
93 bool m_recommendationIdHasBeenSet = false;
94
95 Aws::Vector<Reaction> m_reactions;
96 bool m_reactionsHasBeenSet = false;
97
98 Aws::String m_userId;
99 bool m_userIdHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CodeGuruReviewer
104} // namespace Aws
RecommendationFeedbackSummary & WithUserId(Aws::String &&value)
RecommendationFeedbackSummary & AddReactions(Reaction &&value)
AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationFeedbackSummary & WithUserId(const Aws::String &value)
RecommendationFeedbackSummary & AddReactions(const Reaction &value)
RecommendationFeedbackSummary & WithRecommendationId(Aws::String &&value)
RecommendationFeedbackSummary & WithRecommendationId(const Aws::String &value)
RecommendationFeedbackSummary & WithUserId(const char *value)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationFeedbackSummary & WithReactions(const Aws::Vector< Reaction > &value)
AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary(Aws::Utils::Json::JsonView jsonValue)
RecommendationFeedbackSummary & WithReactions(Aws::Vector< Reaction > &&value)
RecommendationFeedbackSummary & WithRecommendationId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue