Class TfaChangeStatusDetails


  • public class TfaChangeStatusDetails
    extends java.lang.Object
    Enabled/disabled/changed two-step verification setting.
    • Field Detail

      • usedRescueCode

        protected final java.lang.Boolean usedRescueCode
    • Constructor Detail

      • TfaChangeStatusDetails

        public TfaChangeStatusDetails​(TfaConfiguration newValue,
                                      TfaConfiguration previousValue,
                                      java.lang.Boolean usedRescueCode)
        Enabled/disabled/changed two-step verification 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:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • TfaChangeStatusDetails

        public TfaChangeStatusDetails​(TfaConfiguration newValue)
        Enabled/disabled/changed two-step verification setting.

        The default values for unset fields will be used.

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

      • getNewValue

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

        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

        public java.lang.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:
        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