AWS SDK for C++  1.9.40
AWS SDK for C++
CreateCommentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WorkDocs
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateComment"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
43 
48  inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
49 
54  inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
55 
60  inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
61 
66  inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
67 
72  inline CreateCommentRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
73 
78  inline CreateCommentRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
79 
84  inline CreateCommentRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
85 
86 
90  inline const Aws::String& GetDocumentId() const{ return m_documentId; }
91 
95  inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
96 
100  inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
101 
105  inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
106 
110  inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
111 
115  inline CreateCommentRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
116 
120  inline CreateCommentRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
121 
125  inline CreateCommentRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
126 
127 
131  inline const Aws::String& GetVersionId() const{ return m_versionId; }
132 
136  inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
137 
141  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
142 
146  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
147 
151  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
152 
156  inline CreateCommentRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
157 
161  inline CreateCommentRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
162 
166  inline CreateCommentRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
167 
168 
172  inline const Aws::String& GetParentId() const{ return m_parentId; }
173 
177  inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
178 
182  inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
183 
187  inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
188 
192  inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
193 
197  inline CreateCommentRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
198 
202  inline CreateCommentRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
203 
207  inline CreateCommentRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
208 
209 
213  inline const Aws::String& GetThreadId() const{ return m_threadId; }
214 
218  inline bool ThreadIdHasBeenSet() const { return m_threadIdHasBeenSet; }
219 
223  inline void SetThreadId(const Aws::String& value) { m_threadIdHasBeenSet = true; m_threadId = value; }
224 
228  inline void SetThreadId(Aws::String&& value) { m_threadIdHasBeenSet = true; m_threadId = std::move(value); }
229 
233  inline void SetThreadId(const char* value) { m_threadIdHasBeenSet = true; m_threadId.assign(value); }
234 
238  inline CreateCommentRequest& WithThreadId(const Aws::String& value) { SetThreadId(value); return *this;}
239 
243  inline CreateCommentRequest& WithThreadId(Aws::String&& value) { SetThreadId(std::move(value)); return *this;}
244 
248  inline CreateCommentRequest& WithThreadId(const char* value) { SetThreadId(value); return *this;}
249 
250 
254  inline const Aws::String& GetText() const{ return m_text; }
255 
259  inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
260 
264  inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
265 
269  inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
270 
274  inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
275 
279  inline CreateCommentRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
280 
284  inline CreateCommentRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
285 
289  inline CreateCommentRequest& WithText(const char* value) { SetText(value); return *this;}
290 
291 
298  inline const CommentVisibilityType& GetVisibility() const{ return m_visibility; }
299 
306  inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
307 
314  inline void SetVisibility(const CommentVisibilityType& value) { m_visibilityHasBeenSet = true; m_visibility = value; }
315 
322  inline void SetVisibility(CommentVisibilityType&& value) { m_visibilityHasBeenSet = true; m_visibility = std::move(value); }
323 
330  inline CreateCommentRequest& WithVisibility(const CommentVisibilityType& value) { SetVisibility(value); return *this;}
331 
338  inline CreateCommentRequest& WithVisibility(CommentVisibilityType&& value) { SetVisibility(std::move(value)); return *this;}
339 
340 
345  inline bool GetNotifyCollaborators() const{ return m_notifyCollaborators; }
346 
351  inline bool NotifyCollaboratorsHasBeenSet() const { return m_notifyCollaboratorsHasBeenSet; }
352 
357  inline void SetNotifyCollaborators(bool value) { m_notifyCollaboratorsHasBeenSet = true; m_notifyCollaborators = value; }
358 
363  inline CreateCommentRequest& WithNotifyCollaborators(bool value) { SetNotifyCollaborators(value); return *this;}
364 
365  private:
366 
367  Aws::String m_authenticationToken;
368  bool m_authenticationTokenHasBeenSet;
369 
370  Aws::String m_documentId;
371  bool m_documentIdHasBeenSet;
372 
373  Aws::String m_versionId;
374  bool m_versionIdHasBeenSet;
375 
376  Aws::String m_parentId;
377  bool m_parentIdHasBeenSet;
378 
379  Aws::String m_threadId;
380  bool m_threadIdHasBeenSet;
381 
382  Aws::String m_text;
383  bool m_textHasBeenSet;
384 
385  CommentVisibilityType m_visibility;
386  bool m_visibilityHasBeenSet;
387 
388  bool m_notifyCollaborators;
389  bool m_notifyCollaboratorsHasBeenSet;
390  };
391 
392 } // namespace Model
393 } // namespace WorkDocs
394 } // namespace Aws
Aws::WorkDocs::Model::CreateCommentRequest::WithVersionId
CreateCommentRequest & WithVersionId(Aws::String &&value)
Definition: CreateCommentRequest.h:161
Aws::WorkDocs::Model::CreateCommentRequest::GetNotifyCollaborators
bool GetNotifyCollaborators() const
Definition: CreateCommentRequest.h:345
Aws::WorkDocs::Model::CreateCommentRequest::WithVersionId
CreateCommentRequest & WithVersionId(const Aws::String &value)
Definition: CreateCommentRequest.h:156
Aws::WorkDocs::Model::CommentVisibilityType
CommentVisibilityType
Definition: CommentVisibilityType.h:17
Aws::WorkDocs::Model::CreateCommentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkDocs::Model::CreateCommentRequest::WithParentId
CreateCommentRequest & WithParentId(const char *value)
Definition: CreateCommentRequest.h:207
Aws::WorkDocs::Model::CreateCommentRequest::DocumentIdHasBeenSet
bool DocumentIdHasBeenSet() const
Definition: CreateCommentRequest.h:95
Aws::WorkDocs::Model::CreateCommentRequest::SetVisibility
void SetVisibility(CommentVisibilityType &&value)
Definition: CreateCommentRequest.h:322
Aws::WorkDocs::Model::CreateCommentRequest::ParentIdHasBeenSet
bool ParentIdHasBeenSet() const
Definition: CreateCommentRequest.h:177
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkDocs::Model::CreateCommentRequest::CreateCommentRequest
CreateCommentRequest()
Aws::WorkDocs::WorkDocsRequest
Definition: WorkDocsRequest.h:17
Aws::WorkDocs::Model::CreateCommentRequest::WithDocumentId
CreateCommentRequest & WithDocumentId(const char *value)
Definition: CreateCommentRequest.h:125
Aws::WorkDocs::Model::CreateCommentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkDocs::Model::CreateCommentRequest::SetAuthenticationToken
void SetAuthenticationToken(const Aws::String &value)
Definition: CreateCommentRequest.h:54
Aws::WorkDocs::Model::CreateCommentRequest
Definition: CreateCommentRequest.h:23
Aws::WorkDocs::Model::CreateCommentRequest::SetText
void SetText(const char *value)
Definition: CreateCommentRequest.h:274
Aws::WorkDocs::Model::CreateCommentRequest::SetVisibility
void SetVisibility(const CommentVisibilityType &value)
Definition: CreateCommentRequest.h:314
Aws::WorkDocs::Model::CreateCommentRequest::SetThreadId
void SetThreadId(const char *value)
Definition: CreateCommentRequest.h:233
Aws::WorkDocs::Model::CreateCommentRequest::SetDocumentId
void SetDocumentId(const Aws::String &value)
Definition: CreateCommentRequest.h:100
Aws::WorkDocs::Model::CreateCommentRequest::WithThreadId
CreateCommentRequest & WithThreadId(Aws::String &&value)
Definition: CreateCommentRequest.h:243
Aws::WorkDocs::Model::CreateCommentRequest::GetDocumentId
const Aws::String & GetDocumentId() const
Definition: CreateCommentRequest.h:90
Aws::WorkDocs::Model::CreateCommentRequest::WithText
CreateCommentRequest & WithText(const Aws::String &value)
Definition: CreateCommentRequest.h:279
Aws::WorkDocs::Model::CreateCommentRequest::WithAuthenticationToken
CreateCommentRequest & WithAuthenticationToken(const Aws::String &value)
Definition: CreateCommentRequest.h:72
Aws::WorkDocs::Model::CreateCommentRequest::SetVersionId
void SetVersionId(const Aws::String &value)
Definition: CreateCommentRequest.h:141
Aws::WorkDocs::Model::CreateCommentRequest::WithNotifyCollaborators
CreateCommentRequest & WithNotifyCollaborators(bool value)
Definition: CreateCommentRequest.h:363
Aws::WorkDocs::Model::CreateCommentRequest::WithAuthenticationToken
CreateCommentRequest & WithAuthenticationToken(Aws::String &&value)
Definition: CreateCommentRequest.h:78
Aws::WorkDocs::Model::CreateCommentRequest::SetVersionId
void SetVersionId(Aws::String &&value)
Definition: CreateCommentRequest.h:146
Aws::WorkDocs::Model::CreateCommentRequest::SetThreadId
void SetThreadId(const Aws::String &value)
Definition: CreateCommentRequest.h:223
Aws::WorkDocs::Model::CreateCommentRequest::WithVisibility
CreateCommentRequest & WithVisibility(CommentVisibilityType &&value)
Definition: CreateCommentRequest.h:338
CommentVisibilityType.h
Aws::WorkDocs::Model::CreateCommentRequest::SetParentId
void SetParentId(Aws::String &&value)
Definition: CreateCommentRequest.h:187
Aws::WorkDocs::Model::CreateCommentRequest::SetParentId
void SetParentId(const char *value)
Definition: CreateCommentRequest.h:192
Aws::WorkDocs::Model::CreateCommentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCommentRequest.h:31
WorkDocs_EXPORTS.h
Aws::WorkDocs::Model::CreateCommentRequest::SetVersionId
void SetVersionId(const char *value)
Definition: CreateCommentRequest.h:151
Aws::WorkDocs::Model::CreateCommentRequest::WithParentId
CreateCommentRequest & WithParentId(Aws::String &&value)
Definition: CreateCommentRequest.h:202
AWSString.h
Aws::WorkDocs::Model::CreateCommentRequest::SetParentId
void SetParentId(const Aws::String &value)
Definition: CreateCommentRequest.h:182
Aws::WorkDocs::Model::CreateCommentRequest::SetNotifyCollaborators
void SetNotifyCollaborators(bool value)
Definition: CreateCommentRequest.h:357
Aws::WorkDocs::Model::CreateCommentRequest::WithDocumentId
CreateCommentRequest & WithDocumentId(Aws::String &&value)
Definition: CreateCommentRequest.h:120
Aws::WorkDocs::Model::CreateCommentRequest::ThreadIdHasBeenSet
bool ThreadIdHasBeenSet() const
Definition: CreateCommentRequest.h:218
Aws::WorkDocs::Model::CreateCommentRequest::VersionIdHasBeenSet
bool VersionIdHasBeenSet() const
Definition: CreateCommentRequest.h:136
AWS_WORKDOCS_API
#define AWS_WORKDOCS_API
Definition: WorkDocs_EXPORTS.h:28
Aws::WorkDocs::Model::CreateCommentRequest::SetDocumentId
void SetDocumentId(Aws::String &&value)
Definition: CreateCommentRequest.h:105
Aws::WorkDocs::Model::CreateCommentRequest::GetAuthenticationToken
const Aws::String & GetAuthenticationToken() const
Definition: CreateCommentRequest.h:42
Aws::WorkDocs::Model::CreateCommentRequest::SetAuthenticationToken
void SetAuthenticationToken(const char *value)
Definition: CreateCommentRequest.h:66
Aws::WorkDocs::Model::CreateCommentRequest::SetThreadId
void SetThreadId(Aws::String &&value)
Definition: CreateCommentRequest.h:228
Aws::WorkDocs::Model::CreateCommentRequest::WithVersionId
CreateCommentRequest & WithVersionId(const char *value)
Definition: CreateCommentRequest.h:166
Aws::WorkDocs::Model::CreateCommentRequest::GetText
const Aws::String & GetText() const
Definition: CreateCommentRequest.h:254
Aws
Definition: AccessManagementClient.h:15
Aws::WorkDocs::Model::CreateCommentRequest::SetText
void SetText(Aws::String &&value)
Definition: CreateCommentRequest.h:269
Aws::WorkDocs::Model::CreateCommentRequest::GetThreadId
const Aws::String & GetThreadId() const
Definition: CreateCommentRequest.h:213
Aws::WorkDocs::Model::CreateCommentRequest::WithAuthenticationToken
CreateCommentRequest & WithAuthenticationToken(const char *value)
Definition: CreateCommentRequest.h:84
Aws::WorkDocs::Model::CreateCommentRequest::WithVisibility
CreateCommentRequest & WithVisibility(const CommentVisibilityType &value)
Definition: CreateCommentRequest.h:330
WorkDocsRequest.h
Aws::WorkDocs::Model::CreateCommentRequest::AuthenticationTokenHasBeenSet
bool AuthenticationTokenHasBeenSet() const
Definition: CreateCommentRequest.h:48
Aws::WorkDocs::Model::CreateCommentRequest::NotifyCollaboratorsHasBeenSet
bool NotifyCollaboratorsHasBeenSet() const
Definition: CreateCommentRequest.h:351
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkDocs::Model::CreateCommentRequest::SetText
void SetText(const Aws::String &value)
Definition: CreateCommentRequest.h:264
Aws::WorkDocs::Model::CreateCommentRequest::WithDocumentId
CreateCommentRequest & WithDocumentId(const Aws::String &value)
Definition: CreateCommentRequest.h:115
Aws::WorkDocs::Model::CreateCommentRequest::SetAuthenticationToken
void SetAuthenticationToken(Aws::String &&value)
Definition: CreateCommentRequest.h:60
Aws::WorkDocs::Model::CreateCommentRequest::GetVersionId
const Aws::String & GetVersionId() const
Definition: CreateCommentRequest.h:131
Aws::WorkDocs::Model::CreateCommentRequest::WithThreadId
CreateCommentRequest & WithThreadId(const char *value)
Definition: CreateCommentRequest.h:248
Aws::WorkDocs::Model::CreateCommentRequest::WithText
CreateCommentRequest & WithText(const char *value)
Definition: CreateCommentRequest.h:289
Aws::WorkDocs::Model::CreateCommentRequest::GetParentId
const Aws::String & GetParentId() const
Definition: CreateCommentRequest.h:172
Aws::WorkDocs::Model::CreateCommentRequest::WithText
CreateCommentRequest & WithText(Aws::String &&value)
Definition: CreateCommentRequest.h:284
Aws::WorkDocs::Model::CreateCommentRequest::VisibilityHasBeenSet
bool VisibilityHasBeenSet() const
Definition: CreateCommentRequest.h:306
Aws::WorkDocs::Model::CreateCommentRequest::WithThreadId
CreateCommentRequest & WithThreadId(const Aws::String &value)
Definition: CreateCommentRequest.h:238
Aws::WorkDocs::Model::CreateCommentRequest::SetDocumentId
void SetDocumentId(const char *value)
Definition: CreateCommentRequest.h:110
Aws::WorkDocs::Model::CreateCommentRequest::GetVisibility
const CommentVisibilityType & GetVisibility() const
Definition: CreateCommentRequest.h:298
Aws::WorkDocs::Model::CreateCommentRequest::TextHasBeenSet
bool TextHasBeenSet() const
Definition: CreateCommentRequest.h:259
Aws::WorkDocs::Model::CreateCommentRequest::WithParentId
CreateCommentRequest & WithParentId(const Aws::String &value)
Definition: CreateCommentRequest.h:197