Package com.dropbox.core.v2.teamlog
Class MemberChangeStatusDetails
java.lang.Object
com.dropbox.core.v2.teamlog.MemberChangeStatusDetails
Changed member status (invited, joined, suspended, etc.).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ActionDetailsprotected final Stringprotected final MemberStatusprotected final Stringprotected final MemberStatus -
Constructor Summary
ConstructorsConstructorDescriptionMemberChangeStatusDetails(MemberStatus newValue) Changed member status (invited, joined, suspended, etc.).MemberChangeStatusDetails(MemberStatus newValue, MemberStatus previousValue, ActionDetails action, String newTeam, String previousTeam) Changed member status (invited, joined, suspended, etc.). -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdditional information indicating the action taken that caused status change.The user's new team name.New member status.The user's previous team name.Previous member status.inthashCode()newBuilder(MemberStatus newValue) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
previousValue
-
newValue
-
action
-
newTeam
-
previousTeam
-
-
Constructor Details
-
MemberChangeStatusDetails
public MemberChangeStatusDetails(@Nonnull MemberStatus newValue, @Nullable MemberStatus previousValue, @Nullable ActionDetails action, @Nullable String newTeam, @Nullable String previousTeam) Changed member status (invited, joined, suspended, etc.).Use
newBuilder(com.dropbox.core.v2.teamlog.MemberStatus)to create instances of this class without specifying values for all optional fields.- Parameters:
newValue- New member status. Must not benull.previousValue- Previous member status. Might be missing due to historical data gap.action- Additional information indicating the action taken that caused status change.newTeam- The user's new team name. This field is relevant when the user is transferred off the team.previousTeam- The user's previous team name. This field is relevant when the user is transferred onto the team.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
MemberChangeStatusDetails
Changed member status (invited, joined, suspended, etc.).The default values for unset fields will be used.
- Parameters:
newValue- New member status. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getNewValue
New member status.- Returns:
- value for this field, never
null.
-
getPreviousValue
Previous member status. Might be missing due to historical data gap.- Returns:
- value for this field, or
nullif not present.
-
getAction
Additional information indicating the action taken that caused status change.- Returns:
- value for this field, or
nullif not present.
-
getNewTeam
The user's new team name. This field is relevant when the user is transferred off the team.- Returns:
- value for this field, or
nullif not present.
-
getPreviousTeam
The user's previous team name. This field is relevant when the user is transferred onto the team.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
newValue- New member status. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-