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.ObjectBuilder forTfaChangeStatusDetails.
-
-
Field Summary
Fields Modifier and Type Field Description protected TfaConfigurationnewValueprotected TfaConfigurationpreviousValueprotected java.lang.BooleanusedRescueCode
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(TfaConfiguration newValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TfaChangeStatusDetailsbuild()Builds an instance ofTfaChangeStatusDetailsconfigured with this builder's valuesTfaChangeStatusDetails.BuilderwithPreviousValue(TfaConfiguration previousValue)Set value for optional field.TfaChangeStatusDetails.BuilderwithUsedRescueCode(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 ofTfaChangeStatusDetailsconfigured with this builder's values- Returns:
- new instance of
TfaChangeStatusDetails
-
-