AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CommentMetadata.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 <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WorkDocs
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_WORKDOCS_API CommentMetadata() = default;
38 AWS_WORKDOCS_API CommentMetadata(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCommentId() const { return m_commentId; }
48 inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
49 template<typename CommentIdT = Aws::String>
50 void SetCommentId(CommentIdT&& value) { m_commentIdHasBeenSet = true; m_commentId = std::forward<CommentIdT>(value); }
51 template<typename CommentIdT = Aws::String>
52 CommentMetadata& WithCommentId(CommentIdT&& value) { SetCommentId(std::forward<CommentIdT>(value)); return *this;}
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) { m_contributorHasBeenSet = true; m_contributor = std::forward<ContributorT>(value); }
63 template<typename ContributorT = User>
64 CommentMetadata& WithContributor(ContributorT&& value) { SetContributor(std::forward<ContributorT>(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
72 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
73 template<typename CreatedTimestampT = Aws::Utils::DateTime>
74 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
75 template<typename CreatedTimestampT = Aws::Utils::DateTime>
76 CommentMetadata& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
78
80
83 inline CommentStatusType GetCommentStatus() const { return m_commentStatus; }
84 inline bool CommentStatusHasBeenSet() const { return m_commentStatusHasBeenSet; }
85 inline void SetCommentStatus(CommentStatusType value) { m_commentStatusHasBeenSet = true; m_commentStatus = value; }
88
90
93 inline const Aws::String& GetRecipientId() const { return m_recipientId; }
94 inline bool RecipientIdHasBeenSet() const { return m_recipientIdHasBeenSet; }
95 template<typename RecipientIdT = Aws::String>
96 void SetRecipientId(RecipientIdT&& value) { m_recipientIdHasBeenSet = true; m_recipientId = std::forward<RecipientIdT>(value); }
97 template<typename RecipientIdT = Aws::String>
98 CommentMetadata& WithRecipientId(RecipientIdT&& value) { SetRecipientId(std::forward<RecipientIdT>(value)); return *this;}
100
102
105 inline const Aws::String& GetContributorId() const { return m_contributorId; }
106 inline bool ContributorIdHasBeenSet() const { return m_contributorIdHasBeenSet; }
107 template<typename ContributorIdT = Aws::String>
108 void SetContributorId(ContributorIdT&& value) { m_contributorIdHasBeenSet = true; m_contributorId = std::forward<ContributorIdT>(value); }
109 template<typename ContributorIdT = Aws::String>
110 CommentMetadata& WithContributorId(ContributorIdT&& value) { SetContributorId(std::forward<ContributorIdT>(value)); return *this;}
112 private:
113
114 Aws::String m_commentId;
115 bool m_commentIdHasBeenSet = false;
116
117 User m_contributor;
118 bool m_contributorHasBeenSet = false;
119
120 Aws::Utils::DateTime m_createdTimestamp{};
121 bool m_createdTimestampHasBeenSet = false;
122
124 bool m_commentStatusHasBeenSet = false;
125
126 Aws::String m_recipientId;
127 bool m_recipientIdHasBeenSet = false;
128
129 Aws::String m_contributorId;
130 bool m_contributorIdHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace WorkDocs
135} // 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