Class TfaChangeStatusDetails

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

public class TfaChangeStatusDetails extends Object
Enabled/disabled/changed two-factor authentication setting.
  • Field Details

    • newValue

      @Nonnull protected final TfaConfiguration newValue
    • previousValue

      @Nullable protected final TfaConfiguration previousValue
    • usedRescueCode

      @Nullable protected final Boolean usedRescueCode
  • Constructor Details

    • TfaChangeStatusDetails

      public TfaChangeStatusDetails(@Nonnull TfaConfiguration newValue, @Nullable TfaConfiguration previousValue, @Nullable Boolean usedRescueCode)
      Enabled/disabled/changed two-factor authentication setting.

      Use newBuilder(com.dropbox.core.v2.teamlog.TfaConfiguration) to create instances of this class without specifying values for all optional fields.

      Parameters:
      newValue - The new two factor authentication configuration. Must not be null.
      previousValue - The previous two factor authentication configuration. Might be missing due to historical data gap.
      usedRescueCode - Used two factor authentication rescue code. This flag is relevant when the two factor authentication configuration is disabled.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • TfaChangeStatusDetails

      public TfaChangeStatusDetails(@Nonnull TfaConfiguration newValue)
      Enabled/disabled/changed two-factor authentication setting.

      The default values for unset fields will be used.

      Parameters:
      newValue - The new two factor authentication configuration. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getNewValue

      @Nonnull public TfaConfiguration getNewValue()
      The new two factor authentication configuration.
      Returns:
      value for this field, never null.
    • getPreviousValue

      @Nullable public TfaConfiguration getPreviousValue()
      The previous two factor authentication configuration. Might be missing due to historical data gap.
      Returns:
      value for this field, or null if not present.
    • getUsedRescueCode

      @Nullable public Boolean getUsedRescueCode()
      Used two factor authentication rescue code. This flag is relevant when the two factor authentication configuration is disabled.
      Returns:
      value for this field, or null if not present.
    • newBuilder

      public static TfaChangeStatusDetails.Builder newBuilder(TfaConfiguration newValue)
      Returns a new builder for creating an instance of this class.
      Parameters:
      newValue - The new two factor authentication configuration. 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