Interface Activity.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Activity.Builder,
,Activity> SdkBuilder<Activity.Builder,
,Activity> SdkPojo
- Enclosing class:
Activity
-
Method Summary
Modifier and TypeMethodDescriptiondefault Activity.Builder
commentMetadata
(Consumer<CommentMetadata.Builder> commentMetadata) Metadata of the commenting activity.commentMetadata
(CommentMetadata commentMetadata) Metadata of the commenting activity.default Activity.Builder
initiator
(Consumer<UserMetadata.Builder> initiator) The user who performed the action.initiator
(UserMetadata initiator) The user who performed the action.isIndirectActivity
(Boolean isIndirectActivity) Indicates whether an activity is indirect or direct.organizationId
(String organizationId) The ID of the organization.default Activity.Builder
originalParent
(Consumer<ResourceMetadata.Builder> originalParent) The original parent of the resource.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.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.resourceMetadata
(ResourceMetadata resourceMetadata) The metadata of the resource involved in the user action.The timestamp when the action was performed.The activity type.type
(ActivityType type) The activity type.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
type
The activity type.
- Parameters:
type
- The activity type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The activity type.
- Parameters:
type
- The activity type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeStamp
The timestamp when the action was performed.
- Parameters:
timeStamp
- The timestamp when the action was performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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).
- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationId
The ID of the organization.
- Parameters:
organizationId
- The ID of the organization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initiator
The user who performed the action.
- Parameters:
initiator
- The user who performed the action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initiator
The user who performed the action.
This is a convenience method that creates an instance of theUserMetadata.Builder
avoiding the need to create one manually viaUserMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinitiator(UserMetadata)
.- Parameters:
initiator
- a consumer that will call methods onUserMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 method that creates an instance of theParticipants.Builder
avoiding the need to create one manually viaParticipants.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toparticipants(Participants)
.- Parameters:
participants
- a consumer that will call methods onParticipants.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceMetadata
The metadata of the resource involved in the user action.
- Parameters:
resourceMetadata
- The metadata of the resource involved in the user action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceMetadata
The metadata of the resource involved in the user action.
This is a convenience method that creates an instance of theResourceMetadata.Builder
avoiding the need to create one manually viaResourceMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceMetadata(ResourceMetadata)
.- Parameters:
resourceMetadata
- a consumer that will call methods onResourceMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
originalParent
The original parent of the resource. This is an optional field and is filled for move activities.
- Parameters:
originalParent
- The original parent of the resource. This is an optional field and is filled for move activities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originalParent
The original parent of the resource. This is an optional field and is filled for move activities.
This is a convenience method that creates an instance of theResourceMetadata.Builder
avoiding the need to create one manually viaResourceMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooriginalParent(ResourceMetadata)
.- Parameters:
originalParent
- a consumer that will call methods onResourceMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
commentMetadata
Metadata of the commenting activity. This is an optional field and is filled for commenting activities.
- Parameters:
commentMetadata
- Metadata of the commenting activity. This is an optional field and is filled for commenting activities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commentMetadata
Metadata of the commenting activity. This is an optional field and is filled for commenting activities.
This is a convenience method that creates an instance of theCommentMetadata.Builder
avoiding the need to create one manually viaCommentMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocommentMetadata(CommentMetadata)
.- Parameters:
commentMetadata
- a consumer that will call methods onCommentMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-