public class RecoveryOptionType extends Object implements Serializable
A map containing a priority as a key, and recovery method name as a value.
| Constructor and Description |
|---|
RecoveryOptionType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
Specifies the recovery method for a user.
|
Integer |
getPriority()
A positive integer specifying priority of a method with 1 being the
highest priority.
|
int |
hashCode() |
void |
setName(RecoveryOptionNameType name)
Specifies the recovery method for a user.
|
void |
setName(String name)
Specifies the recovery method for a user.
|
void |
setPriority(Integer priority)
A positive integer specifying priority of a method with 1 being the
highest priority.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RecoveryOptionType |
withName(RecoveryOptionNameType name)
Specifies the recovery method for a user.
|
RecoveryOptionType |
withName(String name)
Specifies the recovery method for a user.
|
RecoveryOptionType |
withPriority(Integer priority)
A positive integer specifying priority of a method with 1 being the
highest priority.
|
public Integer getPriority()
A positive integer specifying priority of a method with 1 being the highest priority.
Constraints:
Range: 1 - 2
A positive integer specifying priority of a method with 1 being the highest priority.
public void setPriority(Integer priority)
A positive integer specifying priority of a method with 1 being the highest priority.
Constraints:
Range: 1 - 2
priority - A positive integer specifying priority of a method with 1 being the highest priority.
public RecoveryOptionType withPriority(Integer priority)
A positive integer specifying priority of a method with 1 being the highest priority.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 2
priority - A positive integer specifying priority of a method with 1 being the highest priority.
public String getName()
Specifies the recovery method for a user.
Constraints:
Allowed Values: verified_email, verified_phone_number, admin_only
Specifies the recovery method for a user.
RecoveryOptionNameTypepublic void setName(String name)
Specifies the recovery method for a user.
Constraints:
Allowed Values: verified_email, verified_phone_number, admin_only
name - Specifies the recovery method for a user.
RecoveryOptionNameTypepublic RecoveryOptionType withName(String name)
Specifies the recovery method for a user.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: verified_email, verified_phone_number, admin_only
name - Specifies the recovery method for a user.
RecoveryOptionNameTypepublic void setName(RecoveryOptionNameType name)
Specifies the recovery method for a user.
Constraints:
Allowed Values: verified_email, verified_phone_number, admin_only
name - Specifies the recovery method for a user.
RecoveryOptionNameTypepublic RecoveryOptionType withName(RecoveryOptionNameType name)
Specifies the recovery method for a user.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: verified_email, verified_phone_number, admin_only
name - Specifies the recovery method for a user.
RecoveryOptionNameTypepublic String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.