Package com.dropbox.core.v2.teamlog
Class GuestAdminChangeStatusDetails
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.GuestAdminChangeStatusDetails
-
public class GuestAdminChangeStatusDetails extends java.lang.Object
Changed guest team admin status.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GuestAdminChangeStatusDetails.Builder
Builder forGuestAdminChangeStatusDetails
.
-
Field Summary
Fields Modifier and Type Field Description protected TrustedTeamsRequestAction
actionDetails
protected java.lang.String
guestTeamName
protected java.lang.String
hostTeamName
protected boolean
isGuest
protected TrustedTeamsRequestState
newValue
protected TrustedTeamsRequestState
previousValue
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
isGuest
protected final boolean isGuest
-
guestTeamName
@Nullable protected final java.lang.String guestTeamName
-
hostTeamName
@Nullable protected final java.lang.String hostTeamName
-
previousValue
@Nonnull protected final TrustedTeamsRequestState previousValue
-
newValue
@Nonnull protected final TrustedTeamsRequestState newValue
-
actionDetails
@Nonnull protected final TrustedTeamsRequestAction actionDetails
-
-
Constructor Detail
-
GuestAdminChangeStatusDetails
public GuestAdminChangeStatusDetails(boolean isGuest, @Nonnull TrustedTeamsRequestState previousValue, @Nonnull TrustedTeamsRequestState newValue, @Nonnull TrustedTeamsRequestAction actionDetails, @Nullable java.lang.String guestTeamName, @Nullable java.lang.String hostTeamName)
Changed guest team admin status.Use
newBuilder(boolean,com.dropbox.core.v2.teamlog.TrustedTeamsRequestState,com.dropbox.core.v2.teamlog.TrustedTeamsRequestState,com.dropbox.core.v2.teamlog.TrustedTeamsRequestAction)
to create instances of this class without specifying values for all optional fields.- Parameters:
isGuest
- True for guest, false for host.previousValue
- Previous request state. Must not benull
.newValue
- New request state. Must not benull
.actionDetails
- Action details. Must not benull
.guestTeamName
- The name of the guest team.hostTeamName
- The name of the host team.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
GuestAdminChangeStatusDetails
public GuestAdminChangeStatusDetails(boolean isGuest, @Nonnull TrustedTeamsRequestState previousValue, @Nonnull TrustedTeamsRequestState newValue, @Nonnull TrustedTeamsRequestAction actionDetails)
Changed guest team admin status.The default values for unset fields will be used.
- Parameters:
isGuest
- True for guest, false for host.previousValue
- Previous request state. Must not benull
.newValue
- New request state. Must not benull
.actionDetails
- Action details. Must not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getIsGuest
public boolean getIsGuest()
True for guest, false for host.- Returns:
- value for this field.
-
getPreviousValue
@Nonnull public TrustedTeamsRequestState getPreviousValue()
Previous request state.- Returns:
- value for this field, never
null
.
-
getNewValue
@Nonnull public TrustedTeamsRequestState getNewValue()
New request state.- Returns:
- value for this field, never
null
.
-
getActionDetails
@Nonnull public TrustedTeamsRequestAction getActionDetails()
Action details.- Returns:
- value for this field, never
null
.
-
getGuestTeamName
@Nullable public java.lang.String getGuestTeamName()
The name of the guest team.- Returns:
- value for this field, or
null
if not present.
-
getHostTeamName
@Nullable public java.lang.String getHostTeamName()
The name of the host team.- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public static GuestAdminChangeStatusDetails.Builder newBuilder(boolean isGuest, TrustedTeamsRequestState previousValue, TrustedTeamsRequestState newValue, TrustedTeamsRequestAction actionDetails)
Returns a new builder for creating an instance of this class.- Parameters:
isGuest
- True for guest, false for host.previousValue
- Previous request state. Must not benull
.newValue
- New request state. Must not benull
.actionDetails
- Action details. 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
-
-