AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; }
51 inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); }
52 inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); }
53 inline Comment& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
54 inline Comment& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
55 inline Comment& WithCommentId(const char* value) { SetCommentId(value); return *this;}
57
59
62 inline const Aws::String& GetParentId() const{ return m_parentId; }
63 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
64 inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
65 inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
66 inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
67 inline Comment& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
68 inline Comment& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
69 inline Comment& WithParentId(const char* value) { SetParentId(value); return *this;}
71
73
76 inline const Aws::String& GetThreadId() const{ return m_threadId; }
77 inline bool ThreadIdHasBeenSet() const { return m_threadIdHasBeenSet; }
78 inline void SetThreadId(const Aws::String& value) { m_threadIdHasBeenSet = true; m_threadId = value; }
79 inline void SetThreadId(Aws::String&& value) { m_threadIdHasBeenSet = true; m_threadId = std::move(value); }
80 inline void SetThreadId(const char* value) { m_threadIdHasBeenSet = true; m_threadId.assign(value); }
81 inline Comment& WithThreadId(const Aws::String& value) { SetThreadId(value); return *this;}
82 inline Comment& WithThreadId(Aws::String&& value) { SetThreadId(std::move(value)); return *this;}
83 inline Comment& WithThreadId(const char* value) { SetThreadId(value); return *this;}
85
87
90 inline const Aws::String& GetText() const{ return m_text; }
91 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
92 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
93 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
94 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
95 inline Comment& WithText(const Aws::String& value) { SetText(value); return *this;}
96 inline Comment& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
97 inline Comment& WithText(const char* value) { SetText(value); return *this;}
99
101
104 inline const User& GetContributor() const{ return m_contributor; }
105 inline bool ContributorHasBeenSet() const { return m_contributorHasBeenSet; }
106 inline void SetContributor(const User& value) { m_contributorHasBeenSet = true; m_contributor = value; }
107 inline void SetContributor(User&& value) { m_contributorHasBeenSet = true; m_contributor = std::move(value); }
108 inline Comment& WithContributor(const User& value) { SetContributor(value); return *this;}
109 inline Comment& WithContributor(User&& value) { SetContributor(std::move(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
117 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
118 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
119 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
120 inline Comment& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
121 inline Comment& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
123
125
128 inline const CommentStatusType& GetStatus() const{ return m_status; }
129 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
130 inline void SetStatus(const CommentStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
131 inline void SetStatus(CommentStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
132 inline Comment& WithStatus(const CommentStatusType& value) { SetStatus(value); return *this;}
133 inline Comment& WithStatus(CommentStatusType&& value) { SetStatus(std::move(value)); return *this;}
135
137
143 inline const CommentVisibilityType& GetVisibility() const{ return m_visibility; }
144 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
145 inline void SetVisibility(const CommentVisibilityType& value) { m_visibilityHasBeenSet = true; m_visibility = value; }
146 inline void SetVisibility(CommentVisibilityType&& value) { m_visibilityHasBeenSet = true; m_visibility = std::move(value); }
147 inline Comment& WithVisibility(const CommentVisibilityType& value) { SetVisibility(value); return *this;}
148 inline Comment& WithVisibility(CommentVisibilityType&& value) { SetVisibility(std::move(value)); return *this;}
150
152
156 inline const Aws::String& GetRecipientId() const{ return m_recipientId; }
157 inline bool RecipientIdHasBeenSet() const { return m_recipientIdHasBeenSet; }
158 inline void SetRecipientId(const Aws::String& value) { m_recipientIdHasBeenSet = true; m_recipientId = value; }
159 inline void SetRecipientId(Aws::String&& value) { m_recipientIdHasBeenSet = true; m_recipientId = std::move(value); }
160 inline void SetRecipientId(const char* value) { m_recipientIdHasBeenSet = true; m_recipientId.assign(value); }
161 inline Comment& WithRecipientId(const Aws::String& value) { SetRecipientId(value); return *this;}
162 inline Comment& WithRecipientId(Aws::String&& value) { SetRecipientId(std::move(value)); return *this;}
163 inline Comment& WithRecipientId(const char* value) { SetRecipientId(value); return *this;}
165 private:
166
167 Aws::String m_commentId;
168 bool m_commentIdHasBeenSet = false;
169
170 Aws::String m_parentId;
171 bool m_parentIdHasBeenSet = false;
172
173 Aws::String m_threadId;
174 bool m_threadIdHasBeenSet = false;
175
176 Aws::String m_text;
177 bool m_textHasBeenSet = false;
178
179 User m_contributor;
180 bool m_contributorHasBeenSet = false;
181
182 Aws::Utils::DateTime m_createdTimestamp;
183 bool m_createdTimestampHasBeenSet = false;
184
185 CommentStatusType m_status;
186 bool m_statusHasBeenSet = false;
187
188 CommentVisibilityType m_visibility;
189 bool m_visibilityHasBeenSet = false;
190
191 Aws::String m_recipientId;
192 bool m_recipientIdHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace WorkDocs
197} // namespace Aws
bool TextHasBeenSet() const
Definition Comment.h:91
void SetStatus(const CommentStatusType &value)
Definition Comment.h:130
Comment & WithVisibility(const CommentVisibilityType &value)
Definition Comment.h:147
bool RecipientIdHasBeenSet() const
Definition Comment.h:157
Comment & WithText(const char *value)
Definition Comment.h:97
Comment & WithParentId(const char *value)
Definition Comment.h:69
Comment & WithContributor(const User &value)
Definition Comment.h:108
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition Comment.h:118
void SetThreadId(const char *value)
Definition Comment.h:80
void SetVisibility(CommentVisibilityType &&value)
Definition Comment.h:146
Comment & WithRecipientId(const Aws::String &value)
Definition Comment.h:161
Comment & WithParentId(Aws::String &&value)
Definition Comment.h:68
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition Comment.h:116
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition Comment.h:119
void SetText(Aws::String &&value)
Definition Comment.h:93
const User & GetContributor() const
Definition Comment.h:104
Comment & WithContributor(User &&value)
Definition Comment.h:109
bool ParentIdHasBeenSet() const
Definition Comment.h:63
const Aws::String & GetRecipientId() const
Definition Comment.h:156
const Aws::String & GetParentId() const
Definition Comment.h:62
const CommentStatusType & GetStatus() const
Definition Comment.h:128
Comment & WithRecipientId(Aws::String &&value)
Definition Comment.h:162
void SetRecipientId(const char *value)
Definition Comment.h:160
Comment & WithThreadId(Aws::String &&value)
Definition Comment.h:82
void SetStatus(CommentStatusType &&value)
Definition Comment.h:131
Comment & WithParentId(const Aws::String &value)
Definition Comment.h:67
void SetText(const Aws::String &value)
Definition Comment.h:92
void SetContributor(User &&value)
Definition Comment.h:107
void SetVisibility(const CommentVisibilityType &value)
Definition Comment.h:145
void SetRecipientId(const Aws::String &value)
Definition Comment.h:158
bool CreatedTimestampHasBeenSet() const
Definition Comment.h:117
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContributor(const User &value)
Definition Comment.h:106
Comment & WithText(Aws::String &&value)
Definition Comment.h:96
Comment & WithCommentId(const char *value)
Definition Comment.h:55
const Aws::String & GetThreadId() const
Definition Comment.h:76
bool ThreadIdHasBeenSet() const
Definition Comment.h:77
void SetCommentId(Aws::String &&value)
Definition Comment.h:51
void SetThreadId(Aws::String &&value)
Definition Comment.h:79
Comment & WithThreadId(const Aws::String &value)
Definition Comment.h:81
void SetRecipientId(Aws::String &&value)
Definition Comment.h:159
bool VisibilityHasBeenSet() const
Definition Comment.h:144
const Aws::String & GetText() const
Definition Comment.h:90
Comment & WithStatus(CommentStatusType &&value)
Definition Comment.h:133
void SetParentId(Aws::String &&value)
Definition Comment.h:65
void SetParentId(const char *value)
Definition Comment.h:66
void SetCommentId(const char *value)
Definition Comment.h:52
void SetThreadId(const Aws::String &value)
Definition Comment.h:78
Comment & WithRecipientId(const char *value)
Definition Comment.h:163
void SetParentId(const Aws::String &value)
Definition Comment.h:64
Comment & WithCommentId(const Aws::String &value)
Definition Comment.h:53
bool ContributorHasBeenSet() const
Definition Comment.h:105
Comment & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition Comment.h:121
Comment & WithStatus(const CommentStatusType &value)
Definition Comment.h:132
AWS_WORKDOCS_API Comment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKDOCS_API Comment(Aws::Utils::Json::JsonView jsonValue)
Comment & WithText(const Aws::String &value)
Definition Comment.h:95
AWS_WORKDOCS_API Comment()
const CommentVisibilityType & GetVisibility() const
Definition Comment.h:143
void SetText(const char *value)
Definition Comment.h:94
Comment & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition Comment.h:120
void SetCommentId(const Aws::String &value)
Definition Comment.h:50
Comment & WithCommentId(Aws::String &&value)
Definition Comment.h:54
Comment & WithVisibility(CommentVisibilityType &&value)
Definition Comment.h:148
const Aws::String & GetCommentId() const
Definition Comment.h:48
Comment & WithThreadId(const char *value)
Definition Comment.h:83
bool StatusHasBeenSet() const
Definition Comment.h:129
bool CommentIdHasBeenSet() const
Definition Comment.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue