AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Activity.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/model/ActivityType.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/workdocs/model/UserMetadata.h>
12#include <aws/workdocs/model/Participants.h>
13#include <aws/workdocs/model/ResourceMetadata.h>
14#include <aws/workdocs/model/CommentMetadata.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace WorkDocs
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_WORKDOCS_API Activity();
41 AWS_WORKDOCS_API Activity(Aws::Utils::Json::JsonView jsonValue);
42 AWS_WORKDOCS_API Activity& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const ActivityType& GetType() const{ return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(const ActivityType& value) { m_typeHasBeenSet = true; m_type = value; }
53 inline void SetType(ActivityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
54 inline Activity& WithType(const ActivityType& value) { SetType(value); return *this;}
55 inline Activity& WithType(ActivityType&& value) { SetType(std::move(value)); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetTimeStamp() const{ return m_timeStamp; }
63 inline bool TimeStampHasBeenSet() const { return m_timeStampHasBeenSet; }
64 inline void SetTimeStamp(const Aws::Utils::DateTime& value) { m_timeStampHasBeenSet = true; m_timeStamp = value; }
65 inline void SetTimeStamp(Aws::Utils::DateTime&& value) { m_timeStampHasBeenSet = true; m_timeStamp = std::move(value); }
66 inline Activity& WithTimeStamp(const Aws::Utils::DateTime& value) { SetTimeStamp(value); return *this;}
67 inline Activity& WithTimeStamp(Aws::Utils::DateTime&& value) { SetTimeStamp(std::move(value)); return *this;}
69
71
77 inline bool GetIsIndirectActivity() const{ return m_isIndirectActivity; }
78 inline bool IsIndirectActivityHasBeenSet() const { return m_isIndirectActivityHasBeenSet; }
79 inline void SetIsIndirectActivity(bool value) { m_isIndirectActivityHasBeenSet = true; m_isIndirectActivity = value; }
80 inline Activity& WithIsIndirectActivity(bool value) { SetIsIndirectActivity(value); return *this;}
82
84
87 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
88 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
89 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
90 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
91 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
92 inline Activity& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
93 inline Activity& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
94 inline Activity& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
96
98
101 inline const UserMetadata& GetInitiator() const{ return m_initiator; }
102 inline bool InitiatorHasBeenSet() const { return m_initiatorHasBeenSet; }
103 inline void SetInitiator(const UserMetadata& value) { m_initiatorHasBeenSet = true; m_initiator = value; }
104 inline void SetInitiator(UserMetadata&& value) { m_initiatorHasBeenSet = true; m_initiator = std::move(value); }
105 inline Activity& WithInitiator(const UserMetadata& value) { SetInitiator(value); return *this;}
106 inline Activity& WithInitiator(UserMetadata&& value) { SetInitiator(std::move(value)); return *this;}
108
110
115 inline const Participants& GetParticipants() const{ return m_participants; }
116 inline bool ParticipantsHasBeenSet() const { return m_participantsHasBeenSet; }
117 inline void SetParticipants(const Participants& value) { m_participantsHasBeenSet = true; m_participants = value; }
118 inline void SetParticipants(Participants&& value) { m_participantsHasBeenSet = true; m_participants = std::move(value); }
119 inline Activity& WithParticipants(const Participants& value) { SetParticipants(value); return *this;}
120 inline Activity& WithParticipants(Participants&& value) { SetParticipants(std::move(value)); return *this;}
122
124
127 inline const ResourceMetadata& GetResourceMetadata() const{ return m_resourceMetadata; }
128 inline bool ResourceMetadataHasBeenSet() const { return m_resourceMetadataHasBeenSet; }
129 inline void SetResourceMetadata(const ResourceMetadata& value) { m_resourceMetadataHasBeenSet = true; m_resourceMetadata = value; }
130 inline void SetResourceMetadata(ResourceMetadata&& value) { m_resourceMetadataHasBeenSet = true; m_resourceMetadata = std::move(value); }
131 inline Activity& WithResourceMetadata(const ResourceMetadata& value) { SetResourceMetadata(value); return *this;}
132 inline Activity& WithResourceMetadata(ResourceMetadata&& value) { SetResourceMetadata(std::move(value)); return *this;}
134
136
140 inline const ResourceMetadata& GetOriginalParent() const{ return m_originalParent; }
141 inline bool OriginalParentHasBeenSet() const { return m_originalParentHasBeenSet; }
142 inline void SetOriginalParent(const ResourceMetadata& value) { m_originalParentHasBeenSet = true; m_originalParent = value; }
143 inline void SetOriginalParent(ResourceMetadata&& value) { m_originalParentHasBeenSet = true; m_originalParent = std::move(value); }
144 inline Activity& WithOriginalParent(const ResourceMetadata& value) { SetOriginalParent(value); return *this;}
145 inline Activity& WithOriginalParent(ResourceMetadata&& value) { SetOriginalParent(std::move(value)); return *this;}
147
149
153 inline const CommentMetadata& GetCommentMetadata() const{ return m_commentMetadata; }
154 inline bool CommentMetadataHasBeenSet() const { return m_commentMetadataHasBeenSet; }
155 inline void SetCommentMetadata(const CommentMetadata& value) { m_commentMetadataHasBeenSet = true; m_commentMetadata = value; }
156 inline void SetCommentMetadata(CommentMetadata&& value) { m_commentMetadataHasBeenSet = true; m_commentMetadata = std::move(value); }
157 inline Activity& WithCommentMetadata(const CommentMetadata& value) { SetCommentMetadata(value); return *this;}
158 inline Activity& WithCommentMetadata(CommentMetadata&& value) { SetCommentMetadata(std::move(value)); return *this;}
160 private:
161
162 ActivityType m_type;
163 bool m_typeHasBeenSet = false;
164
165 Aws::Utils::DateTime m_timeStamp;
166 bool m_timeStampHasBeenSet = false;
167
168 bool m_isIndirectActivity;
169 bool m_isIndirectActivityHasBeenSet = false;
170
171 Aws::String m_organizationId;
172 bool m_organizationIdHasBeenSet = false;
173
174 UserMetadata m_initiator;
175 bool m_initiatorHasBeenSet = false;
176
177 Participants m_participants;
178 bool m_participantsHasBeenSet = false;
179
180 ResourceMetadata m_resourceMetadata;
181 bool m_resourceMetadataHasBeenSet = false;
182
183 ResourceMetadata m_originalParent;
184 bool m_originalParentHasBeenSet = false;
185
186 CommentMetadata m_commentMetadata;
187 bool m_commentMetadataHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace WorkDocs
192} // namespace Aws
Activity & WithResourceMetadata(const ResourceMetadata &value)
Definition Activity.h:131
Activity & WithCommentMetadata(CommentMetadata &&value)
Definition Activity.h:158
void SetInitiator(UserMetadata &&value)
Definition Activity.h:104
bool ParticipantsHasBeenSet() const
Definition Activity.h:116
Activity & WithOrganizationId(const char *value)
Definition Activity.h:94
void SetCommentMetadata(const CommentMetadata &value)
Definition Activity.h:155
void SetResourceMetadata(const ResourceMetadata &value)
Definition Activity.h:129
Activity & WithOrganizationId(const Aws::String &value)
Definition Activity.h:92
Activity & WithParticipants(Participants &&value)
Definition Activity.h:120
const CommentMetadata & GetCommentMetadata() const
Definition Activity.h:153
bool OriginalParentHasBeenSet() const
Definition Activity.h:141
Activity & WithParticipants(const Participants &value)
Definition Activity.h:119
void SetType(ActivityType &&value)
Definition Activity.h:53
Activity & WithType(const ActivityType &value)
Definition Activity.h:54
const UserMetadata & GetInitiator() const
Definition Activity.h:101
const Participants & GetParticipants() const
Definition Activity.h:115
void SetOriginalParent(ResourceMetadata &&value)
Definition Activity.h:143
Activity & WithOriginalParent(const ResourceMetadata &value)
Definition Activity.h:144
Activity & WithResourceMetadata(ResourceMetadata &&value)
Definition Activity.h:132
void SetOrganizationId(const char *value)
Definition Activity.h:91
void SetOriginalParent(const ResourceMetadata &value)
Definition Activity.h:142
void SetOrganizationId(const Aws::String &value)
Definition Activity.h:89
bool GetIsIndirectActivity() const
Definition Activity.h:77
Activity & WithCommentMetadata(const CommentMetadata &value)
Definition Activity.h:157
Activity & WithInitiator(UserMetadata &&value)
Definition Activity.h:106
Activity & WithTimeStamp(Aws::Utils::DateTime &&value)
Definition Activity.h:67
void SetParticipants(Participants &&value)
Definition Activity.h:118
void SetType(const ActivityType &value)
Definition Activity.h:52
void SetCommentMetadata(CommentMetadata &&value)
Definition Activity.h:156
void SetIsIndirectActivity(bool value)
Definition Activity.h:79
bool ResourceMetadataHasBeenSet() const
Definition Activity.h:128
bool IsIndirectActivityHasBeenSet() const
Definition Activity.h:78
AWS_WORKDOCS_API Activity()
void SetResourceMetadata(ResourceMetadata &&value)
Definition Activity.h:130
bool CommentMetadataHasBeenSet() const
Definition Activity.h:154
void SetTimeStamp(Aws::Utils::DateTime &&value)
Definition Activity.h:65
const Aws::String & GetOrganizationId() const
Definition Activity.h:87
Activity & WithOriginalParent(ResourceMetadata &&value)
Definition Activity.h:145
Activity & WithIsIndirectActivity(bool value)
Definition Activity.h:80
void SetInitiator(const UserMetadata &value)
Definition Activity.h:103
void SetOrganizationId(Aws::String &&value)
Definition Activity.h:90
Activity & WithOrganizationId(Aws::String &&value)
Definition Activity.h:93
bool TimeStampHasBeenSet() const
Definition Activity.h:63
AWS_WORKDOCS_API Activity & operator=(Aws::Utils::Json::JsonView jsonValue)
bool OrganizationIdHasBeenSet() const
Definition Activity.h:88
const ResourceMetadata & GetOriginalParent() const
Definition Activity.h:140
const Aws::Utils::DateTime & GetTimeStamp() const
Definition Activity.h:62
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
const ResourceMetadata & GetResourceMetadata() const
Definition Activity.h:127
Activity & WithTimeStamp(const Aws::Utils::DateTime &value)
Definition Activity.h:66
Activity & WithType(ActivityType &&value)
Definition Activity.h:55
AWS_WORKDOCS_API Activity(Aws::Utils::Json::JsonView jsonValue)
void SetTimeStamp(const Aws::Utils::DateTime &value)
Definition Activity.h:64
const ActivityType & GetType() const
Definition Activity.h:50
Activity & WithInitiator(const UserMetadata &value)
Definition Activity.h:105
void SetParticipants(const Participants &value)
Definition Activity.h:117
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue