Package com.twilio.rest.conversations.v1
Enum Credential.PushType
- java.lang.Object
-
- java.lang.Enum<Credential.PushType>
-
- com.twilio.rest.conversations.v1.Credential.PushType
-
- All Implemented Interfaces:
Serializable,Comparable<Credential.PushType>
- Enclosing class:
- Credential
public static enum Credential.PushType extends Enum<Credential.PushType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Credential.PushTypeforValue(String value)StringtoString()static Credential.PushTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Credential.PushType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APN
public static final Credential.PushType APN
-
GCM
public static final Credential.PushType GCM
-
FCM
public static final Credential.PushType FCM
-
-
Method Detail
-
values
public static Credential.PushType[] 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 (Credential.PushType c : Credential.PushType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Credential.PushType 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:
toStringin classEnum<Credential.PushType>
-
forValue
public static Credential.PushType forValue(String value)
-
-