Enum Factor.FactorTypes
- java.lang.Object
-
- java.lang.Enum<Factor.FactorTypes>
-
- com.twilio.rest.authy.v1.service.entity.Factor.FactorTypes
-
- All Implemented Interfaces:
Serializable
,Comparable<Factor.FactorTypes>
- Enclosing class:
- Factor
public static enum Factor.FactorTypes extends Enum<Factor.FactorTypes>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Factor.FactorTypes
forValue(String value)
Generate a FactorTypes from a string.String
toString()
static Factor.FactorTypes
valueOf(String name)
Returns the enum constant of this type with the specified name.static Factor.FactorTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APP_PUSH
public static final Factor.FactorTypes APP_PUSH
-
SMS
public static final Factor.FactorTypes SMS
-
TOTP
public static final Factor.FactorTypes TOTP
-
-
Method Detail
-
values
public static Factor.FactorTypes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Factor.FactorTypes c : Factor.FactorTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Factor.FactorTypes valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<Factor.FactorTypes>
-
forValue
public static Factor.FactorTypes forValue(String value)
Generate a FactorTypes from a string.- Parameters:
value
- string value- Returns:
- generated FactorTypes
-
-