public class GuestAdminChangeStatusDetails
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GuestAdminChangeStatusDetails.Builder
Builder for
GuestAdminChangeStatusDetails . |
Modifier and Type | Field and Description |
---|---|
protected TrustedTeamsRequestAction |
actionDetails |
protected java.lang.String |
guestTeamName |
protected java.lang.String |
hostTeamName |
protected boolean |
isGuest |
protected TrustedTeamsRequestState |
newValue |
protected TrustedTeamsRequestState |
previousValue |
Constructor and Description |
---|
GuestAdminChangeStatusDetails(boolean isGuest,
TrustedTeamsRequestState previousValue,
TrustedTeamsRequestState newValue,
TrustedTeamsRequestAction actionDetails)
Changed guest team admin status.
|
GuestAdminChangeStatusDetails(boolean isGuest,
TrustedTeamsRequestState previousValue,
TrustedTeamsRequestState newValue,
TrustedTeamsRequestAction actionDetails,
java.lang.String guestTeamName,
java.lang.String hostTeamName)
Changed guest team admin status.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
TrustedTeamsRequestAction |
getActionDetails()
Action details.
|
java.lang.String |
getGuestTeamName()
The name of the guest team.
|
java.lang.String |
getHostTeamName()
The name of the host team.
|
boolean |
getIsGuest()
True for guest, false for host.
|
TrustedTeamsRequestState |
getNewValue()
New request state.
|
TrustedTeamsRequestState |
getPreviousValue()
Previous request state.
|
int |
hashCode() |
static GuestAdminChangeStatusDetails.Builder |
newBuilder(boolean isGuest,
TrustedTeamsRequestState previousValue,
TrustedTeamsRequestState newValue,
TrustedTeamsRequestAction actionDetails)
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 boolean isGuest
protected final java.lang.String guestTeamName
protected final java.lang.String hostTeamName
protected final TrustedTeamsRequestState previousValue
protected final TrustedTeamsRequestState newValue
protected final TrustedTeamsRequestAction actionDetails
public GuestAdminChangeStatusDetails(boolean isGuest, TrustedTeamsRequestState previousValue, TrustedTeamsRequestState newValue, TrustedTeamsRequestAction actionDetails, java.lang.String guestTeamName, java.lang.String hostTeamName)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
isGuest
- True for guest, false for host.previousValue
- Previous request state. Must not be null
.newValue
- New request state. Must not be null
.actionDetails
- Action details. Must not be null
.guestTeamName
- The name of the guest team.hostTeamName
- The name of the host team.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GuestAdminChangeStatusDetails(boolean isGuest, TrustedTeamsRequestState previousValue, TrustedTeamsRequestState newValue, TrustedTeamsRequestAction actionDetails)
The default values for unset fields will be used.
isGuest
- True for guest, false for host.previousValue
- Previous request state. Must not be null
.newValue
- New request state. Must not be null
.actionDetails
- Action details. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public boolean getIsGuest()
public TrustedTeamsRequestState getPreviousValue()
null
.public TrustedTeamsRequestState getNewValue()
null
.public TrustedTeamsRequestAction getActionDetails()
null
.public java.lang.String getGuestTeamName()
null
if not present.public java.lang.String getHostTeamName()
null
if not present.public static GuestAdminChangeStatusDetails.Builder newBuilder(boolean isGuest, TrustedTeamsRequestState previousValue, TrustedTeamsRequestState newValue, TrustedTeamsRequestAction actionDetails)
isGuest
- True for guest, false for host.previousValue
- Previous request state. Must not be null
.newValue
- New request state. Must not be null
.actionDetails
- Action details. 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.