Package com.dropbox.core.v2.teamlog
Class TfaChangeStatusDetails
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.TfaChangeStatusDetails
-
public class TfaChangeStatusDetails extends java.lang.Object
Enabled/disabled/changed two-step verification setting.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TfaChangeStatusDetails.Builder
Builder forTfaChangeStatusDetails
.
-
Field Summary
Fields Modifier and Type Field Description protected TfaConfiguration
newValue
protected TfaConfiguration
previousValue
protected java.lang.Boolean
usedRescueCode
-
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 boolean
equals(java.lang.Object obj)
TfaConfiguration
getNewValue()
The new two factor authentication configuration.TfaConfiguration
getPreviousValue()
The previous two factor authentication configuration.java.lang.Boolean
getUsedRescueCode()
Used two factor authentication rescue code.int
hashCode()
static TfaChangeStatusDetails.Builder
newBuilder(TfaConfiguration newValue)
Returns a new builder for creating an instance of this class.java.lang.String
toString()
java.lang.String
toStringMultiline()
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
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 benull
.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-