public class TfaChangeStatusDetails
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TfaChangeStatusDetails.Builder
Builder for
TfaChangeStatusDetails . |
Modifier and Type | Field and Description |
---|---|
protected TfaConfiguration |
newValue |
protected TfaConfiguration |
previousValue |
protected java.lang.Boolean |
usedRescueCode |
Constructor and 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.
|
Modifier and Type | Method and 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.
|
protected final TfaConfiguration newValue
protected final TfaConfiguration previousValue
protected final java.lang.Boolean usedRescueCode
public TfaChangeStatusDetails(TfaConfiguration newValue, TfaConfiguration previousValue, java.lang.Boolean usedRescueCode)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public TfaChangeStatusDetails(TfaConfiguration newValue)
The default values for unset fields will be used.
newValue
- The new two factor authentication configuration. Must
not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public TfaConfiguration getNewValue()
null
.public TfaConfiguration getPreviousValue()
null
if not present.public java.lang.Boolean getUsedRescueCode()
null
if not present.public static TfaChangeStatusDetails.Builder newBuilder(TfaConfiguration newValue)
newValue
- The new two factor authentication configuration. Must
not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.