public class MemberChangeStatusDetails
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MemberChangeStatusDetails.Builder
Builder for
MemberChangeStatusDetails . |
Modifier and Type | Field and Description |
---|---|
protected ActionDetails |
action |
protected java.lang.String |
newTeam |
protected MemberStatus |
newValue |
protected java.lang.String |
previousTeam |
protected MemberStatus |
previousValue |
Constructor and 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.).
|
Modifier and Type | Method and 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.
|
protected final MemberStatus previousValue
protected final MemberStatus newValue
protected final ActionDetails action
protected final java.lang.String newTeam
protected final java.lang.String previousTeam
public MemberChangeStatusDetails(MemberStatus newValue, MemberStatus previousValue, ActionDetails action, java.lang.String newTeam, java.lang.String previousTeam)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
newValue
- New member status. Must not be null
.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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MemberChangeStatusDetails(MemberStatus newValue)
The default values for unset fields will be used.
newValue
- New member status. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MemberStatus getNewValue()
null
.public MemberStatus getPreviousValue()
null
if not present.public ActionDetails getAction()
null
if not present.public java.lang.String getNewTeam()
null
if not present.public java.lang.String getPreviousTeam()
null
if not present.public static MemberChangeStatusDetails.Builder newBuilder(MemberStatus newValue)
newValue
- New member status. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.