AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
52 inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
53 inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
54 inline RecommendationFeedback& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
55 inline RecommendationFeedback& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
56 inline RecommendationFeedback& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
58
60
64 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
65 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
66 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
67 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
68 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
69 inline RecommendationFeedback& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
70 inline RecommendationFeedback& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
71 inline RecommendationFeedback& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
73
75
79 inline const Aws::Vector<Reaction>& GetReactions() const{ return m_reactions; }
80 inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
81 inline void SetReactions(const Aws::Vector<Reaction>& value) { m_reactionsHasBeenSet = true; m_reactions = value; }
82 inline void SetReactions(Aws::Vector<Reaction>&& value) { m_reactionsHasBeenSet = true; m_reactions = std::move(value); }
83 inline RecommendationFeedback& WithReactions(const Aws::Vector<Reaction>& value) { SetReactions(value); return *this;}
84 inline RecommendationFeedback& WithReactions(Aws::Vector<Reaction>&& value) { SetReactions(std::move(value)); return *this;}
85 inline RecommendationFeedback& AddReactions(const Reaction& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
86 inline RecommendationFeedback& AddReactions(Reaction&& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(std::move(value)); return *this; }
88
90
98 inline const Aws::String& GetUserId() const{ return m_userId; }
99 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
100 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
101 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
102 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
103 inline RecommendationFeedback& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
104 inline RecommendationFeedback& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
105 inline RecommendationFeedback& WithUserId(const char* value) { SetUserId(value); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; }
113 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
114 inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; }
115 inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); }
117 inline RecommendationFeedback& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; }
125 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
126 inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; }
127 inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); }
131 private:
132
133 Aws::String m_codeReviewArn;
134 bool m_codeReviewArnHasBeenSet = false;
135
136 Aws::String m_recommendationId;
137 bool m_recommendationIdHasBeenSet = false;
138
139 Aws::Vector<Reaction> m_reactions;
140 bool m_reactionsHasBeenSet = false;
141
142 Aws::String m_userId;
143 bool m_userIdHasBeenSet = false;
144
145 Aws::Utils::DateTime m_createdTimeStamp;
146 bool m_createdTimeStampHasBeenSet = false;
147
148 Aws::Utils::DateTime m_lastUpdatedTimeStamp;
149 bool m_lastUpdatedTimeStampHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace CodeGuruReviewer
154} // namespace Aws
RecommendationFeedback & WithCreatedTimeStamp(const Aws::Utils::DateTime &value)
RecommendationFeedback & WithUserId(const char *value)
void SetReactions(const Aws::Vector< Reaction > &value)
RecommendationFeedback & WithRecommendationId(const char *value)
const Aws::Vector< Reaction > & GetReactions() const
RecommendationFeedback & AddReactions(const Reaction &value)
RecommendationFeedback & WithRecommendationId(const Aws::String &value)
AWS_CODEGURUREVIEWER_API RecommendationFeedback(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime &value)
RecommendationFeedback & WithLastUpdatedTimeStamp(const Aws::Utils::DateTime &value)
RecommendationFeedback & WithCreatedTimeStamp(Aws::Utils::DateTime &&value)
RecommendationFeedback & WithCodeReviewArn(const Aws::String &value)
RecommendationFeedback & WithUserId(const Aws::String &value)
RecommendationFeedback & WithLastUpdatedTimeStamp(Aws::Utils::DateTime &&value)
RecommendationFeedback & WithRecommendationId(Aws::String &&value)
AWS_CODEGURUREVIEWER_API RecommendationFeedback & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationFeedback & WithReactions(const Aws::Vector< Reaction > &value)
void SetCreatedTimeStamp(const Aws::Utils::DateTime &value)
RecommendationFeedback & WithReactions(Aws::Vector< Reaction > &&value)
RecommendationFeedback & WithCodeReviewArn(Aws::String &&value)
RecommendationFeedback & WithUserId(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimeStamp() const
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationFeedback & AddReactions(Reaction &&value)
RecommendationFeedback & WithCodeReviewArn(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