AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AuthenticationTokenT = Aws::String>
46 void SetAuthenticationToken(AuthenticationTokenT&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
47 template<typename AuthenticationTokenT = Aws::String>
48 CreateCommentRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDocumentId() const { return m_documentId; }
56 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
57 template<typename DocumentIdT = Aws::String>
58 void SetDocumentId(DocumentIdT&& value) { m_documentIdHasBeenSet = true; m_documentId = std::forward<DocumentIdT>(value); }
59 template<typename DocumentIdT = Aws::String>
60 CreateCommentRequest& WithDocumentId(DocumentIdT&& value) { SetDocumentId(std::forward<DocumentIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetVersionId() const { return m_versionId; }
68 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
69 template<typename VersionIdT = Aws::String>
70 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
71 template<typename VersionIdT = Aws::String>
72 CreateCommentRequest& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
74
76
79 inline const Aws::String& GetParentId() const { return m_parentId; }
80 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
81 template<typename ParentIdT = Aws::String>
82 void SetParentId(ParentIdT&& value) { m_parentIdHasBeenSet = true; m_parentId = std::forward<ParentIdT>(value); }
83 template<typename ParentIdT = Aws::String>
84 CreateCommentRequest& WithParentId(ParentIdT&& value) { SetParentId(std::forward<ParentIdT>(value)); return *this;}
86
88
91 inline const Aws::String& GetThreadId() const { return m_threadId; }
92 inline bool ThreadIdHasBeenSet() const { return m_threadIdHasBeenSet; }
93 template<typename ThreadIdT = Aws::String>
94 void SetThreadId(ThreadIdT&& value) { m_threadIdHasBeenSet = true; m_threadId = std::forward<ThreadIdT>(value); }
95 template<typename ThreadIdT = Aws::String>
96 CreateCommentRequest& WithThreadId(ThreadIdT&& value) { SetThreadId(std::forward<ThreadIdT>(value)); return *this;}
98
100
103 inline const Aws::String& GetText() const { return m_text; }
104 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
105 template<typename TextT = Aws::String>
106 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
107 template<typename TextT = Aws::String>
108 CreateCommentRequest& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
110
112
118 inline CommentVisibilityType GetVisibility() const { return m_visibility; }
119 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
120 inline void SetVisibility(CommentVisibilityType value) { m_visibilityHasBeenSet = true; m_visibility = value; }
123
125
129 inline bool GetNotifyCollaborators() const { return m_notifyCollaborators; }
130 inline bool NotifyCollaboratorsHasBeenSet() const { return m_notifyCollaboratorsHasBeenSet; }
131 inline void SetNotifyCollaborators(bool value) { m_notifyCollaboratorsHasBeenSet = true; m_notifyCollaborators = value; }
132 inline CreateCommentRequest& WithNotifyCollaborators(bool value) { SetNotifyCollaborators(value); return *this;}
134 private:
135
136 Aws::String m_authenticationToken;
137 bool m_authenticationTokenHasBeenSet = false;
138
139 Aws::String m_documentId;
140 bool m_documentIdHasBeenSet = false;
141
142 Aws::String m_versionId;
143 bool m_versionIdHasBeenSet = false;
144
145 Aws::String m_parentId;
146 bool m_parentIdHasBeenSet = false;
147
148 Aws::String m_threadId;
149 bool m_threadIdHasBeenSet = false;
150
151 Aws::String m_text;
152 bool m_textHasBeenSet = false;
153
155 bool m_visibilityHasBeenSet = false;
156
157 bool m_notifyCollaborators{false};
158 bool m_notifyCollaboratorsHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace WorkDocs
163} // 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