AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
RecommendationFeedback.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/DateTime.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 Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeGuruReviewer {
23namespace Model {
24
31 public:
32 AWS_CODEGURUREVIEWER_API RecommendationFeedback() = default;
33 AWS_CODEGURUREVIEWER_API RecommendationFeedback(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEGURUREVIEWER_API RecommendationFeedback& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
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) {
47 m_codeReviewArnHasBeenSet = true;
48 m_codeReviewArn = std::forward<CodeReviewArnT>(value);
49 }
50 template <typename CodeReviewArnT = Aws::String>
51 RecommendationFeedback& WithCodeReviewArn(CodeReviewArnT&& value) {
52 SetCodeReviewArn(std::forward<CodeReviewArnT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
63 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
64 template <typename RecommendationIdT = Aws::String>
65 void SetRecommendationId(RecommendationIdT&& value) {
66 m_recommendationIdHasBeenSet = true;
67 m_recommendationId = std::forward<RecommendationIdT>(value);
68 }
69 template <typename RecommendationIdT = Aws::String>
70 RecommendationFeedback& WithRecommendationId(RecommendationIdT&& value) {
71 SetRecommendationId(std::forward<RecommendationIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<Reaction>& GetReactions() const { return m_reactions; }
82 inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
83 template <typename ReactionsT = Aws::Vector<Reaction>>
84 void SetReactions(ReactionsT&& value) {
85 m_reactionsHasBeenSet = true;
86 m_reactions = std::forward<ReactionsT>(value);
87 }
88 template <typename ReactionsT = Aws::Vector<Reaction>>
90 SetReactions(std::forward<ReactionsT>(value));
91 return *this;
92 }
94 m_reactionsHasBeenSet = true;
95 m_reactions.push_back(value);
96 return *this;
97 }
99
101
109 inline const Aws::String& GetUserId() const { return m_userId; }
110 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
111 template <typename UserIdT = Aws::String>
112 void SetUserId(UserIdT&& value) {
113 m_userIdHasBeenSet = true;
114 m_userId = std::forward<UserIdT>(value);
115 }
116 template <typename UserIdT = Aws::String>
118 SetUserId(std::forward<UserIdT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const { return m_createdTimeStamp; }
128 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
129 template <typename CreatedTimeStampT = Aws::Utils::DateTime>
130 void SetCreatedTimeStamp(CreatedTimeStampT&& value) {
131 m_createdTimeStampHasBeenSet = true;
132 m_createdTimeStamp = std::forward<CreatedTimeStampT>(value);
133 }
134 template <typename CreatedTimeStampT = Aws::Utils::DateTime>
135 RecommendationFeedback& WithCreatedTimeStamp(CreatedTimeStampT&& value) {
136 SetCreatedTimeStamp(std::forward<CreatedTimeStampT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const { return m_lastUpdatedTimeStamp; }
146 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
147 template <typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
148 void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) {
149 m_lastUpdatedTimeStampHasBeenSet = true;
150 m_lastUpdatedTimeStamp = std::forward<LastUpdatedTimeStampT>(value);
151 }
152 template <typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
153 RecommendationFeedback& WithLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) {
154 SetLastUpdatedTimeStamp(std::forward<LastUpdatedTimeStampT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_codeReviewArn;
160
161 Aws::String m_recommendationId;
162
163 Aws::Vector<Reaction> m_reactions;
164
165 Aws::String m_userId;
166
167 Aws::Utils::DateTime m_createdTimeStamp{};
168
169 Aws::Utils::DateTime m_lastUpdatedTimeStamp{};
170 bool m_codeReviewArnHasBeenSet = false;
171 bool m_recommendationIdHasBeenSet = false;
172 bool m_reactionsHasBeenSet = false;
173 bool m_userIdHasBeenSet = false;
174 bool m_createdTimeStampHasBeenSet = false;
175 bool m_lastUpdatedTimeStampHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace CodeGuruReviewer
180} // namespace Aws
AWS_CODEGURUREVIEWER_API RecommendationFeedback()=default
RecommendationFeedback & WithCreatedTimeStamp(CreatedTimeStampT &&value)
const Aws::Vector< Reaction > & GetReactions() const
RecommendationFeedback & WithCodeReviewArn(CodeReviewArnT &&value)
RecommendationFeedback & WithUserId(UserIdT &&value)
RecommendationFeedback & WithReactions(ReactionsT &&value)
RecommendationFeedback & WithRecommendationId(RecommendationIdT &&value)
AWS_CODEGURUREVIEWER_API RecommendationFeedback(Aws::Utils::Json::JsonView jsonValue)
RecommendationFeedback & WithLastUpdatedTimeStamp(LastUpdatedTimeStampT &&value)
void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT &&value)
RecommendationFeedback & AddReactions(Reaction value)
AWS_CODEGURUREVIEWER_API RecommendationFeedback & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedTimeStamp() const
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue