/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the activity information.See Also:
AWS
* API Reference
The activity type.
*/ inline const ActivityType& GetType() const{ return m_type; } /** *The activity type.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The activity type.
*/ inline void SetType(const ActivityType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The activity type.
*/ inline void SetType(ActivityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The activity type.
*/ inline Activity& WithType(const ActivityType& value) { SetType(value); return *this;} /** *The activity type.
*/ inline Activity& WithType(ActivityType&& value) { SetType(std::move(value)); return *this;} /** *The timestamp when the action was performed.
*/ inline const Aws::Utils::DateTime& GetTimeStamp() const{ return m_timeStamp; } /** *The timestamp when the action was performed.
*/ inline bool TimeStampHasBeenSet() const { return m_timeStampHasBeenSet; } /** *The timestamp when the action was performed.
*/ inline void SetTimeStamp(const Aws::Utils::DateTime& value) { m_timeStampHasBeenSet = true; m_timeStamp = value; } /** *The timestamp when the action was performed.
*/ inline void SetTimeStamp(Aws::Utils::DateTime&& value) { m_timeStampHasBeenSet = true; m_timeStamp = std::move(value); } /** *The timestamp when the action was performed.
*/ inline Activity& WithTimeStamp(const Aws::Utils::DateTime& value) { SetTimeStamp(value); return *this;} /** *The timestamp when the action was performed.
*/ inline Activity& WithTimeStamp(Aws::Utils::DateTime&& value) { SetTimeStamp(std::move(value)); return *this;} /** *Indicates whether an activity is indirect or direct. An indirect activity * results from a direct activity performed on a parent resource. For example, * sharing a parent folder (the direct activity) shares all of the subfolders and * documents within the parent folder (the indirect activity).
*/ inline bool GetIsIndirectActivity() const{ return m_isIndirectActivity; } /** *Indicates whether an activity is indirect or direct. An indirect activity * results from a direct activity performed on a parent resource. For example, * sharing a parent folder (the direct activity) shares all of the subfolders and * documents within the parent folder (the indirect activity).
*/ inline bool IsIndirectActivityHasBeenSet() const { return m_isIndirectActivityHasBeenSet; } /** *Indicates whether an activity is indirect or direct. An indirect activity * results from a direct activity performed on a parent resource. For example, * sharing a parent folder (the direct activity) shares all of the subfolders and * documents within the parent folder (the indirect activity).
*/ inline void SetIsIndirectActivity(bool value) { m_isIndirectActivityHasBeenSet = true; m_isIndirectActivity = value; } /** *Indicates whether an activity is indirect or direct. An indirect activity * results from a direct activity performed on a parent resource. For example, * sharing a parent folder (the direct activity) shares all of the subfolders and * documents within the parent folder (the indirect activity).
*/ inline Activity& WithIsIndirectActivity(bool value) { SetIsIndirectActivity(value); return *this;} /** *The ID of the organization.
*/ inline const Aws::String& GetOrganizationId() const{ return m_organizationId; } /** *The ID of the organization.
*/ inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; } /** *The ID of the organization.
*/ inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; } /** *The ID of the organization.
*/ inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); } /** *The ID of the organization.
*/ inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); } /** *The ID of the organization.
*/ inline Activity& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;} /** *The ID of the organization.
*/ inline Activity& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;} /** *The ID of the organization.
*/ inline Activity& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;} /** *The user who performed the action.
*/ inline const UserMetadata& GetInitiator() const{ return m_initiator; } /** *The user who performed the action.
*/ inline bool InitiatorHasBeenSet() const { return m_initiatorHasBeenSet; } /** *The user who performed the action.
*/ inline void SetInitiator(const UserMetadata& value) { m_initiatorHasBeenSet = true; m_initiator = value; } /** *The user who performed the action.
*/ inline void SetInitiator(UserMetadata&& value) { m_initiatorHasBeenSet = true; m_initiator = std::move(value); } /** *The user who performed the action.
*/ inline Activity& WithInitiator(const UserMetadata& value) { SetInitiator(value); return *this;} /** *The user who performed the action.
*/ inline Activity& WithInitiator(UserMetadata&& value) { SetInitiator(std::move(value)); return *this;} /** *The list of users or groups impacted by this action. This is an optional * field and is filled for the following sharing activities: DOCUMENT_SHARED, * DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
*/ inline const Participants& GetParticipants() const{ return m_participants; } /** *The list of users or groups impacted by this action. This is an optional * field and is filled for the following sharing activities: DOCUMENT_SHARED, * DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
*/ inline bool ParticipantsHasBeenSet() const { return m_participantsHasBeenSet; } /** *The list of users or groups impacted by this action. This is an optional * field and is filled for the following sharing activities: DOCUMENT_SHARED, * DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
*/ inline void SetParticipants(const Participants& value) { m_participantsHasBeenSet = true; m_participants = value; } /** *The list of users or groups impacted by this action. This is an optional * field and is filled for the following sharing activities: DOCUMENT_SHARED, * DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
*/ inline void SetParticipants(Participants&& value) { m_participantsHasBeenSet = true; m_participants = std::move(value); } /** *The list of users or groups impacted by this action. This is an optional * field and is filled for the following sharing activities: DOCUMENT_SHARED, * DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
*/ inline Activity& WithParticipants(const Participants& value) { SetParticipants(value); return *this;} /** *The list of users or groups impacted by this action. This is an optional * field and is filled for the following sharing activities: DOCUMENT_SHARED, * DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
*/ inline Activity& WithParticipants(Participants&& value) { SetParticipants(std::move(value)); return *this;} /** *The metadata of the resource involved in the user action.
*/ inline const ResourceMetadata& GetResourceMetadata() const{ return m_resourceMetadata; } /** *The metadata of the resource involved in the user action.
*/ inline bool ResourceMetadataHasBeenSet() const { return m_resourceMetadataHasBeenSet; } /** *The metadata of the resource involved in the user action.
*/ inline void SetResourceMetadata(const ResourceMetadata& value) { m_resourceMetadataHasBeenSet = true; m_resourceMetadata = value; } /** *The metadata of the resource involved in the user action.
*/ inline void SetResourceMetadata(ResourceMetadata&& value) { m_resourceMetadataHasBeenSet = true; m_resourceMetadata = std::move(value); } /** *The metadata of the resource involved in the user action.
*/ inline Activity& WithResourceMetadata(const ResourceMetadata& value) { SetResourceMetadata(value); return *this;} /** *The metadata of the resource involved in the user action.
*/ inline Activity& WithResourceMetadata(ResourceMetadata&& value) { SetResourceMetadata(std::move(value)); return *this;} /** *The original parent of the resource. This is an optional field and is filled * for move activities.
*/ inline const ResourceMetadata& GetOriginalParent() const{ return m_originalParent; } /** *The original parent of the resource. This is an optional field and is filled * for move activities.
*/ inline bool OriginalParentHasBeenSet() const { return m_originalParentHasBeenSet; } /** *The original parent of the resource. This is an optional field and is filled * for move activities.
*/ inline void SetOriginalParent(const ResourceMetadata& value) { m_originalParentHasBeenSet = true; m_originalParent = value; } /** *The original parent of the resource. This is an optional field and is filled * for move activities.
*/ inline void SetOriginalParent(ResourceMetadata&& value) { m_originalParentHasBeenSet = true; m_originalParent = std::move(value); } /** *The original parent of the resource. This is an optional field and is filled * for move activities.
*/ inline Activity& WithOriginalParent(const ResourceMetadata& value) { SetOriginalParent(value); return *this;} /** *The original parent of the resource. This is an optional field and is filled * for move activities.
*/ inline Activity& WithOriginalParent(ResourceMetadata&& value) { SetOriginalParent(std::move(value)); return *this;} /** *Metadata of the commenting activity. This is an optional field and is filled * for commenting activities.
*/ inline const CommentMetadata& GetCommentMetadata() const{ return m_commentMetadata; } /** *Metadata of the commenting activity. This is an optional field and is filled * for commenting activities.
*/ inline bool CommentMetadataHasBeenSet() const { return m_commentMetadataHasBeenSet; } /** *Metadata of the commenting activity. This is an optional field and is filled * for commenting activities.
*/ inline void SetCommentMetadata(const CommentMetadata& value) { m_commentMetadataHasBeenSet = true; m_commentMetadata = value; } /** *Metadata of the commenting activity. This is an optional field and is filled * for commenting activities.
*/ inline void SetCommentMetadata(CommentMetadata&& value) { m_commentMetadataHasBeenSet = true; m_commentMetadata = std::move(value); } /** *Metadata of the commenting activity. This is an optional field and is filled * for commenting activities.
*/ inline Activity& WithCommentMetadata(const CommentMetadata& value) { SetCommentMetadata(value); return *this;} /** *Metadata of the commenting activity. This is an optional field and is filled * for commenting activities.
*/ inline Activity& WithCommentMetadata(CommentMetadata&& value) { SetCommentMetadata(std::move(value)); return *this;} private: ActivityType m_type; bool m_typeHasBeenSet = false; Aws::Utils::DateTime m_timeStamp; bool m_timeStampHasBeenSet = false; bool m_isIndirectActivity; bool m_isIndirectActivityHasBeenSet = false; Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; UserMetadata m_initiator; bool m_initiatorHasBeenSet = false; Participants m_participants; bool m_participantsHasBeenSet = false; ResourceMetadata m_resourceMetadata; bool m_resourceMetadataHasBeenSet = false; ResourceMetadata m_originalParent; bool m_originalParentHasBeenSet = false; CommentMetadata m_commentMetadata; bool m_commentMetadataHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws