AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CommentIdT = Aws::String>
50 void SetCommentId(CommentIdT&& value) { m_commentIdHasBeenSet = true; m_commentId = std::forward<CommentIdT>(value); }
51 template<typename CommentIdT = Aws::String>
52 Comment& WithCommentId(CommentIdT&& value) { SetCommentId(std::forward<CommentIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetContent() const { return m_content; }
60 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
61 template<typename ContentT = Aws::String>
62 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
63 template<typename ContentT = Aws::String>
64 Comment& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
66
68
71 inline const Aws::String& GetInReplyTo() const { return m_inReplyTo; }
72 inline bool InReplyToHasBeenSet() const { return m_inReplyToHasBeenSet; }
73 template<typename InReplyToT = Aws::String>
74 void SetInReplyTo(InReplyToT&& value) { m_inReplyToHasBeenSet = true; m_inReplyTo = std::forward<InReplyToT>(value); }
75 template<typename InReplyToT = Aws::String>
76 Comment& WithInReplyTo(InReplyToT&& value) { SetInReplyTo(std::forward<InReplyToT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
84 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
85 template<typename CreationDateT = Aws::Utils::DateTime>
86 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
87 template<typename CreationDateT = Aws::Utils::DateTime>
88 Comment& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
90
92
96 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
97 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
98 template<typename LastModifiedDateT = Aws::Utils::DateTime>
99 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
100 template<typename LastModifiedDateT = Aws::Utils::DateTime>
101 Comment& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
103
105
108 inline const Aws::String& GetAuthorArn() const { return m_authorArn; }
109 inline bool AuthorArnHasBeenSet() const { return m_authorArnHasBeenSet; }
110 template<typename AuthorArnT = Aws::String>
111 void SetAuthorArn(AuthorArnT&& value) { m_authorArnHasBeenSet = true; m_authorArn = std::forward<AuthorArnT>(value); }
112 template<typename AuthorArnT = Aws::String>
113 Comment& WithAuthorArn(AuthorArnT&& value) { SetAuthorArn(std::forward<AuthorArnT>(value)); return *this;}
115
117
120 inline bool GetDeleted() const { return m_deleted; }
121 inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
122 inline void SetDeleted(bool value) { m_deletedHasBeenSet = true; m_deleted = value; }
123 inline Comment& WithDeleted(bool value) { SetDeleted(value); return *this;}
125
127
133 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
134 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
135 template<typename ClientRequestTokenT = Aws::String>
136 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
137 template<typename ClientRequestTokenT = Aws::String>
138 Comment& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
140
142
146 inline const Aws::Vector<Aws::String>& GetCallerReactions() const { return m_callerReactions; }
147 inline bool CallerReactionsHasBeenSet() const { return m_callerReactionsHasBeenSet; }
148 template<typename CallerReactionsT = Aws::Vector<Aws::String>>
149 void SetCallerReactions(CallerReactionsT&& value) { m_callerReactionsHasBeenSet = true; m_callerReactions = std::forward<CallerReactionsT>(value); }
150 template<typename CallerReactionsT = Aws::Vector<Aws::String>>
151 Comment& WithCallerReactions(CallerReactionsT&& value) { SetCallerReactions(std::forward<CallerReactionsT>(value)); return *this;}
152 template<typename CallerReactionsT = Aws::String>
153 Comment& AddCallerReactions(CallerReactionsT&& value) { m_callerReactionsHasBeenSet = true; m_callerReactions.emplace_back(std::forward<CallerReactionsT>(value)); return *this; }
155
157
161 inline const Aws::Map<Aws::String, int>& GetReactionCounts() const { return m_reactionCounts; }
162 inline bool ReactionCountsHasBeenSet() const { return m_reactionCountsHasBeenSet; }
163 template<typename ReactionCountsT = Aws::Map<Aws::String, int>>
164 void SetReactionCounts(ReactionCountsT&& value) { m_reactionCountsHasBeenSet = true; m_reactionCounts = std::forward<ReactionCountsT>(value); }
165 template<typename ReactionCountsT = Aws::Map<Aws::String, int>>
166 Comment& WithReactionCounts(ReactionCountsT&& value) { SetReactionCounts(std::forward<ReactionCountsT>(value)); return *this;}
167 inline Comment& AddReactionCounts(Aws::String key, int value) {
168 m_reactionCountsHasBeenSet = true; m_reactionCounts.emplace(key, value); return *this;
169 }
171 private:
172
173 Aws::String m_commentId;
174 bool m_commentIdHasBeenSet = false;
175
176 Aws::String m_content;
177 bool m_contentHasBeenSet = false;
178
179 Aws::String m_inReplyTo;
180 bool m_inReplyToHasBeenSet = false;
181
182 Aws::Utils::DateTime m_creationDate{};
183 bool m_creationDateHasBeenSet = false;
184
185 Aws::Utils::DateTime m_lastModifiedDate{};
186 bool m_lastModifiedDateHasBeenSet = false;
187
188 Aws::String m_authorArn;
189 bool m_authorArnHasBeenSet = false;
190
191 bool m_deleted{false};
192 bool m_deletedHasBeenSet = false;
193
194 Aws::String m_clientRequestToken;
195 bool m_clientRequestTokenHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_callerReactions;
198 bool m_callerReactionsHasBeenSet = false;
199
200 Aws::Map<Aws::String, int> m_reactionCounts;
201 bool m_reactionCountsHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace CodeCommit
206} // namespace Aws
bool CreationDateHasBeenSet() const
Definition Comment.h:84
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCommentId() const
Definition Comment.h:47
bool LastModifiedDateHasBeenSet() const
Definition Comment.h:97
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition Comment.h:96
AWS_CODECOMMIT_API Comment()=default
Comment & WithContent(ContentT &&value)
Definition Comment.h:64
void SetAuthorArn(AuthorArnT &&value)
Definition Comment.h:111
void SetReactionCounts(ReactionCountsT &&value)
Definition Comment.h:164
void SetLastModifiedDate(LastModifiedDateT &&value)
Definition Comment.h:99
Comment & AddReactionCounts(Aws::String key, int value)
Definition Comment.h:167
AWS_CODECOMMIT_API Comment(Aws::Utils::Json::JsonView jsonValue)
void SetInReplyTo(InReplyToT &&value)
Definition Comment.h:74
Comment & WithInReplyTo(InReplyToT &&value)
Definition Comment.h:76
const Aws::Vector< Aws::String > & GetCallerReactions() const
Definition Comment.h:146
const Aws::Map< Aws::String, int > & GetReactionCounts() const
Definition Comment.h:161
Comment & WithClientRequestToken(ClientRequestTokenT &&value)
Definition Comment.h:138
const Aws::String & GetInReplyTo() const
Definition Comment.h:71
const Aws::String & GetClientRequestToken() const
Definition Comment.h:133
Comment & AddCallerReactions(CallerReactionsT &&value)
Definition Comment.h:153
bool CallerReactionsHasBeenSet() const
Definition Comment.h:147
const Aws::String & GetAuthorArn() const
Definition Comment.h:108
Comment & WithCommentId(CommentIdT &&value)
Definition Comment.h:52
void SetCallerReactions(CallerReactionsT &&value)
Definition Comment.h:149
bool CommentIdHasBeenSet() const
Definition Comment.h:48
const Aws::String & GetContent() const
Definition Comment.h:59
Comment & WithDeleted(bool value)
Definition Comment.h:123
Comment & WithCreationDate(CreationDateT &&value)
Definition Comment.h:88
Comment & WithReactionCounts(ReactionCountsT &&value)
Definition Comment.h:166
void SetContent(ContentT &&value)
Definition Comment.h:62
Comment & WithCallerReactions(CallerReactionsT &&value)
Definition Comment.h:151
bool InReplyToHasBeenSet() const
Definition Comment.h:72
void SetCreationDate(CreationDateT &&value)
Definition Comment.h:86
void SetClientRequestToken(ClientRequestTokenT &&value)
Definition Comment.h:136
bool ReactionCountsHasBeenSet() const
Definition Comment.h:162
Comment & WithLastModifiedDate(LastModifiedDateT &&value)
Definition Comment.h:101
AWS_CODECOMMIT_API Comment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeleted(bool value)
Definition Comment.h:122
bool ClientRequestTokenHasBeenSet() const
Definition Comment.h:134
void SetCommentId(CommentIdT &&value)
Definition Comment.h:50
Comment & WithAuthorArn(AuthorArnT &&value)
Definition Comment.h:113
const Aws::Utils::DateTime & GetCreationDate() const
Definition Comment.h:83
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