Package com.dropbox.core.v2.teamlog
Class TeamEvent.Builder
- java.lang.Object
- 
- com.dropbox.core.v2.teamlog.TeamEvent.Builder
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ActorLogInfoactorprotected java.util.List<AssetLogInfo>assetsprotected ContextLogInfocontextprotected EventDetailsdetailsprotected EventCategoryeventCategoryprotected EventTypeeventTypeprotected java.lang.BooleaninvolveNonTeamMemberprotected OriginLogInfooriginprotected java.util.List<ParticipantLogInfo>participantsprotected java.util.Datetimestamp
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(java.util.Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TeamEventbuild()Builds an instance ofTeamEventconfigured with this builder's valuesTeamEvent.BuilderwithActor(ActorLogInfo actor)Set value for optional field.TeamEvent.BuilderwithAssets(java.util.List<AssetLogInfo> assets)Set value for optional field.TeamEvent.BuilderwithContext(ContextLogInfo context)Set value for optional field.TeamEvent.BuilderwithInvolveNonTeamMember(java.lang.Boolean involveNonTeamMember)Set value for optional field.TeamEvent.BuilderwithOrigin(OriginLogInfo origin)Set value for optional field.TeamEvent.BuilderwithParticipants(java.util.List<ParticipantLogInfo> participants)Set value for optional field.
 
- 
- 
- 
Field Detail- 
timestampprotected final java.util.Date timestamp 
 - 
eventCategoryprotected final EventCategory eventCategory 
 - 
eventTypeprotected final EventType eventType 
 - 
detailsprotected final EventDetails details 
 - 
actorprotected ActorLogInfo actor 
 - 
originprotected OriginLogInfo origin 
 - 
involveNonTeamMemberprotected java.lang.Boolean involveNonTeamMember 
 - 
contextprotected ContextLogInfo context 
 - 
participantsprotected java.util.List<ParticipantLogInfo> participants 
 - 
assetsprotected java.util.List<AssetLogInfo> assets 
 
- 
 - 
Constructor Detail- 
Builderprotected Builder(java.util.Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details)
 
- 
 - 
Method Detail- 
withActorpublic 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
 
 - 
withOriginpublic 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
 
 - 
withInvolveNonTeamMemberpublic 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
 
 - 
withContextpublic 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
 
 - 
withParticipantspublic 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 a- nullitem.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withAssetspublic 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 a- nullitem.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 
-