Package com.dropbox.core.v2.teamlog
Class TeamEvent.Builder
java.lang.Object
com.dropbox.core.v2.teamlog.TeamEvent.Builder
- Enclosing class:
TeamEvent
Builder for
TeamEvent.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActorLogInfoprotected List<AssetLogInfo> protected ContextLogInfoprotected final EventDetailsprotected final EventCategoryprotected final EventTypeprotected Booleanprotected OriginLogInfoprotected List<ParticipantLogInfo> protected final Date -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofTeamEventconfigured with this builder's valueswithActor(ActorLogInfo actor) Set value for optional field.withAssets(List<AssetLogInfo> assets) Set value for optional field.withContext(ContextLogInfo context) Set value for optional field.withInvolveNonTeamMember(Boolean involveNonTeamMember) Set value for optional field.withOrigin(OriginLogInfo origin) Set value for optional field.withParticipants(List<ParticipantLogInfo> participants) Set value for optional field.
-
Field Details
-
timestamp
-
eventCategory
-
eventType
-
details
-
actor
-
origin
-
involveNonTeamMember
-
context
-
participants
-
assets
-
-
Constructor Details
-
Builder
protected Builder(Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details)
-
-
Method Details
-
withActor
Set value for optional field.- Parameters:
actor- The entity who actually performed the action.- Returns:
- this builder
-
withOrigin
Set value for optional field.- Parameters:
origin- The origin from which the actor performed the action including information about host, ip address, location, session, etc. If the action was performed programmatically via the API the origin represents the API client.- Returns:
- this builder
-
withInvolveNonTeamMember
Set value for optional field.- Parameters:
involveNonTeamMember- True if the action involved a non team member either as the actor or as one of the affected users.- Returns:
- this builder
-
withContext
Set value for optional field.- Parameters:
context- The user or team on whose behalf the actor performed the action.- Returns:
- this builder
-
withParticipants
Set value for optional field.- Parameters:
participants- Zero or more users and/or groups that are affected by the action. Note that this list doesn't include any actors or users in context. Must not contain anullitem.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withAssets
Set value for optional field.- Parameters:
assets- Zero or more content assets involved in the action. Currently these include Dropbox files and folders but in the future we might add other asset types such as Paper documents, folders, projects, etc. Must not contain anullitem.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
build
Builds an instance ofTeamEventconfigured with this builder's values- Returns:
- new instance of
TeamEvent
-