Interface Activity.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Activity.Builder,Activity>,SdkBuilder<Activity.Builder,Activity>,SdkPojo
- Enclosing class:
- Activity
public static interface Activity.Builder extends SdkPojo, CopyableBuilder<Activity.Builder,Activity>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Activity.BuildercommentMetadata(Consumer<CommentMetadata.Builder> commentMetadata)Metadata of the commenting activity.Activity.BuildercommentMetadata(CommentMetadata commentMetadata)Metadata of the commenting activity.default Activity.Builderinitiator(Consumer<UserMetadata.Builder> initiator)The user who performed the action.Activity.Builderinitiator(UserMetadata initiator)The user who performed the action.Activity.BuilderisIndirectActivity(Boolean isIndirectActivity)Indicates whether an activity is indirect or direct.Activity.BuilderorganizationId(String organizationId)The ID of the organization.default Activity.BuilderoriginalParent(Consumer<ResourceMetadata.Builder> originalParent)The original parent of the resource.Activity.BuilderoriginalParent(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.Activity.Builderparticipants(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.Activity.BuilderresourceMetadata(ResourceMetadata resourceMetadata)The metadata of the resource involved in the user action.Activity.BuildertimeStamp(Instant timeStamp)The timestamp when the action was performed.Activity.Buildertype(String type)The activity type.Activity.Buildertype(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 Detail
-
type
Activity.Builder type(String 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:
ActivityType,ActivityType
-
type
Activity.Builder type(ActivityType 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:
ActivityType,ActivityType
-
timeStamp
Activity.Builder timeStamp(Instant 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
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).
- 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
Activity.Builder organizationId(String 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
Activity.Builder initiator(UserMetadata 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
default Activity.Builder initiator(Consumer<UserMetadata.Builder> 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:
initiator(UserMetadata)
-
participants
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.
- 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
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 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:
participants(Participants)
-
resourceMetadata
Activity.Builder resourceMetadata(ResourceMetadata 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
default Activity.Builder resourceMetadata(Consumer<ResourceMetadata.Builder> 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:
resourceMetadata(ResourceMetadata)
-
originalParent
Activity.Builder originalParent(ResourceMetadata 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
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 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:
originalParent(ResourceMetadata)
-
commentMetadata
Activity.Builder commentMetadata(CommentMetadata 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
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 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:
commentMetadata(CommentMetadata)
-
-