AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Comment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workdocs/WorkDocs_EXPORTS.h>
10#include <aws/workdocs/model/CommentStatusType.h>
11#include <aws/workdocs/model/CommentVisibilityType.h>
12#include <aws/workdocs/model/User.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkDocs {
24namespace Model {
25
31class Comment {
32 public:
33 AWS_WORKDOCS_API Comment() = default;
34 AWS_WORKDOCS_API Comment(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WORKDOCS_API Comment& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCommentId() const { return m_commentId; }
43 inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
44 template <typename CommentIdT = Aws::String>
45 void SetCommentId(CommentIdT&& value) {
46 m_commentIdHasBeenSet = true;
47 m_commentId = std::forward<CommentIdT>(value);
48 }
49 template <typename CommentIdT = Aws::String>
50 Comment& WithCommentId(CommentIdT&& value) {
51 SetCommentId(std::forward<CommentIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetParentId() const { return m_parentId; }
61 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
62 template <typename ParentIdT = Aws::String>
63 void SetParentId(ParentIdT&& value) {
64 m_parentIdHasBeenSet = true;
65 m_parentId = std::forward<ParentIdT>(value);
66 }
67 template <typename ParentIdT = Aws::String>
68 Comment& WithParentId(ParentIdT&& value) {
69 SetParentId(std::forward<ParentIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetThreadId() const { return m_threadId; }
79 inline bool ThreadIdHasBeenSet() const { return m_threadIdHasBeenSet; }
80 template <typename ThreadIdT = Aws::String>
81 void SetThreadId(ThreadIdT&& value) {
82 m_threadIdHasBeenSet = true;
83 m_threadId = std::forward<ThreadIdT>(value);
84 }
85 template <typename ThreadIdT = Aws::String>
86 Comment& WithThreadId(ThreadIdT&& value) {
87 SetThreadId(std::forward<ThreadIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetText() const { return m_text; }
97 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
98 template <typename TextT = Aws::String>
99 void SetText(TextT&& value) {
100 m_textHasBeenSet = true;
101 m_text = std::forward<TextT>(value);
102 }
103 template <typename TextT = Aws::String>
104 Comment& WithText(TextT&& value) {
105 SetText(std::forward<TextT>(value));
106 return *this;
107 }
109
111
114 inline const User& GetContributor() const { return m_contributor; }
115 inline bool ContributorHasBeenSet() const { return m_contributorHasBeenSet; }
116 template <typename ContributorT = User>
117 void SetContributor(ContributorT&& value) {
118 m_contributorHasBeenSet = true;
119 m_contributor = std::forward<ContributorT>(value);
120 }
121 template <typename ContributorT = User>
122 Comment& WithContributor(ContributorT&& value) {
123 SetContributor(std::forward<ContributorT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
133 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
134 template <typename CreatedTimestampT = Aws::Utils::DateTime>
135 void SetCreatedTimestamp(CreatedTimestampT&& value) {
136 m_createdTimestampHasBeenSet = true;
137 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
138 }
139 template <typename CreatedTimestampT = Aws::Utils::DateTime>
140 Comment& WithCreatedTimestamp(CreatedTimestampT&& value) {
141 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
142 return *this;
143 }
145
147
150 inline CommentStatusType GetStatus() const { return m_status; }
151 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
152 inline void SetStatus(CommentStatusType value) {
153 m_statusHasBeenSet = true;
154 m_status = value;
155 }
157 SetStatus(value);
158 return *this;
159 }
161
163
169 inline CommentVisibilityType GetVisibility() const { return m_visibility; }
170 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
172 m_visibilityHasBeenSet = true;
173 m_visibility = value;
174 }
176 SetVisibility(value);
177 return *this;
178 }
180
182
186 inline const Aws::String& GetRecipientId() const { return m_recipientId; }
187 inline bool RecipientIdHasBeenSet() const { return m_recipientIdHasBeenSet; }
188 template <typename RecipientIdT = Aws::String>
189 void SetRecipientId(RecipientIdT&& value) {
190 m_recipientIdHasBeenSet = true;
191 m_recipientId = std::forward<RecipientIdT>(value);
192 }
193 template <typename RecipientIdT = Aws::String>
194 Comment& WithRecipientId(RecipientIdT&& value) {
195 SetRecipientId(std::forward<RecipientIdT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_commentId;
201
202 Aws::String m_parentId;
203
204 Aws::String m_threadId;
205
206 Aws::String m_text;
207
208 User m_contributor;
209
210 Aws::Utils::DateTime m_createdTimestamp{};
211
213
215
216 Aws::String m_recipientId;
217 bool m_commentIdHasBeenSet = false;
218 bool m_parentIdHasBeenSet = false;
219 bool m_threadIdHasBeenSet = false;
220 bool m_textHasBeenSet = false;
221 bool m_contributorHasBeenSet = false;
222 bool m_createdTimestampHasBeenSet = false;
223 bool m_statusHasBeenSet = false;
224 bool m_visibilityHasBeenSet = false;
225 bool m_recipientIdHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace WorkDocs
230} // namespace Aws
bool TextHasBeenSet() const
Definition Comment.h:97
void SetThreadId(ThreadIdT &&value)
Definition Comment.h:81
bool RecipientIdHasBeenSet() const
Definition Comment.h:187
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition Comment.h:132
const User & GetContributor() const
Definition Comment.h:114
bool ParentIdHasBeenSet() const
Definition Comment.h:61
const Aws::String & GetRecipientId() const
Definition Comment.h:186
Comment & WithContributor(ContributorT &&value)
Definition Comment.h:122
Comment & WithCommentId(CommentIdT &&value)
Definition Comment.h:50
const Aws::String & GetParentId() const
Definition Comment.h:60
Comment & WithStatus(CommentStatusType value)
Definition Comment.h:156
void SetRecipientId(RecipientIdT &&value)
Definition Comment.h:189
Comment & WithParentId(ParentIdT &&value)
Definition Comment.h:68
AWS_WORKDOCS_API Comment()=default
Comment & WithRecipientId(RecipientIdT &&value)
Definition Comment.h:194
Comment & WithVisibility(CommentVisibilityType value)
Definition Comment.h:175
void SetCommentId(CommentIdT &&value)
Definition Comment.h:45
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition Comment.h:135
bool CreatedTimestampHasBeenSet() const
Definition Comment.h:133
void SetStatus(CommentStatusType value)
Definition Comment.h:152
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
Comment & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition Comment.h:140
const Aws::String & GetThreadId() const
Definition Comment.h:78
void SetText(TextT &&value)
Definition Comment.h:99
bool ThreadIdHasBeenSet() const
Definition Comment.h:79
void SetParentId(ParentIdT &&value)
Definition Comment.h:63
bool VisibilityHasBeenSet() const
Definition Comment.h:170
const Aws::String & GetText() const
Definition Comment.h:96
void SetContributor(ContributorT &&value)
Definition Comment.h:117
Comment & WithText(TextT &&value)
Definition Comment.h:104
CommentVisibilityType GetVisibility() const
Definition Comment.h:169
CommentStatusType GetStatus() const
Definition Comment.h:150
bool ContributorHasBeenSet() const
Definition Comment.h:115
AWS_WORKDOCS_API Comment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVisibility(CommentVisibilityType value)
Definition Comment.h:171
Comment & WithThreadId(ThreadIdT &&value)
Definition Comment.h:86
AWS_WORKDOCS_API Comment(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCommentId() const
Definition Comment.h:42
bool StatusHasBeenSet() const
Definition Comment.h:151
bool CommentIdHasBeenSet() const
Definition Comment.h:43
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue