public static interface Activity.Builder extends SdkPojo, CopyableBuilder<Activity.Builder,Activity>
Modifier and Type | Method and Description |
---|---|
Activity.Builder |
commentMetadata(CommentMetadata commentMetadata)
Metadata of the commenting activity.
|
default Activity.Builder |
commentMetadata(Consumer<CommentMetadata.Builder> commentMetadata)
Metadata of the commenting activity.
|
default Activity.Builder |
initiator(Consumer<UserMetadata.Builder> initiator)
The user who performed the action.
|
Activity.Builder |
initiator(UserMetadata initiator)
The user who performed the action.
|
Activity.Builder |
isIndirectActivity(Boolean isIndirectActivity)
Indicates whether an activity is indirect or direct.
|
Activity.Builder |
organizationId(String organizationId)
The ID of the organization.
|
default Activity.Builder |
originalParent(Consumer<ResourceMetadata.Builder> originalParent)
The original parent of the resource.
|
Activity.Builder |
originalParent(ResourceMetadata originalParent)
The original parent of the resource.
|
default Activity.Builder |
participants(Consumer<Participants.Builder> participants)
The list of users or groups impacted by this action.
|
Activity.Builder |
participants(Participants participants)
The list of users or groups impacted by this action.
|
default Activity.Builder |
resourceMetadata(Consumer<ResourceMetadata.Builder> resourceMetadata)
The metadata of the resource involved in the user action.
|
Activity.Builder |
resourceMetadata(ResourceMetadata resourceMetadata)
The metadata of the resource involved in the user action.
|
Activity.Builder |
timeStamp(Instant timeStamp)
The timestamp when the action was performed.
|
Activity.Builder |
type(ActivityType type)
The activity type.
|
Activity.Builder |
type(String type)
The activity type.
|
copy
applyMutation, build
Activity.Builder type(String type)
The activity type.
type
- The activity type.ActivityType
,
ActivityType
Activity.Builder type(ActivityType type)
The activity type.
type
- The activity type.ActivityType
,
ActivityType
Activity.Builder timeStamp(Instant timeStamp)
The timestamp when the action was performed.
timeStamp
- The timestamp when the action was performed.Activity.Builder isIndirectActivity(Boolean 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).
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).Activity.Builder organizationId(String organizationId)
The ID of the organization.
organizationId
- The ID of the organization.Activity.Builder initiator(UserMetadata initiator)
The user who performed the action.
initiator
- The user who performed the action.default Activity.Builder initiator(Consumer<UserMetadata.Builder> initiator)
The user who performed the action.
This is a convenience that creates an instance of theUserMetadata.Builder
avoiding the need to
create one manually via UserMetadata.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to initiator(UserMetadata)
.initiator
- a consumer that will call methods on UserMetadata.Builder
initiator(UserMetadata)
Activity.Builder participants(Participants 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.
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.default Activity.Builder participants(Consumer<Participants.Builder> 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.
This is a convenience that creates an instance of theParticipants.Builder
avoiding the need to
create one manually via Participants.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to participants(Participants)
.participants
- a consumer that will call methods on Participants.Builder
participants(Participants)
Activity.Builder resourceMetadata(ResourceMetadata resourceMetadata)
The metadata of the resource involved in the user action.
resourceMetadata
- The metadata of the resource involved in the user action.default Activity.Builder resourceMetadata(Consumer<ResourceMetadata.Builder> resourceMetadata)
The metadata of the resource involved in the user action.
This is a convenience that creates an instance of theResourceMetadata.Builder
avoiding the need to
create one manually via ResourceMetadata.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to resourceMetadata(ResourceMetadata)
.resourceMetadata
- a consumer that will call methods on ResourceMetadata.Builder
resourceMetadata(ResourceMetadata)
Activity.Builder originalParent(ResourceMetadata originalParent)
The original parent of the resource. This is an optional field and is filled for move activities.
originalParent
- The original parent of the resource. This is an optional field and is filled for move activities.default Activity.Builder originalParent(Consumer<ResourceMetadata.Builder> originalParent)
The original parent of the resource. This is an optional field and is filled for move activities.
This is a convenience that creates an instance of theResourceMetadata.Builder
avoiding the need to
create one manually via ResourceMetadata.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to originalParent(ResourceMetadata)
.originalParent
- a consumer that will call methods on ResourceMetadata.Builder
originalParent(ResourceMetadata)
Activity.Builder commentMetadata(CommentMetadata commentMetadata)
Metadata of the commenting activity. This is an optional field and is filled for commenting activities.
commentMetadata
- Metadata of the commenting activity. This is an optional field and is filled for commenting
activities.default Activity.Builder commentMetadata(Consumer<CommentMetadata.Builder> commentMetadata)
Metadata of the commenting activity. This is an optional field and is filled for commenting activities.
This is a convenience that creates an instance of theCommentMetadata.Builder
avoiding the need to
create one manually via CommentMetadata.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to commentMetadata(CommentMetadata)
.commentMetadata
- a consumer that will call methods on CommentMetadata.Builder
commentMetadata(CommentMetadata)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.