Package com.dropbox.core.v2.teamlog
Class TeamEvent.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.TeamEvent.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected ActorLogInfo
actor
protected java.util.List<AssetLogInfo>
assets
protected ContextLogInfo
context
protected EventDetails
details
protected EventCategory
eventCategory
protected EventType
eventType
protected java.lang.Boolean
involveNonTeamMember
protected OriginLogInfo
origin
protected java.util.List<ParticipantLogInfo>
participants
protected java.util.Date
timestamp
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.util.Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TeamEvent
build()
Builds an instance ofTeamEvent
configured with this builder's valuesTeamEvent.Builder
withActor(ActorLogInfo actor)
Set value for optional field.TeamEvent.Builder
withAssets(java.util.List<AssetLogInfo> assets)
Set value for optional field.TeamEvent.Builder
withContext(ContextLogInfo context)
Set value for optional field.TeamEvent.Builder
withInvolveNonTeamMember(java.lang.Boolean involveNonTeamMember)
Set value for optional field.TeamEvent.Builder
withOrigin(OriginLogInfo origin)
Set value for optional field.TeamEvent.Builder
withParticipants(java.util.List<ParticipantLogInfo> participants)
Set value for optional field.
-
-
-
Field Detail
-
timestamp
protected final java.util.Date timestamp
-
eventCategory
protected final EventCategory eventCategory
-
eventType
protected final EventType eventType
-
details
protected final EventDetails details
-
actor
protected ActorLogInfo actor
-
origin
protected OriginLogInfo origin
-
involveNonTeamMember
protected java.lang.Boolean involveNonTeamMember
-
context
protected ContextLogInfo context
-
participants
protected java.util.List<ParticipantLogInfo> participants
-
assets
protected java.util.List<AssetLogInfo> assets
-
-
Constructor Detail
-
Builder
protected Builder(java.util.Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details)
-
-
Method Detail
-
withActor
public TeamEvent.Builder withActor(ActorLogInfo actor)
Set value for optional field.- Parameters:
actor
- The entity who actually performed the action. Might be missing due to historical data gap.- Returns:
- this builder
-
withOrigin
public TeamEvent.Builder withOrigin(OriginLogInfo origin)
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
public TeamEvent.Builder withInvolveNonTeamMember(java.lang.Boolean involveNonTeamMember)
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. Might be missing due to historical data gap.- Returns:
- this builder
-
withContext
public TeamEvent.Builder withContext(ContextLogInfo context)
Set value for optional field.- Parameters:
context
- The user or team on whose behalf the actor performed the action. Might be missing due to historical data gap.- Returns:
- this builder
-
withParticipants
public TeamEvent.Builder withParticipants(java.util.List<ParticipantLogInfo> participants)
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 anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withAssets
public TeamEvent.Builder withAssets(java.util.List<AssetLogInfo> assets)
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 anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-