AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateCommentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/workdocs/WorkDocs_EXPORTS.h>
10#include <aws/workdocs/model/CommentVisibilityType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkDocs {
16namespace Model {
17
21 public:
22 AWS_WORKDOCS_API CreateCommentRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateComment"; }
29
30 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
40 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
41 template <typename AuthenticationTokenT = Aws::String>
42 void SetAuthenticationToken(AuthenticationTokenT&& value) {
43 m_authenticationTokenHasBeenSet = true;
44 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
45 }
46 template <typename AuthenticationTokenT = Aws::String>
47 CreateCommentRequest& WithAuthenticationToken(AuthenticationTokenT&& value) {
48 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDocumentId() const { return m_documentId; }
58 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
59 template <typename DocumentIdT = Aws::String>
60 void SetDocumentId(DocumentIdT&& value) {
61 m_documentIdHasBeenSet = true;
62 m_documentId = std::forward<DocumentIdT>(value);
63 }
64 template <typename DocumentIdT = Aws::String>
65 CreateCommentRequest& WithDocumentId(DocumentIdT&& value) {
66 SetDocumentId(std::forward<DocumentIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetVersionId() const { return m_versionId; }
76 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
77 template <typename VersionIdT = Aws::String>
78 void SetVersionId(VersionIdT&& value) {
79 m_versionIdHasBeenSet = true;
80 m_versionId = std::forward<VersionIdT>(value);
81 }
82 template <typename VersionIdT = Aws::String>
83 CreateCommentRequest& WithVersionId(VersionIdT&& value) {
84 SetVersionId(std::forward<VersionIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetParentId() const { return m_parentId; }
94 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
95 template <typename ParentIdT = Aws::String>
96 void SetParentId(ParentIdT&& value) {
97 m_parentIdHasBeenSet = true;
98 m_parentId = std::forward<ParentIdT>(value);
99 }
100 template <typename ParentIdT = Aws::String>
101 CreateCommentRequest& WithParentId(ParentIdT&& value) {
102 SetParentId(std::forward<ParentIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetThreadId() const { return m_threadId; }
112 inline bool ThreadIdHasBeenSet() const { return m_threadIdHasBeenSet; }
113 template <typename ThreadIdT = Aws::String>
114 void SetThreadId(ThreadIdT&& value) {
115 m_threadIdHasBeenSet = true;
116 m_threadId = std::forward<ThreadIdT>(value);
117 }
118 template <typename ThreadIdT = Aws::String>
119 CreateCommentRequest& WithThreadId(ThreadIdT&& value) {
120 SetThreadId(std::forward<ThreadIdT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetText() const { return m_text; }
130 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
131 template <typename TextT = Aws::String>
132 void SetText(TextT&& value) {
133 m_textHasBeenSet = true;
134 m_text = std::forward<TextT>(value);
135 }
136 template <typename TextT = Aws::String>
138 SetText(std::forward<TextT>(value));
139 return *this;
140 }
142
144
150 inline CommentVisibilityType GetVisibility() const { return m_visibility; }
151 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
153 m_visibilityHasBeenSet = true;
154 m_visibility = value;
155 }
157 SetVisibility(value);
158 return *this;
159 }
161
163
167 inline bool GetNotifyCollaborators() const { return m_notifyCollaborators; }
168 inline bool NotifyCollaboratorsHasBeenSet() const { return m_notifyCollaboratorsHasBeenSet; }
169 inline void SetNotifyCollaborators(bool value) {
170 m_notifyCollaboratorsHasBeenSet = true;
171 m_notifyCollaborators = value;
172 }
175 return *this;
176 }
178 private:
179 Aws::String m_authenticationToken;
180
181 Aws::String m_documentId;
182
183 Aws::String m_versionId;
184
185 Aws::String m_parentId;
186
187 Aws::String m_threadId;
188
189 Aws::String m_text;
190
192
193 bool m_notifyCollaborators{false};
194 bool m_authenticationTokenHasBeenSet = false;
195 bool m_documentIdHasBeenSet = false;
196 bool m_versionIdHasBeenSet = false;
197 bool m_parentIdHasBeenSet = false;
198 bool m_threadIdHasBeenSet = false;
199 bool m_textHasBeenSet = false;
200 bool m_visibilityHasBeenSet = false;
201 bool m_notifyCollaboratorsHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace WorkDocs
206} // namespace Aws
CreateCommentRequest & WithDocumentId(DocumentIdT &&value)
CreateCommentRequest & WithVersionId(VersionIdT &&value)
CreateCommentRequest & WithParentId(ParentIdT &&value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
void SetVisibility(CommentVisibilityType value)
AWS_WORKDOCS_API CreateCommentRequest()=default
CreateCommentRequest & WithText(TextT &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAuthenticationToken(AuthenticationTokenT &&value)
virtual const char * GetServiceRequestName() const override
CreateCommentRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
CreateCommentRequest & WithVisibility(CommentVisibilityType value)
const Aws::String & GetAuthenticationToken() const
CreateCommentRequest & WithThreadId(ThreadIdT &&value)
CreateCommentRequest & WithNotifyCollaborators(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String