Class MemberChangeStatusDetails

java.lang.Object
com.dropbox.core.v2.teamlog.MemberChangeStatusDetails

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

    • previousValue

      @Nullable protected final MemberStatus previousValue
    • newValue

      @Nonnull protected final MemberStatus newValue
    • action

      @Nullable protected final ActionDetails action
    • newTeam

      @Nullable protected final String newTeam
    • previousTeam

      @Nullable protected final String previousTeam
  • Constructor Details

    • MemberChangeStatusDetails

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

      public MemberChangeStatusDetails(@Nonnull 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:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getNewValue

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

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

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

      @Nullable public 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

      @Nullable public 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:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public 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