Package com.dropbox.core.v2.teamlog
Class MemberChangeStatusDetails.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.MemberChangeStatusDetails.Builder
-
- Enclosing class:
- MemberChangeStatusDetails
public static class MemberChangeStatusDetails.Builder extends java.lang.Object
Builder forMemberChangeStatusDetails
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ActionDetails
action
protected java.lang.String
newTeam
protected MemberStatus
newValue
protected java.lang.String
previousTeam
protected MemberStatus
previousValue
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(MemberStatus newValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberChangeStatusDetails
build()
Builds an instance ofMemberChangeStatusDetails
configured with this builder's valuesMemberChangeStatusDetails.Builder
withAction(ActionDetails action)
Set value for optional field.MemberChangeStatusDetails.Builder
withNewTeam(java.lang.String newTeam)
Set value for optional field.MemberChangeStatusDetails.Builder
withPreviousTeam(java.lang.String previousTeam)
Set value for optional field.MemberChangeStatusDetails.Builder
withPreviousValue(MemberStatus previousValue)
Set value for optional field.
-
-
-
Field Detail
-
newValue
protected final MemberStatus newValue
-
previousValue
protected MemberStatus previousValue
-
action
protected ActionDetails action
-
newTeam
protected java.lang.String newTeam
-
previousTeam
protected java.lang.String previousTeam
-
-
Constructor Detail
-
Builder
protected Builder(MemberStatus newValue)
-
-
Method Detail
-
withPreviousValue
public MemberChangeStatusDetails.Builder withPreviousValue(MemberStatus previousValue)
Set value for optional field.- Parameters:
previousValue
- Previous member status. Might be missing due to historical data gap.- Returns:
- this builder
-
withAction
public MemberChangeStatusDetails.Builder withAction(ActionDetails action)
Set value for optional field.- Parameters:
action
- Additional information indicating the action taken that caused status change.- Returns:
- this builder
-
withNewTeam
public MemberChangeStatusDetails.Builder withNewTeam(java.lang.String newTeam)
Set value for optional field.- Parameters:
newTeam
- The user's new team name. This field is relevant when the user is transferred off the team.- Returns:
- this builder
-
withPreviousTeam
public MemberChangeStatusDetails.Builder withPreviousTeam(java.lang.String previousTeam)
Set value for optional field.- Parameters:
previousTeam
- The user's previous team name. This field is relevant when the user is transferred onto the team.- Returns:
- this builder
-
build
public MemberChangeStatusDetails build()
Builds an instance ofMemberChangeStatusDetails
configured with this builder's values- Returns:
- new instance of
MemberChangeStatusDetails
-
-