Class GuestAdminChangeStatusDetails


  • public class GuestAdminChangeStatusDetails
    extends java.lang.Object
    Changed guest team admin status.
    • Field Detail

      • isGuest

        protected final boolean isGuest
      • guestTeamName

        @Nullable
        protected final java.lang.String guestTeamName
      • hostTeamName

        @Nullable
        protected final java.lang.String hostTeamName
    • Constructor Detail

      • 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 be null.
        newValue - New request state. Must not be null.
        actionDetails - Action details. Must not be null.
        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 be null.
        newValue - New request state. Must not be null.
        actionDetails - Action details. Must not be null.
        Returns:
        builder for this class.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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