Package com.dropbox.core.v2.teamlog
Class TfaChangeStatusDetails.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.TfaChangeStatusDetails.Builder
-
- Enclosing class:
- TfaChangeStatusDetails
public static class TfaChangeStatusDetails.Builder extends java.lang.Object
Builder forTfaChangeStatusDetails
.
-
-
Field Summary
Fields Modifier and Type Field Description protected TfaConfiguration
newValue
protected TfaConfiguration
previousValue
protected java.lang.Boolean
usedRescueCode
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(TfaConfiguration newValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TfaChangeStatusDetails
build()
Builds an instance ofTfaChangeStatusDetails
configured with this builder's valuesTfaChangeStatusDetails.Builder
withPreviousValue(TfaConfiguration previousValue)
Set value for optional field.TfaChangeStatusDetails.Builder
withUsedRescueCode(java.lang.Boolean usedRescueCode)
Set value for optional field.
-
-
-
Field Detail
-
newValue
protected final TfaConfiguration newValue
-
previousValue
protected TfaConfiguration previousValue
-
usedRescueCode
protected java.lang.Boolean usedRescueCode
-
-
Constructor Detail
-
Builder
protected Builder(TfaConfiguration newValue)
-
-
Method Detail
-
withPreviousValue
public TfaChangeStatusDetails.Builder withPreviousValue(TfaConfiguration previousValue)
Set value for optional field.- Parameters:
previousValue
- The previous two factor authentication configuration. Might be missing due to historical data gap.- Returns:
- this builder
-
withUsedRescueCode
public TfaChangeStatusDetails.Builder withUsedRescueCode(java.lang.Boolean usedRescueCode)
Set value for optional field.- Parameters:
usedRescueCode
- Used two factor authentication rescue code. This flag is relevant when the two factor authentication configuration is disabled.- Returns:
- this builder
-
build
public TfaChangeStatusDetails build()
Builds an instance ofTfaChangeStatusDetails
configured with this builder's values- Returns:
- new instance of
TfaChangeStatusDetails
-
-