AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Comment.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.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 CodeCommit
25{
26namespace Model
27{
28
34 class Comment
35 {
36 public:
37 AWS_CODECOMMIT_API Comment();
38 AWS_CODECOMMIT_API Comment(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Comment& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCommentId() const{ return m_commentId; }
48 inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
49 inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; }
50 inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); }
51 inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); }
52 inline Comment& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
53 inline Comment& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
54 inline Comment& WithCommentId(const char* value) { SetCommentId(value); return *this;}
56
58
61 inline const Aws::String& GetContent() const{ return m_content; }
62 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
63 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
64 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
65 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
66 inline Comment& WithContent(const Aws::String& value) { SetContent(value); return *this;}
67 inline Comment& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
68 inline Comment& WithContent(const char* value) { SetContent(value); return *this;}
70
72
75 inline const Aws::String& GetInReplyTo() const{ return m_inReplyTo; }
76 inline bool InReplyToHasBeenSet() const { return m_inReplyToHasBeenSet; }
77 inline void SetInReplyTo(const Aws::String& value) { m_inReplyToHasBeenSet = true; m_inReplyTo = value; }
78 inline void SetInReplyTo(Aws::String&& value) { m_inReplyToHasBeenSet = true; m_inReplyTo = std::move(value); }
79 inline void SetInReplyTo(const char* value) { m_inReplyToHasBeenSet = true; m_inReplyTo.assign(value); }
80 inline Comment& WithInReplyTo(const Aws::String& value) { SetInReplyTo(value); return *this;}
81 inline Comment& WithInReplyTo(Aws::String&& value) { SetInReplyTo(std::move(value)); return *this;}
82 inline Comment& WithInReplyTo(const char* value) { SetInReplyTo(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
90 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
91 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
92 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
93 inline Comment& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
94 inline Comment& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
103 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
104 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
105 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
106 inline Comment& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
107 inline Comment& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
109
111
114 inline const Aws::String& GetAuthorArn() const{ return m_authorArn; }
115 inline bool AuthorArnHasBeenSet() const { return m_authorArnHasBeenSet; }
116 inline void SetAuthorArn(const Aws::String& value) { m_authorArnHasBeenSet = true; m_authorArn = value; }
117 inline void SetAuthorArn(Aws::String&& value) { m_authorArnHasBeenSet = true; m_authorArn = std::move(value); }
118 inline void SetAuthorArn(const char* value) { m_authorArnHasBeenSet = true; m_authorArn.assign(value); }
119 inline Comment& WithAuthorArn(const Aws::String& value) { SetAuthorArn(value); return *this;}
120 inline Comment& WithAuthorArn(Aws::String&& value) { SetAuthorArn(std::move(value)); return *this;}
121 inline Comment& WithAuthorArn(const char* value) { SetAuthorArn(value); return *this;}
123
125
128 inline bool GetDeleted() const{ return m_deleted; }
129 inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
130 inline void SetDeleted(bool value) { m_deletedHasBeenSet = true; m_deleted = value; }
131 inline Comment& WithDeleted(bool value) { SetDeleted(value); return *this;}
133
135
141 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
142 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
143 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
144 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
145 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
146 inline Comment& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
147 inline Comment& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
148 inline Comment& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
150
152
156 inline const Aws::Vector<Aws::String>& GetCallerReactions() const{ return m_callerReactions; }
157 inline bool CallerReactionsHasBeenSet() const { return m_callerReactionsHasBeenSet; }
158 inline void SetCallerReactions(const Aws::Vector<Aws::String>& value) { m_callerReactionsHasBeenSet = true; m_callerReactions = value; }
159 inline void SetCallerReactions(Aws::Vector<Aws::String>&& value) { m_callerReactionsHasBeenSet = true; m_callerReactions = std::move(value); }
160 inline Comment& WithCallerReactions(const Aws::Vector<Aws::String>& value) { SetCallerReactions(value); return *this;}
161 inline Comment& WithCallerReactions(Aws::Vector<Aws::String>&& value) { SetCallerReactions(std::move(value)); return *this;}
162 inline Comment& AddCallerReactions(const Aws::String& value) { m_callerReactionsHasBeenSet = true; m_callerReactions.push_back(value); return *this; }
163 inline Comment& AddCallerReactions(Aws::String&& value) { m_callerReactionsHasBeenSet = true; m_callerReactions.push_back(std::move(value)); return *this; }
164 inline Comment& AddCallerReactions(const char* value) { m_callerReactionsHasBeenSet = true; m_callerReactions.push_back(value); return *this; }
166
168
172 inline const Aws::Map<Aws::String, int>& GetReactionCounts() const{ return m_reactionCounts; }
173 inline bool ReactionCountsHasBeenSet() const { return m_reactionCountsHasBeenSet; }
174 inline void SetReactionCounts(const Aws::Map<Aws::String, int>& value) { m_reactionCountsHasBeenSet = true; m_reactionCounts = value; }
175 inline void SetReactionCounts(Aws::Map<Aws::String, int>&& value) { m_reactionCountsHasBeenSet = true; m_reactionCounts = std::move(value); }
176 inline Comment& WithReactionCounts(const Aws::Map<Aws::String, int>& value) { SetReactionCounts(value); return *this;}
177 inline Comment& WithReactionCounts(Aws::Map<Aws::String, int>&& value) { SetReactionCounts(std::move(value)); return *this;}
178 inline Comment& AddReactionCounts(const Aws::String& key, int value) { m_reactionCountsHasBeenSet = true; m_reactionCounts.emplace(key, value); return *this; }
179 inline Comment& AddReactionCounts(Aws::String&& key, int value) { m_reactionCountsHasBeenSet = true; m_reactionCounts.emplace(std::move(key), value); return *this; }
180 inline Comment& AddReactionCounts(const char* key, int value) { m_reactionCountsHasBeenSet = true; m_reactionCounts.emplace(key, value); return *this; }
182 private:
183
184 Aws::String m_commentId;
185 bool m_commentIdHasBeenSet = false;
186
187 Aws::String m_content;
188 bool m_contentHasBeenSet = false;
189
190 Aws::String m_inReplyTo;
191 bool m_inReplyToHasBeenSet = false;
192
193 Aws::Utils::DateTime m_creationDate;
194 bool m_creationDateHasBeenSet = false;
195
196 Aws::Utils::DateTime m_lastModifiedDate;
197 bool m_lastModifiedDateHasBeenSet = false;
198
199 Aws::String m_authorArn;
200 bool m_authorArnHasBeenSet = false;
201
202 bool m_deleted;
203 bool m_deletedHasBeenSet = false;
204
205 Aws::String m_clientRequestToken;
206 bool m_clientRequestTokenHasBeenSet = false;
207
208 Aws::Vector<Aws::String> m_callerReactions;
209 bool m_callerReactionsHasBeenSet = false;
210
211 Aws::Map<Aws::String, int> m_reactionCounts;
212 bool m_reactionCountsHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace CodeCommit
217} // namespace Aws
bool CreationDateHasBeenSet() const
Definition Comment.h:90
Comment & WithAuthorArn(Aws::String &&value)
Definition Comment.h:120
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCommentId() const
Definition Comment.h:47
void SetClientRequestToken(const Aws::String &value)
Definition Comment.h:143
bool LastModifiedDateHasBeenSet() const
Definition Comment.h:103
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition Comment.h:102
Comment & AddReactionCounts(const Aws::String &key, int value)
Definition Comment.h:178
Comment & WithCommentId(const Aws::String &value)
Definition Comment.h:52
void SetContent(const Aws::String &value)
Definition Comment.h:63
Comment & WithCallerReactions(const Aws::Vector< Aws::String > &value)
Definition Comment.h:160
Comment & WithContent(const char *value)
Definition Comment.h:68
void SetClientRequestToken(const char *value)
Definition Comment.h:145
AWS_CODECOMMIT_API Comment()
AWS_CODECOMMIT_API Comment(Aws::Utils::Json::JsonView jsonValue)
void SetInReplyTo(const char *value)
Definition Comment.h:79
void SetCommentId(const char *value)
Definition Comment.h:51
Comment & WithAuthorArn(const Aws::String &value)
Definition Comment.h:119
Comment & WithCallerReactions(Aws::Vector< Aws::String > &&value)
Definition Comment.h:161
void SetAuthorArn(const char *value)
Definition Comment.h:118
void SetContent(Aws::String &&value)
Definition Comment.h:64
const Aws::Vector< Aws::String > & GetCallerReactions() const
Definition Comment.h:156
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition Comment.h:92
void SetReactionCounts(Aws::Map< Aws::String, int > &&value)
Definition Comment.h:175
const Aws::Map< Aws::String, int > & GetReactionCounts() const
Definition Comment.h:172
void SetReactionCounts(const Aws::Map< Aws::String, int > &value)
Definition Comment.h:174
Comment & WithContent(const Aws::String &value)
Definition Comment.h:66
void SetCommentId(const Aws::String &value)
Definition Comment.h:49
const Aws::String & GetInReplyTo() const
Definition Comment.h:75
void SetCommentId(Aws::String &&value)
Definition Comment.h:50
void SetClientRequestToken(Aws::String &&value)
Definition Comment.h:144
const Aws::String & GetClientRequestToken() const
Definition Comment.h:141
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
Definition Comment.h:104
void SetAuthorArn(Aws::String &&value)
Definition Comment.h:117
void SetAuthorArn(const Aws::String &value)
Definition Comment.h:116
bool CallerReactionsHasBeenSet() const
Definition Comment.h:157
Comment & WithInReplyTo(const Aws::String &value)
Definition Comment.h:80
Comment & WithClientRequestToken(const Aws::String &value)
Definition Comment.h:146
Comment & WithCommentId(const char *value)
Definition Comment.h:54
const Aws::String & GetAuthorArn() const
Definition Comment.h:114
Comment & AddCallerReactions(const Aws::String &value)
Definition Comment.h:162
void SetInReplyTo(Aws::String &&value)
Definition Comment.h:78
Comment & WithClientRequestToken(Aws::String &&value)
Definition Comment.h:147
bool CommentIdHasBeenSet() const
Definition Comment.h:48
const Aws::String & GetContent() const
Definition Comment.h:61
Comment & AddReactionCounts(Aws::String &&key, int value)
Definition Comment.h:179
Comment & WithReactionCounts(Aws::Map< Aws::String, int > &&value)
Definition Comment.h:177
Comment & WithCommentId(Aws::String &&value)
Definition Comment.h:53
Comment & WithDeleted(bool value)
Definition Comment.h:131
Comment & WithCreationDate(const Aws::Utils::DateTime &value)
Definition Comment.h:93
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
Definition Comment.h:105
Comment & AddCallerReactions(const char *value)
Definition Comment.h:164
bool InReplyToHasBeenSet() const
Definition Comment.h:76
void SetInReplyTo(const Aws::String &value)
Definition Comment.h:77
bool ReactionCountsHasBeenSet() const
Definition Comment.h:173
Comment & WithInReplyTo(const char *value)
Definition Comment.h:82
Comment & AddReactionCounts(const char *key, int value)
Definition Comment.h:180
Comment & WithReactionCounts(const Aws::Map< Aws::String, int > &value)
Definition Comment.h:176
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition Comment.h:91
void SetCallerReactions(const Aws::Vector< Aws::String > &value)
Definition Comment.h:158
Comment & WithLastModifiedDate(const Aws::Utils::DateTime &value)
Definition Comment.h:106
AWS_CODECOMMIT_API Comment & operator=(Aws::Utils::Json::JsonView jsonValue)
Comment & WithContent(Aws::String &&value)
Definition Comment.h:67
void SetDeleted(bool value)
Definition Comment.h:130
Comment & WithLastModifiedDate(Aws::Utils::DateTime &&value)
Definition Comment.h:107
Comment & WithClientRequestToken(const char *value)
Definition Comment.h:148
Comment & WithAuthorArn(const char *value)
Definition Comment.h:121
void SetContent(const char *value)
Definition Comment.h:65
bool ClientRequestTokenHasBeenSet() const
Definition Comment.h:142
Comment & WithInReplyTo(Aws::String &&value)
Definition Comment.h:81
const Aws::Utils::DateTime & GetCreationDate() const
Definition Comment.h:89
Comment & WithCreationDate(Aws::Utils::DateTime &&value)
Definition Comment.h:94
Comment & AddCallerReactions(Aws::String &&value)
Definition Comment.h:163
void SetCallerReactions(Aws::Vector< Aws::String > &&value)
Definition Comment.h:159
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue