AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; }
50 inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); }
51 inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); }
52 inline CommentMetadata& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
53 inline CommentMetadata& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
54 inline CommentMetadata& WithCommentId(const char* value) { SetCommentId(value); return *this;}
56
58
61 inline const User& GetContributor() const{ return m_contributor; }
62 inline bool ContributorHasBeenSet() const { return m_contributorHasBeenSet; }
63 inline void SetContributor(const User& value) { m_contributorHasBeenSet = true; m_contributor = value; }
64 inline void SetContributor(User&& value) { m_contributorHasBeenSet = true; m_contributor = std::move(value); }
65 inline CommentMetadata& WithContributor(const User& value) { SetContributor(value); return *this;}
66 inline CommentMetadata& WithContributor(User&& value) { SetContributor(std::move(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
74 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
75 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
76 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
78 inline CommentMetadata& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
80
82
85 inline const CommentStatusType& GetCommentStatus() const{ return m_commentStatus; }
86 inline bool CommentStatusHasBeenSet() const { return m_commentStatusHasBeenSet; }
87 inline void SetCommentStatus(const CommentStatusType& value) { m_commentStatusHasBeenSet = true; m_commentStatus = value; }
88 inline void SetCommentStatus(CommentStatusType&& value) { m_commentStatusHasBeenSet = true; m_commentStatus = std::move(value); }
89 inline CommentMetadata& WithCommentStatus(const CommentStatusType& value) { SetCommentStatus(value); return *this;}
90 inline CommentMetadata& WithCommentStatus(CommentStatusType&& value) { SetCommentStatus(std::move(value)); return *this;}
92
94
97 inline const Aws::String& GetRecipientId() const{ return m_recipientId; }
98 inline bool RecipientIdHasBeenSet() const { return m_recipientIdHasBeenSet; }
99 inline void SetRecipientId(const Aws::String& value) { m_recipientIdHasBeenSet = true; m_recipientId = value; }
100 inline void SetRecipientId(Aws::String&& value) { m_recipientIdHasBeenSet = true; m_recipientId = std::move(value); }
101 inline void SetRecipientId(const char* value) { m_recipientIdHasBeenSet = true; m_recipientId.assign(value); }
102 inline CommentMetadata& WithRecipientId(const Aws::String& value) { SetRecipientId(value); return *this;}
103 inline CommentMetadata& WithRecipientId(Aws::String&& value) { SetRecipientId(std::move(value)); return *this;}
104 inline CommentMetadata& WithRecipientId(const char* value) { SetRecipientId(value); return *this;}
106
108
111 inline const Aws::String& GetContributorId() const{ return m_contributorId; }
112 inline bool ContributorIdHasBeenSet() const { return m_contributorIdHasBeenSet; }
113 inline void SetContributorId(const Aws::String& value) { m_contributorIdHasBeenSet = true; m_contributorId = value; }
114 inline void SetContributorId(Aws::String&& value) { m_contributorIdHasBeenSet = true; m_contributorId = std::move(value); }
115 inline void SetContributorId(const char* value) { m_contributorIdHasBeenSet = true; m_contributorId.assign(value); }
116 inline CommentMetadata& WithContributorId(const Aws::String& value) { SetContributorId(value); return *this;}
117 inline CommentMetadata& WithContributorId(Aws::String&& value) { SetContributorId(std::move(value)); return *this;}
118 inline CommentMetadata& WithContributorId(const char* value) { SetContributorId(value); return *this;}
120 private:
121
122 Aws::String m_commentId;
123 bool m_commentIdHasBeenSet = false;
124
125 User m_contributor;
126 bool m_contributorHasBeenSet = false;
127
128 Aws::Utils::DateTime m_createdTimestamp;
129 bool m_createdTimestampHasBeenSet = false;
130
131 CommentStatusType m_commentStatus;
132 bool m_commentStatusHasBeenSet = false;
133
134 Aws::String m_recipientId;
135 bool m_recipientIdHasBeenSet = false;
136
137 Aws::String m_contributorId;
138 bool m_contributorIdHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace WorkDocs
143} // namespace Aws
const Aws::String & GetRecipientId() const
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
CommentMetadata & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
CommentMetadata & WithContributorId(const Aws::String &value)
void SetContributor(const User &value)
void SetCommentStatus(const CommentStatusType &value)
void SetContributorId(Aws::String &&value)
CommentMetadata & WithRecipientId(Aws::String &&value)
void SetContributorId(const Aws::String &value)
void SetContributorId(const char *value)
void SetCommentId(Aws::String &&value)
CommentMetadata & WithCommentId(const Aws::String &value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
CommentMetadata & WithCommentStatus(CommentStatusType &&value)
CommentMetadata & WithCommentId(const char *value)
AWS_WORKDOCS_API CommentMetadata(Aws::Utils::Json::JsonView jsonValue)
CommentMetadata & WithContributorId(Aws::String &&value)
const Aws::String & GetCommentId() const
const CommentStatusType & GetCommentStatus() const
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
CommentMetadata & WithContributor(const User &value)
CommentMetadata & WithContributorId(const char *value)
AWS_WORKDOCS_API CommentMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
CommentMetadata & WithRecipientId(const char *value)
const Aws::String & GetContributorId() const
CommentMetadata & WithRecipientId(const Aws::String &value)
void SetCommentStatus(CommentStatusType &&value)
CommentMetadata & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
CommentMetadata & WithCommentId(Aws::String &&value)
void SetRecipientId(Aws::String &&value)
void SetCommentId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
void SetRecipientId(const Aws::String &value)
CommentMetadata & WithContributor(User &&value)
CommentMetadata & WithCommentStatus(const CommentStatusType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue