AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCommentRequest.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workdocs/model/CommentVisibilityType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WorkDocs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKDOCS_API CreateCommentRequest();
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_WORKDOCS_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
44 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
45 inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
46 inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
47 inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
49 inline CreateCommentRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
50 inline CreateCommentRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
52
54
57 inline const Aws::String& GetDocumentId() const{ return m_documentId; }
58 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
59 inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
60 inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
61 inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
62 inline CreateCommentRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
63 inline CreateCommentRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
64 inline CreateCommentRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
66
68
71 inline const Aws::String& GetVersionId() const{ return m_versionId; }
72 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
73 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
74 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
75 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
76 inline CreateCommentRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
77 inline CreateCommentRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
78 inline CreateCommentRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
80
82
85 inline const Aws::String& GetParentId() const{ return m_parentId; }
86 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
87 inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
88 inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
89 inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
90 inline CreateCommentRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
91 inline CreateCommentRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
92 inline CreateCommentRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
94
96
99 inline const Aws::String& GetThreadId() const{ return m_threadId; }
100 inline bool ThreadIdHasBeenSet() const { return m_threadIdHasBeenSet; }
101 inline void SetThreadId(const Aws::String& value) { m_threadIdHasBeenSet = true; m_threadId = value; }
102 inline void SetThreadId(Aws::String&& value) { m_threadIdHasBeenSet = true; m_threadId = std::move(value); }
103 inline void SetThreadId(const char* value) { m_threadIdHasBeenSet = true; m_threadId.assign(value); }
104 inline CreateCommentRequest& WithThreadId(const Aws::String& value) { SetThreadId(value); return *this;}
105 inline CreateCommentRequest& WithThreadId(Aws::String&& value) { SetThreadId(std::move(value)); return *this;}
106 inline CreateCommentRequest& WithThreadId(const char* value) { SetThreadId(value); return *this;}
108
110
113 inline const Aws::String& GetText() const{ return m_text; }
114 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
115 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
116 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
117 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
118 inline CreateCommentRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
119 inline CreateCommentRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
120 inline CreateCommentRequest& WithText(const char* value) { SetText(value); return *this;}
122
124
130 inline const CommentVisibilityType& GetVisibility() const{ return m_visibility; }
131 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
132 inline void SetVisibility(const CommentVisibilityType& value) { m_visibilityHasBeenSet = true; m_visibility = value; }
133 inline void SetVisibility(CommentVisibilityType&& value) { m_visibilityHasBeenSet = true; m_visibility = std::move(value); }
134 inline CreateCommentRequest& WithVisibility(const CommentVisibilityType& value) { SetVisibility(value); return *this;}
135 inline CreateCommentRequest& WithVisibility(CommentVisibilityType&& value) { SetVisibility(std::move(value)); return *this;}
137
139
143 inline bool GetNotifyCollaborators() const{ return m_notifyCollaborators; }
144 inline bool NotifyCollaboratorsHasBeenSet() const { return m_notifyCollaboratorsHasBeenSet; }
145 inline void SetNotifyCollaborators(bool value) { m_notifyCollaboratorsHasBeenSet = true; m_notifyCollaborators = value; }
146 inline CreateCommentRequest& WithNotifyCollaborators(bool value) { SetNotifyCollaborators(value); return *this;}
148 private:
149
150 Aws::String m_authenticationToken;
151 bool m_authenticationTokenHasBeenSet = false;
152
153 Aws::String m_documentId;
154 bool m_documentIdHasBeenSet = false;
155
156 Aws::String m_versionId;
157 bool m_versionIdHasBeenSet = false;
158
159 Aws::String m_parentId;
160 bool m_parentIdHasBeenSet = false;
161
162 Aws::String m_threadId;
163 bool m_threadIdHasBeenSet = false;
164
165 Aws::String m_text;
166 bool m_textHasBeenSet = false;
167
168 CommentVisibilityType m_visibility;
169 bool m_visibilityHasBeenSet = false;
170
171 bool m_notifyCollaborators;
172 bool m_notifyCollaboratorsHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace WorkDocs
177} // namespace Aws
CreateCommentRequest & WithThreadId(const char *value)
CreateCommentRequest & WithParentId(const char *value)
CreateCommentRequest & WithDocumentId(Aws::String &&value)
CreateCommentRequest & WithVersionId(const Aws::String &value)
void SetVersionId(const Aws::String &value)
CreateCommentRequest & WithAuthenticationToken(Aws::String &&value)
CreateCommentRequest & WithDocumentId(const Aws::String &value)
void SetVisibility(CommentVisibilityType &&value)
void SetAuthenticationToken(const Aws::String &value)
CreateCommentRequest & WithVersionId(const char *value)
CreateCommentRequest & WithParentId(Aws::String &&value)
CreateCommentRequest & WithText(const char *value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
CreateCommentRequest & WithText(const Aws::String &value)
CreateCommentRequest & WithThreadId(Aws::String &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const CommentVisibilityType & GetVisibility() const
void SetVisibility(const CommentVisibilityType &value)
CreateCommentRequest & WithVisibility(CommentVisibilityType &&value)
CreateCommentRequest & WithVisibility(const CommentVisibilityType &value)
virtual const char * GetServiceRequestName() const override
CreateCommentRequest & WithDocumentId(const char *value)
CreateCommentRequest & WithVersionId(Aws::String &&value)
void SetDocumentId(const Aws::String &value)
CreateCommentRequest & WithParentId(const Aws::String &value)
const Aws::String & GetAuthenticationToken() const
CreateCommentRequest & WithAuthenticationToken(const Aws::String &value)
CreateCommentRequest & WithAuthenticationToken(const char *value)
CreateCommentRequest & WithThreadId(const Aws::String &value)
CreateCommentRequest & WithText(Aws::String &&value)
CreateCommentRequest & WithNotifyCollaborators(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String