Package com.dropbox.core.v2.teamlog
Class TfaChangeStatusDetails
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.TfaChangeStatusDetails
-
public class TfaChangeStatusDetails extends java.lang.ObjectEnabled/disabled/changed two-step verification setting.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTfaChangeStatusDetails.BuilderBuilder forTfaChangeStatusDetails.
-
Field Summary
Fields Modifier and Type Field Description protected TfaConfigurationnewValueprotected TfaConfigurationpreviousValueprotected java.lang.BooleanusedRescueCode
-
Constructor Summary
Constructors Constructor Description TfaChangeStatusDetails(TfaConfiguration newValue)Enabled/disabled/changed two-step verification setting.TfaChangeStatusDetails(TfaConfiguration newValue, TfaConfiguration previousValue, java.lang.Boolean usedRescueCode)Enabled/disabled/changed two-step verification setting.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)TfaConfigurationgetNewValue()The new two factor authentication configuration.TfaConfigurationgetPreviousValue()The previous two factor authentication configuration.java.lang.BooleangetUsedRescueCode()Used two factor authentication rescue code.inthashCode()static TfaChangeStatusDetails.BuildernewBuilder(TfaConfiguration newValue)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
newValue
protected final TfaConfiguration newValue
-
previousValue
protected final TfaConfiguration previousValue
-
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 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:
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 benull.- 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
nullif 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
nullif 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 benull.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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
-
-