Class MemberChangeStatusDetails


  • public class MemberChangeStatusDetails
    extends java.lang.Object
    Changed member status (invited, joined, suspended, etc.).
    • Field Detail

      • newTeam

        protected final java.lang.String newTeam
      • previousTeam

        protected final java.lang.String previousTeam
    • Constructor Detail

      • MemberChangeStatusDetails

        public MemberChangeStatusDetails​(MemberStatus newValue,
                                         MemberStatus previousValue,
                                         ActionDetails action,
                                         java.lang.String newTeam,
                                         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 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.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • MemberChangeStatusDetails

        public MemberChangeStatusDetails​(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 be null.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getNewValue

        public MemberStatus getNewValue()
        New member status.
        Returns:
        value for this field, never null.
      • getPreviousValue

        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

        public ActionDetails getAction()
        Additional information indicating the action taken that caused status change.
        Returns:
        value for this field, or null if not present.
      • getNewTeam

        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

        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 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