AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Comment.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workdocs/model/User.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/workdocs/model/CommentStatusType.h>
12#include <aws/workdocs/model/CommentVisibilityType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WorkDocs
26{
27namespace Model
28{
29
35 class Comment
36 {
37 public:
38 AWS_WORKDOCS_API Comment() = default;
39 AWS_WORKDOCS_API Comment(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKDOCS_API Comment& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetCommentId() const { return m_commentId; }
49 inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
50 template<typename CommentIdT = Aws::String>
51 void SetCommentId(CommentIdT&& value) { m_commentIdHasBeenSet = true; m_commentId = std::forward<CommentIdT>(value); }
52 template<typename CommentIdT = Aws::String>
53 Comment& WithCommentId(CommentIdT&& value) { SetCommentId(std::forward<CommentIdT>(value)); return *this;}
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) { m_parentIdHasBeenSet = true; m_parentId = std::forward<ParentIdT>(value); }
64 template<typename ParentIdT = Aws::String>
65 Comment& WithParentId(ParentIdT&& value) { SetParentId(std::forward<ParentIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetThreadId() const { return m_threadId; }
73 inline bool ThreadIdHasBeenSet() const { return m_threadIdHasBeenSet; }
74 template<typename ThreadIdT = Aws::String>
75 void SetThreadId(ThreadIdT&& value) { m_threadIdHasBeenSet = true; m_threadId = std::forward<ThreadIdT>(value); }
76 template<typename ThreadIdT = Aws::String>
77 Comment& WithThreadId(ThreadIdT&& value) { SetThreadId(std::forward<ThreadIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetText() const { return m_text; }
85 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
86 template<typename TextT = Aws::String>
87 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
88 template<typename TextT = Aws::String>
89 Comment& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
91
93
96 inline const User& GetContributor() const { return m_contributor; }
97 inline bool ContributorHasBeenSet() const { return m_contributorHasBeenSet; }
98 template<typename ContributorT = User>
99 void SetContributor(ContributorT&& value) { m_contributorHasBeenSet = true; m_contributor = std::forward<ContributorT>(value); }
100 template<typename ContributorT = User>
101 Comment& WithContributor(ContributorT&& value) { SetContributor(std::forward<ContributorT>(value)); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
109 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
110 template<typename CreatedTimestampT = Aws::Utils::DateTime>
111 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
112 template<typename CreatedTimestampT = Aws::Utils::DateTime>
113 Comment& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
115
117
120 inline CommentStatusType GetStatus() const { return m_status; }
121 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
122 inline void SetStatus(CommentStatusType value) { m_statusHasBeenSet = true; m_status = value; }
123 inline Comment& WithStatus(CommentStatusType value) { SetStatus(value); return *this;}
125
127
133 inline CommentVisibilityType GetVisibility() const { return m_visibility; }
134 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
135 inline void SetVisibility(CommentVisibilityType value) { m_visibilityHasBeenSet = true; m_visibility = value; }
136 inline Comment& WithVisibility(CommentVisibilityType value) { SetVisibility(value); return *this;}
138
140
144 inline const Aws::String& GetRecipientId() const { return m_recipientId; }
145 inline bool RecipientIdHasBeenSet() const { return m_recipientIdHasBeenSet; }
146 template<typename RecipientIdT = Aws::String>
147 void SetRecipientId(RecipientIdT&& value) { m_recipientIdHasBeenSet = true; m_recipientId = std::forward<RecipientIdT>(value); }
148 template<typename RecipientIdT = Aws::String>
149 Comment& WithRecipientId(RecipientIdT&& value) { SetRecipientId(std::forward<RecipientIdT>(value)); return *this;}
151 private:
152
153 Aws::String m_commentId;
154 bool m_commentIdHasBeenSet = false;
155
156 Aws::String m_parentId;
157 bool m_parentIdHasBeenSet = false;
158
159 Aws::String m_threadId;
160 bool m_threadIdHasBeenSet = false;
161
162 Aws::String m_text;
163 bool m_textHasBeenSet = false;
164
165 User m_contributor;
166 bool m_contributorHasBeenSet = false;
167
168 Aws::Utils::DateTime m_createdTimestamp{};
169 bool m_createdTimestampHasBeenSet = false;
170
172 bool m_statusHasBeenSet = false;
173
175 bool m_visibilityHasBeenSet = false;
176
177 Aws::String m_recipientId;
178 bool m_recipientIdHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace WorkDocs
183} // namespace Aws
bool TextHasBeenSet() const
Definition Comment.h:85
void SetThreadId(ThreadIdT &&value)
Definition Comment.h:75
bool RecipientIdHasBeenSet() const
Definition Comment.h:145
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition Comment.h:108
const User & GetContributor() const
Definition Comment.h:96
bool ParentIdHasBeenSet() const
Definition Comment.h:61
const Aws::String & GetRecipientId() const
Definition Comment.h:144
Comment & WithContributor(ContributorT &&value)
Definition Comment.h:101
Comment & WithCommentId(CommentIdT &&value)
Definition Comment.h:53
const Aws::String & GetParentId() const
Definition Comment.h:60
Comment & WithStatus(CommentStatusType value)
Definition Comment.h:123
void SetRecipientId(RecipientIdT &&value)
Definition Comment.h:147
Comment & WithParentId(ParentIdT &&value)
Definition Comment.h:65
AWS_WORKDOCS_API Comment()=default
Comment & WithRecipientId(RecipientIdT &&value)
Definition Comment.h:149
Comment & WithVisibility(CommentVisibilityType value)
Definition Comment.h:136
void SetCommentId(CommentIdT &&value)
Definition Comment.h:51
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition Comment.h:111
bool CreatedTimestampHasBeenSet() const
Definition Comment.h:109
void SetStatus(CommentStatusType value)
Definition Comment.h:122
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
Comment & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition Comment.h:113
const Aws::String & GetThreadId() const
Definition Comment.h:72
void SetText(TextT &&value)
Definition Comment.h:87
bool ThreadIdHasBeenSet() const
Definition Comment.h:73
void SetParentId(ParentIdT &&value)
Definition Comment.h:63
bool VisibilityHasBeenSet() const
Definition Comment.h:134
const Aws::String & GetText() const
Definition Comment.h:84
void SetContributor(ContributorT &&value)
Definition Comment.h:99
Comment & WithText(TextT &&value)
Definition Comment.h:89
CommentVisibilityType GetVisibility() const
Definition Comment.h:133
CommentStatusType GetStatus() const
Definition Comment.h:120
bool ContributorHasBeenSet() const
Definition Comment.h:97
AWS_WORKDOCS_API Comment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVisibility(CommentVisibilityType value)
Definition Comment.h:135
Comment & WithThreadId(ThreadIdT &&value)
Definition Comment.h:77
AWS_WORKDOCS_API Comment(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCommentId() const
Definition Comment.h:48
bool StatusHasBeenSet() const
Definition Comment.h:121
bool CommentIdHasBeenSet() const
Definition Comment.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue