Package com.dropbox.core.v2.teamlog
Class TfaChangeStatusDetails
java.lang.Object
com.dropbox.core.v2.teamlog.TfaChangeStatusDetails
Enabled/disabled/changed two-factor authentication setting.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TfaConfigurationprotected final TfaConfigurationprotected final Boolean -
Constructor Summary
ConstructorsConstructorDescriptionTfaChangeStatusDetails(TfaConfiguration newValue) Enabled/disabled/changed two-factor authentication setting.TfaChangeStatusDetails(TfaConfiguration newValue, TfaConfiguration previousValue, Boolean usedRescueCode) Enabled/disabled/changed two-factor authentication setting. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe new two factor authentication configuration.The previous two factor authentication configuration.Used two factor authentication rescue code.inthashCode()newBuilder(TfaConfiguration newValue) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
newValue
-
previousValue
-
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 benull.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
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 benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getNewValue
The new two factor authentication configuration.- Returns:
- value for this field, never
null.
-
getPreviousValue
The previous two factor authentication configuration. Might be missing due to historical data gap.- Returns:
- value for this field, or
nullif not present.
-
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
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
newValue- The new two factor authentication configuration. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-