Package com.nexmo.client.insight
Enum InsightStatus
- java.lang.Object
-
- java.lang.Enum<InsightStatus>
-
- com.nexmo.client.insight.InsightStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InsightStatus>
public enum InsightStatus extends java.lang.Enum<InsightStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERNAL_ERRORINVALID_CREDENTIALSINVALID_PARAMSPARTNER_QUOTA_EXCEEDEDSUCCESSTHROTTLEDUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InsightStatusfromInt(int insightStatus)Look up theInsightStatusbased on the int value.intgetInsightStatus()static InsightStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static InsightStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final InsightStatus SUCCESS
-
THROTTLED
public static final InsightStatus THROTTLED
-
INVALID_PARAMS
public static final InsightStatus INVALID_PARAMS
-
INVALID_CREDENTIALS
public static final InsightStatus INVALID_CREDENTIALS
-
INTERNAL_ERROR
public static final InsightStatus INTERNAL_ERROR
-
PARTNER_QUOTA_EXCEEDED
public static final InsightStatus PARTNER_QUOTA_EXCEEDED
-
UNKNOWN
public static final InsightStatus UNKNOWN
-
-
Method Detail
-
values
public static InsightStatus[] 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 (InsightStatus c : InsightStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InsightStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
fromInt
public static InsightStatus fromInt(int insightStatus)
Look up theInsightStatusbased on the int value.- Parameters:
insightStatus- the int value of the insight status.- Returns:
- InsightStatus based on the int value given.
-
getInsightStatus
public int getInsightStatus()
-
-