AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecommendationFeedback.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/core/utils/DateTime.h>
11#include <aws/codeguru-reviewer/model/Reaction.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeGuruReviewer
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CODEGURUREVIEWER_API RecommendationFeedback() = default;
38 AWS_CODEGURUREVIEWER_API RecommendationFeedback(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUREVIEWER_API RecommendationFeedback& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetCodeReviewArn() const { return m_codeReviewArn; }
50 inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
51 template<typename CodeReviewArnT = Aws::String>
52 void SetCodeReviewArn(CodeReviewArnT&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::forward<CodeReviewArnT>(value); }
53 template<typename CodeReviewArnT = Aws::String>
54 RecommendationFeedback& WithCodeReviewArn(CodeReviewArnT&& value) { SetCodeReviewArn(std::forward<CodeReviewArnT>(value)); return *this;}
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) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::forward<RecommendationIdT>(value); }
66 template<typename RecommendationIdT = Aws::String>
67 RecommendationFeedback& WithRecommendationId(RecommendationIdT&& value) { SetRecommendationId(std::forward<RecommendationIdT>(value)); return *this;}
69
71
75 inline const Aws::Vector<Reaction>& GetReactions() const { return m_reactions; }
76 inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
77 template<typename ReactionsT = Aws::Vector<Reaction>>
78 void SetReactions(ReactionsT&& value) { m_reactionsHasBeenSet = true; m_reactions = std::forward<ReactionsT>(value); }
79 template<typename ReactionsT = Aws::Vector<Reaction>>
80 RecommendationFeedback& WithReactions(ReactionsT&& value) { SetReactions(std::forward<ReactionsT>(value)); return *this;}
81 inline RecommendationFeedback& AddReactions(Reaction value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
83
85
93 inline const Aws::String& GetUserId() const { return m_userId; }
94 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
95 template<typename UserIdT = Aws::String>
96 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
97 template<typename UserIdT = Aws::String>
98 RecommendationFeedback& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const { return m_createdTimeStamp; }
106 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
107 template<typename CreatedTimeStampT = Aws::Utils::DateTime>
108 void SetCreatedTimeStamp(CreatedTimeStampT&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::forward<CreatedTimeStampT>(value); }
109 template<typename CreatedTimeStampT = Aws::Utils::DateTime>
110 RecommendationFeedback& WithCreatedTimeStamp(CreatedTimeStampT&& value) { SetCreatedTimeStamp(std::forward<CreatedTimeStampT>(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const { return m_lastUpdatedTimeStamp; }
118 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
119 template<typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
120 void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::forward<LastUpdatedTimeStampT>(value); }
121 template<typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
122 RecommendationFeedback& WithLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) { SetLastUpdatedTimeStamp(std::forward<LastUpdatedTimeStampT>(value)); return *this;}
124 private:
125
126 Aws::String m_codeReviewArn;
127 bool m_codeReviewArnHasBeenSet = false;
128
129 Aws::String m_recommendationId;
130 bool m_recommendationIdHasBeenSet = false;
131
132 Aws::Vector<Reaction> m_reactions;
133 bool m_reactionsHasBeenSet = false;
134
135 Aws::String m_userId;
136 bool m_userIdHasBeenSet = false;
137
138 Aws::Utils::DateTime m_createdTimeStamp{};
139 bool m_createdTimeStampHasBeenSet = false;
140
141 Aws::Utils::DateTime m_lastUpdatedTimeStamp{};
142 bool m_lastUpdatedTimeStampHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace CodeGuruReviewer
147} // 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