Interface Activity.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Activity.Builder,,Activity> SdkBuilder<Activity.Builder,,Activity> SdkPojo
- Enclosing class:
Activity
-
Method Summary
Modifier and TypeMethodDescriptiondefault Activity.BuildercommentMetadata(Consumer<CommentMetadata.Builder> commentMetadata) Metadata of the commenting activity.commentMetadata(CommentMetadata commentMetadata) Metadata of the commenting activity.default Activity.Builderinitiator(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.BuilderoriginalParent(Consumer<ResourceMetadata.Builder> originalParent) The original parent of the resource.originalParent(ResourceMetadata originalParent) The original parent of the resource.default Activity.Builderparticipants(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.BuilderresourceMetadata(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaUserMetadata.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaParticipants.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaResourceMetadata.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaResourceMetadata.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaCommentMetadata.builder().When the
Consumercompletes,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:
-