AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CommentMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workdocs/WorkDocs_EXPORTS.h>
10#include <aws/workdocs/model/CommentStatusType.h>
11#include <aws/workdocs/model/User.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkDocs {
23namespace Model {
24
31 public:
32 AWS_WORKDOCS_API CommentMetadata() = default;
33 AWS_WORKDOCS_API CommentMetadata(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetCommentId() const { return m_commentId; }
42 inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
43 template <typename CommentIdT = Aws::String>
44 void SetCommentId(CommentIdT&& value) {
45 m_commentIdHasBeenSet = true;
46 m_commentId = std::forward<CommentIdT>(value);
47 }
48 template <typename CommentIdT = Aws::String>
49 CommentMetadata& WithCommentId(CommentIdT&& value) {
50 SetCommentId(std::forward<CommentIdT>(value));
51 return *this;
52 }
54
56
59 inline const User& GetContributor() const { return m_contributor; }
60 inline bool ContributorHasBeenSet() const { return m_contributorHasBeenSet; }
61 template <typename ContributorT = User>
62 void SetContributor(ContributorT&& value) {
63 m_contributorHasBeenSet = true;
64 m_contributor = std::forward<ContributorT>(value);
65 }
66 template <typename ContributorT = User>
67 CommentMetadata& WithContributor(ContributorT&& value) {
68 SetContributor(std::forward<ContributorT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
78 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
79 template <typename CreatedTimestampT = Aws::Utils::DateTime>
80 void SetCreatedTimestamp(CreatedTimestampT&& value) {
81 m_createdTimestampHasBeenSet = true;
82 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
83 }
84 template <typename CreatedTimestampT = Aws::Utils::DateTime>
85 CommentMetadata& WithCreatedTimestamp(CreatedTimestampT&& value) {
86 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
87 return *this;
88 }
90
92
95 inline CommentStatusType GetCommentStatus() const { return m_commentStatus; }
96 inline bool CommentStatusHasBeenSet() const { return m_commentStatusHasBeenSet; }
98 m_commentStatusHasBeenSet = true;
99 m_commentStatus = value;
100 }
102 SetCommentStatus(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetRecipientId() const { return m_recipientId; }
112 inline bool RecipientIdHasBeenSet() const { return m_recipientIdHasBeenSet; }
113 template <typename RecipientIdT = Aws::String>
114 void SetRecipientId(RecipientIdT&& value) {
115 m_recipientIdHasBeenSet = true;
116 m_recipientId = std::forward<RecipientIdT>(value);
117 }
118 template <typename RecipientIdT = Aws::String>
119 CommentMetadata& WithRecipientId(RecipientIdT&& value) {
120 SetRecipientId(std::forward<RecipientIdT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetContributorId() const { return m_contributorId; }
130 inline bool ContributorIdHasBeenSet() const { return m_contributorIdHasBeenSet; }
131 template <typename ContributorIdT = Aws::String>
132 void SetContributorId(ContributorIdT&& value) {
133 m_contributorIdHasBeenSet = true;
134 m_contributorId = std::forward<ContributorIdT>(value);
135 }
136 template <typename ContributorIdT = Aws::String>
137 CommentMetadata& WithContributorId(ContributorIdT&& value) {
138 SetContributorId(std::forward<ContributorIdT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_commentId;
144
145 User m_contributor;
146
147 Aws::Utils::DateTime m_createdTimestamp{};
148
150
151 Aws::String m_recipientId;
152
153 Aws::String m_contributorId;
154 bool m_commentIdHasBeenSet = false;
155 bool m_contributorHasBeenSet = false;
156 bool m_createdTimestampHasBeenSet = false;
157 bool m_commentStatusHasBeenSet = false;
158 bool m_recipientIdHasBeenSet = false;
159 bool m_contributorIdHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace WorkDocs
164} // namespace Aws
void SetCommentStatus(CommentStatusType value)
CommentMetadata & WithCommentId(CommentIdT &&value)
const Aws::String & GetRecipientId() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
void SetContributor(ContributorT &&value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
CommentMetadata & WithCommentStatus(CommentStatusType value)
CommentMetadata & WithContributorId(ContributorIdT &&value)
CommentStatusType GetCommentStatus() const
void SetContributorId(ContributorIdT &&value)
CommentMetadata & WithContributor(ContributorT &&value)
AWS_WORKDOCS_API CommentMetadata(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCommentId() const
AWS_WORKDOCS_API CommentMetadata()=default
void SetRecipientId(RecipientIdT &&value)
AWS_WORKDOCS_API CommentMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContributorId() const
void SetCommentId(CommentIdT &&value)
CommentMetadata & WithCreatedTimestamp(CreatedTimestampT &&value)
CommentMetadata & WithRecipientId(RecipientIdT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue