AWS SDK for C++  1.8.152
AWS SDK for C++
Comment.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace CodeCommit
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetCommentId() const{ return m_commentId; }
47 
51  inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
52 
56  inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; }
57 
61  inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); }
62 
66  inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); }
67 
71  inline Comment& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
72 
76  inline Comment& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
77 
81  inline Comment& WithCommentId(const char* value) { SetCommentId(value); return *this;}
82 
83 
87  inline const Aws::String& GetContent() const{ return m_content; }
88 
92  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
93 
97  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
98 
102  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
103 
107  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
108 
112  inline Comment& WithContent(const Aws::String& value) { SetContent(value); return *this;}
113 
117  inline Comment& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
118 
122  inline Comment& WithContent(const char* value) { SetContent(value); return *this;}
123 
124 
128  inline const Aws::String& GetInReplyTo() const{ return m_inReplyTo; }
129 
133  inline bool InReplyToHasBeenSet() const { return m_inReplyToHasBeenSet; }
134 
138  inline void SetInReplyTo(const Aws::String& value) { m_inReplyToHasBeenSet = true; m_inReplyTo = value; }
139 
143  inline void SetInReplyTo(Aws::String&& value) { m_inReplyToHasBeenSet = true; m_inReplyTo = std::move(value); }
144 
148  inline void SetInReplyTo(const char* value) { m_inReplyToHasBeenSet = true; m_inReplyTo.assign(value); }
149 
153  inline Comment& WithInReplyTo(const Aws::String& value) { SetInReplyTo(value); return *this;}
154 
158  inline Comment& WithInReplyTo(Aws::String&& value) { SetInReplyTo(std::move(value)); return *this;}
159 
163  inline Comment& WithInReplyTo(const char* value) { SetInReplyTo(value); return *this;}
164 
165 
169  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
170 
174  inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
175 
179  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
180 
184  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
185 
189  inline Comment& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
190 
194  inline Comment& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
195 
196 
201  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
202 
207  inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
208 
213  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
214 
219  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
220 
225  inline Comment& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
226 
231  inline Comment& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
232 
233 
237  inline const Aws::String& GetAuthorArn() const{ return m_authorArn; }
238 
242  inline bool AuthorArnHasBeenSet() const { return m_authorArnHasBeenSet; }
243 
247  inline void SetAuthorArn(const Aws::String& value) { m_authorArnHasBeenSet = true; m_authorArn = value; }
248 
252  inline void SetAuthorArn(Aws::String&& value) { m_authorArnHasBeenSet = true; m_authorArn = std::move(value); }
253 
257  inline void SetAuthorArn(const char* value) { m_authorArnHasBeenSet = true; m_authorArn.assign(value); }
258 
262  inline Comment& WithAuthorArn(const Aws::String& value) { SetAuthorArn(value); return *this;}
263 
267  inline Comment& WithAuthorArn(Aws::String&& value) { SetAuthorArn(std::move(value)); return *this;}
268 
272  inline Comment& WithAuthorArn(const char* value) { SetAuthorArn(value); return *this;}
273 
274 
278  inline bool GetDeleted() const{ return m_deleted; }
279 
283  inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
284 
288  inline void SetDeleted(bool value) { m_deletedHasBeenSet = true; m_deleted = value; }
289 
293  inline Comment& WithDeleted(bool value) { SetDeleted(value); return *this;}
294 
295 
302  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
303 
310  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
311 
318  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
319 
326  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
327 
334  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
335 
342  inline Comment& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
343 
350  inline Comment& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
351 
358  inline Comment& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
359 
360 
365  inline const Aws::Vector<Aws::String>& GetCallerReactions() const{ return m_callerReactions; }
366 
371  inline bool CallerReactionsHasBeenSet() const { return m_callerReactionsHasBeenSet; }
372 
377  inline void SetCallerReactions(const Aws::Vector<Aws::String>& value) { m_callerReactionsHasBeenSet = true; m_callerReactions = value; }
378 
383  inline void SetCallerReactions(Aws::Vector<Aws::String>&& value) { m_callerReactionsHasBeenSet = true; m_callerReactions = std::move(value); }
384 
389  inline Comment& WithCallerReactions(const Aws::Vector<Aws::String>& value) { SetCallerReactions(value); return *this;}
390 
395  inline Comment& WithCallerReactions(Aws::Vector<Aws::String>&& value) { SetCallerReactions(std::move(value)); return *this;}
396 
401  inline Comment& AddCallerReactions(const Aws::String& value) { m_callerReactionsHasBeenSet = true; m_callerReactions.push_back(value); return *this; }
402 
407  inline Comment& AddCallerReactions(Aws::String&& value) { m_callerReactionsHasBeenSet = true; m_callerReactions.push_back(std::move(value)); return *this; }
408 
413  inline Comment& AddCallerReactions(const char* value) { m_callerReactionsHasBeenSet = true; m_callerReactions.push_back(value); return *this; }
414 
415 
420  inline const Aws::Map<Aws::String, int>& GetReactionCounts() const{ return m_reactionCounts; }
421 
426  inline bool ReactionCountsHasBeenSet() const { return m_reactionCountsHasBeenSet; }
427 
432  inline void SetReactionCounts(const Aws::Map<Aws::String, int>& value) { m_reactionCountsHasBeenSet = true; m_reactionCounts = value; }
433 
438  inline void SetReactionCounts(Aws::Map<Aws::String, int>&& value) { m_reactionCountsHasBeenSet = true; m_reactionCounts = std::move(value); }
439 
444  inline Comment& WithReactionCounts(const Aws::Map<Aws::String, int>& value) { SetReactionCounts(value); return *this;}
445 
450  inline Comment& WithReactionCounts(Aws::Map<Aws::String, int>&& value) { SetReactionCounts(std::move(value)); return *this;}
451 
456  inline Comment& AddReactionCounts(const Aws::String& key, int value) { m_reactionCountsHasBeenSet = true; m_reactionCounts.emplace(key, value); return *this; }
457 
462  inline Comment& AddReactionCounts(Aws::String&& key, int value) { m_reactionCountsHasBeenSet = true; m_reactionCounts.emplace(std::move(key), value); return *this; }
463 
468  inline Comment& AddReactionCounts(const char* key, int value) { m_reactionCountsHasBeenSet = true; m_reactionCounts.emplace(key, value); return *this; }
469 
470  private:
471 
472  Aws::String m_commentId;
473  bool m_commentIdHasBeenSet;
474 
475  Aws::String m_content;
476  bool m_contentHasBeenSet;
477 
478  Aws::String m_inReplyTo;
479  bool m_inReplyToHasBeenSet;
480 
481  Aws::Utils::DateTime m_creationDate;
482  bool m_creationDateHasBeenSet;
483 
484  Aws::Utils::DateTime m_lastModifiedDate;
485  bool m_lastModifiedDateHasBeenSet;
486 
487  Aws::String m_authorArn;
488  bool m_authorArnHasBeenSet;
489 
490  bool m_deleted;
491  bool m_deletedHasBeenSet;
492 
493  Aws::String m_clientRequestToken;
494  bool m_clientRequestTokenHasBeenSet;
495 
496  Aws::Vector<Aws::String> m_callerReactions;
497  bool m_callerReactionsHasBeenSet;
498 
499  Aws::Map<Aws::String, int> m_reactionCounts;
500  bool m_reactionCountsHasBeenSet;
501  };
502 
503 } // namespace Model
504 } // namespace CodeCommit
505 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CodeCommit::Model::Comment::SetAuthorArn
void SetAuthorArn(Aws::String &&value)
Definition: Comment.h:252
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::Comment::SetInReplyTo
void SetInReplyTo(const char *value)
Definition: Comment.h:148
Aws::CodeCommit::Model::Comment::WithCallerReactions
Comment & WithCallerReactions(const Aws::Vector< Aws::String > &value)
Definition: Comment.h:389
Aws::CodeCommit::Model::Comment::SetReactionCounts
void SetReactionCounts(Aws::Map< Aws::String, int > &&value)
Definition: Comment.h:438
Aws::CodeCommit::Model::Comment::GetDeleted
bool GetDeleted() const
Definition: Comment.h:278
Aws::CodeCommit::Model::Comment::ReactionCountsHasBeenSet
bool ReactionCountsHasBeenSet() const
Definition: Comment.h:426
Aws::CodeCommit::Model::Comment::SetAuthorArn
void SetAuthorArn(const char *value)
Definition: Comment.h:257
Aws::CodeCommit::Model::Comment::WithInReplyTo
Comment & WithInReplyTo(Aws::String &&value)
Definition: Comment.h:158
Aws::CodeCommit::Model::Comment::WithCommentId
Comment & WithCommentId(const char *value)
Definition: Comment.h:81
Aws::CodeCommit::Model::Comment::SetContent
void SetContent(const char *value)
Definition: Comment.h:107
Aws::CodeCommit::Model::Comment
Definition: Comment.h:35
DateTime.h
Aws::CodeCommit::Model::Comment::WithCommentId
Comment & WithCommentId(const Aws::String &value)
Definition: Comment.h:71
Aws::CodeCommit::Model::Comment::SetContent
void SetContent(const Aws::String &value)
Definition: Comment.h:97
Aws::CodeCommit::Model::Comment::AddReactionCounts
Comment & AddReactionCounts(const Aws::String &key, int value)
Definition: Comment.h:456
Aws::CodeCommit::Model::Comment::operator=
Comment & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::Comment::Comment
Comment()
Aws::CodeCommit::Model::Comment::AddCallerReactions
Comment & AddCallerReactions(const char *value)
Definition: Comment.h:413
Aws::CodeCommit::Model::Comment::WithContent
Comment & WithContent(const Aws::String &value)
Definition: Comment.h:112
Aws::CodeCommit::Model::Comment::GetInReplyTo
const Aws::String & GetInReplyTo() const
Definition: Comment.h:128
Aws::CodeCommit::Model::Comment::GetAuthorArn
const Aws::String & GetAuthorArn() const
Definition: Comment.h:237
Aws::CodeCommit::Model::Comment::WithContent
Comment & WithContent(const char *value)
Definition: Comment.h:122
Aws::CodeCommit::Model::Comment::SetContent
void SetContent(Aws::String &&value)
Definition: Comment.h:102
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::Comment::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: Comment.h:326
AWSVector.h
Aws::CodeCommit::Model::Comment::SetCallerReactions
void SetCallerReactions(const Aws::Vector< Aws::String > &value)
Definition: Comment.h:377
Aws::CodeCommit::Model::Comment::SetCommentId
void SetCommentId(const Aws::String &value)
Definition: Comment.h:56
Aws::CodeCommit::Model::Comment::WithCreationDate
Comment & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: Comment.h:189
Aws::CodeCommit::Model::Comment::SetInReplyTo
void SetInReplyTo(Aws::String &&value)
Definition: Comment.h:143
Aws::CodeCommit::Model::Comment::WithAuthorArn
Comment & WithAuthorArn(const Aws::String &value)
Definition: Comment.h:262
Aws::CodeCommit::Model::Comment::InReplyToHasBeenSet
bool InReplyToHasBeenSet() const
Definition: Comment.h:133
Aws::CodeCommit::Model::Comment::WithContent
Comment & WithContent(Aws::String &&value)
Definition: Comment.h:117
Aws::CodeCommit::Model::Comment::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::Comment::WithLastModifiedDate
Comment & WithLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: Comment.h:225
Aws::CodeCommit::Model::Comment::WithReactionCounts
Comment & WithReactionCounts(const Aws::Map< Aws::String, int > &value)
Definition: Comment.h:444
Aws::CodeCommit::Model::Comment::GetLastModifiedDate
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition: Comment.h:201
Aws::CodeCommit::Model::Comment::WithCallerReactions
Comment & WithCallerReactions(Aws::Vector< Aws::String > &&value)
Definition: Comment.h:395
Aws::CodeCommit::Model::Comment::WithCommentId
Comment & WithCommentId(Aws::String &&value)
Definition: Comment.h:76
Aws::CodeCommit::Model::Comment::WithClientRequestToken
Comment & WithClientRequestToken(const char *value)
Definition: Comment.h:358
Aws::CodeCommit::Model::Comment::WithCreationDate
Comment & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: Comment.h:194
Aws::CodeCommit::Model::Comment::SetLastModifiedDate
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: Comment.h:219
Aws::CodeCommit::Model::Comment::DeletedHasBeenSet
bool DeletedHasBeenSet() const
Definition: Comment.h:283
Aws::CodeCommit::Model::Comment::CallerReactionsHasBeenSet
bool CallerReactionsHasBeenSet() const
Definition: Comment.h:371
Aws::CodeCommit::Model::Comment::AuthorArnHasBeenSet
bool AuthorArnHasBeenSet() const
Definition: Comment.h:242
Aws::CodeCommit::Model::Comment::WithAuthorArn
Comment & WithAuthorArn(const char *value)
Definition: Comment.h:272
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::Comment::GetCallerReactions
const Aws::Vector< Aws::String > & GetCallerReactions() const
Definition: Comment.h:365
Aws::CodeCommit::Model::Comment::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: Comment.h:302
Aws::CodeCommit::Model::Comment::SetReactionCounts
void SetReactionCounts(const Aws::Map< Aws::String, int > &value)
Definition: Comment.h:432
Aws::CodeCommit::Model::Comment::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: Comment.h:92
Aws::CodeCommit::Model::Comment::SetCallerReactions
void SetCallerReactions(Aws::Vector< Aws::String > &&value)
Definition: Comment.h:383
Aws::CodeCommit::Model::Comment::WithAuthorArn
Comment & WithAuthorArn(Aws::String &&value)
Definition: Comment.h:267
Aws::CodeCommit::Model::Comment::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: Comment.h:334
Aws::CodeCommit::Model::Comment::SetAuthorArn
void SetAuthorArn(const Aws::String &value)
Definition: Comment.h:247
Aws::CodeCommit::Model::Comment::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: Comment.h:169
Aws::CodeCommit::Model::Comment::WithDeleted
Comment & WithDeleted(bool value)
Definition: Comment.h:293
Aws::CodeCommit::Model::Comment::SetDeleted
void SetDeleted(bool value)
Definition: Comment.h:288
Aws::CodeCommit::Model::Comment::WithLastModifiedDate
Comment & WithLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: Comment.h:231
Aws::CodeCommit::Model::Comment::WithReactionCounts
Comment & WithReactionCounts(Aws::Map< Aws::String, int > &&value)
Definition: Comment.h:450
Aws::CodeCommit::Model::Comment::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: Comment.h:179
Aws::CodeCommit::Model::Comment::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: Comment.h:310
Aws::CodeCommit::Model::Comment::GetCommentId
const Aws::String & GetCommentId() const
Definition: Comment.h:46
Aws::CodeCommit::Model::Comment::SetCommentId
void SetCommentId(const char *value)
Definition: Comment.h:66
Aws::CodeCommit::Model::Comment::LastModifiedDateHasBeenSet
bool LastModifiedDateHasBeenSet() const
Definition: Comment.h:207
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::Comment::WithInReplyTo
Comment & WithInReplyTo(const Aws::String &value)
Definition: Comment.h:153
Aws::CodeCommit::Model::Comment::WithClientRequestToken
Comment & WithClientRequestToken(Aws::String &&value)
Definition: Comment.h:350
Aws::CodeCommit::Model::Comment::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: Comment.h:318
Aws::CodeCommit::Model::Comment::GetContent
const Aws::String & GetContent() const
Definition: Comment.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::Comment::WithInReplyTo
Comment & WithInReplyTo(const char *value)
Definition: Comment.h:163
Aws::CodeCommit::Model::Comment::AddReactionCounts
Comment & AddReactionCounts(const char *key, int value)
Definition: Comment.h:468
Aws::CodeCommit::Model::Comment::AddReactionCounts
Comment & AddReactionCounts(Aws::String &&key, int value)
Definition: Comment.h:462
Aws::CodeCommit::Model::Comment::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: Comment.h:184
Aws::CodeCommit::Model::Comment::WithClientRequestToken
Comment & WithClientRequestToken(const Aws::String &value)
Definition: Comment.h:342
Aws::CodeCommit::Model::Comment::AddCallerReactions
Comment & AddCallerReactions(const Aws::String &value)
Definition: Comment.h:401
AWSMap.h
Aws::CodeCommit::Model::Comment::GetReactionCounts
const Aws::Map< Aws::String, int > & GetReactionCounts() const
Definition: Comment.h:420
Aws::CodeCommit::Model::Comment::AddCallerReactions
Comment & AddCallerReactions(Aws::String &&value)
Definition: Comment.h:407
Aws::CodeCommit::Model::Comment::Comment
Comment(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::Comment::CommentIdHasBeenSet
bool CommentIdHasBeenSet() const
Definition: Comment.h:51
Aws::CodeCommit::Model::Comment::SetCommentId
void SetCommentId(Aws::String &&value)
Definition: Comment.h:61
Aws::CodeCommit::Model::Comment::SetLastModifiedDate
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: Comment.h:213
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::CodeCommit::Model::Comment::CreationDateHasBeenSet
bool CreationDateHasBeenSet() const
Definition: Comment.h:174
Aws::CodeCommit::Model::Comment::SetInReplyTo
void SetInReplyTo(const Aws::String &value)
Definition: Comment.h:138