Package com.dropbox.core.v2.teamlog
Class MemberChangeStatusDetails
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.MemberChangeStatusDetails
-
public class MemberChangeStatusDetails extends java.lang.Object
Changed member status (invited, joined, suspended, etc.).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MemberChangeStatusDetails.Builder
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 Constructor Description MemberChangeStatusDetails(MemberStatus newValue)
Changed member status (invited, joined, suspended, etc.).MemberChangeStatusDetails(MemberStatus newValue, MemberStatus previousValue, ActionDetails action, java.lang.String newTeam, java.lang.String previousTeam)
Changed member status (invited, joined, suspended, etc.).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
ActionDetails
getAction()
Additional information indicating the action taken that caused status change.java.lang.String
getNewTeam()
The user's new team name.MemberStatus
getNewValue()
New member status.java.lang.String
getPreviousTeam()
The user's previous team name.MemberStatus
getPreviousValue()
Previous member status.int
hashCode()
static MemberChangeStatusDetails.Builder
newBuilder(MemberStatus newValue)
Returns a new builder for creating an instance of this class.java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
previousValue
@Nullable protected final MemberStatus previousValue
-
newValue
@Nonnull protected final MemberStatus newValue
-
action
@Nullable protected final ActionDetails action
-
newTeam
@Nullable protected final java.lang.String newTeam
-
previousTeam
@Nullable protected final java.lang.String previousTeam
-
-
Constructor Detail
-
MemberChangeStatusDetails
public MemberChangeStatusDetails(@Nonnull MemberStatus newValue, @Nullable MemberStatus previousValue, @Nullable ActionDetails action, @Nullable java.lang.String newTeam, @Nullable java.lang.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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
MemberChangeStatusDetails
public MemberChangeStatusDetails(@Nonnull MemberStatus newValue)
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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getNewValue
@Nonnull public MemberStatus getNewValue()
New member status.- Returns:
- value for this field, never
null
.
-
getPreviousValue
@Nullable public MemberStatus getPreviousValue()
Previous member status. Might be missing due to historical data gap.- Returns:
- value for this field, or
null
if not present.
-
getAction
@Nullable public ActionDetails getAction()
Additional information indicating the action taken that caused status change.- Returns:
- value for this field, or
null
if not present.
-
getNewTeam
@Nullable public java.lang.String 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
null
if not present.
-
getPreviousTeam
@Nullable public java.lang.String 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
null
if not present.
-
newBuilder
public static MemberChangeStatusDetails.Builder newBuilder(MemberStatus newValue)
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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String 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
-
-