Enum ErrorSubCode
- java.lang.Object
-
- java.lang.Enum<ErrorSubCode>
-
- com.microsoft.azure.cognitiveservices.search.videosearch.models.ErrorSubCode
-
- All Implemented Interfaces:
Serializable,Comparable<ErrorSubCode>
public enum ErrorSubCode extends Enum<ErrorSubCode>
Defines values for ErrorSubCode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHORIZATION_DISABLEDEnum value AuthorizationDisabled.AUTHORIZATION_EXPIREDEnum value AuthorizationExpired.AUTHORIZATION_MISSINGEnum value AuthorizationMissing.AUTHORIZATION_REDUNDANCYEnum value AuthorizationRedundancy.BLOCKEDEnum value Blocked.HTTP_NOT_ALLOWEDEnum value HttpNotAllowed.NOT_IMPLEMENTEDEnum value NotImplemented.PARAMETER_INVALID_VALUEEnum value ParameterInvalidValue.PARAMETER_MISSINGEnum value ParameterMissing.RESOURCE_ERROREnum value ResourceError.UNEXPECTED_ERROREnum value UnexpectedError.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorSubCodefromString(String value)Parses a serialized value to a ErrorSubCode instance.StringtoString()static ErrorSubCodevalueOf(String name)Returns the enum constant of this type with the specified name.static ErrorSubCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNEXPECTED_ERROR
public static final ErrorSubCode UNEXPECTED_ERROR
Enum value UnexpectedError.
-
RESOURCE_ERROR
public static final ErrorSubCode RESOURCE_ERROR
Enum value ResourceError.
-
NOT_IMPLEMENTED
public static final ErrorSubCode NOT_IMPLEMENTED
Enum value NotImplemented.
-
PARAMETER_MISSING
public static final ErrorSubCode PARAMETER_MISSING
Enum value ParameterMissing.
-
PARAMETER_INVALID_VALUE
public static final ErrorSubCode PARAMETER_INVALID_VALUE
Enum value ParameterInvalidValue.
-
HTTP_NOT_ALLOWED
public static final ErrorSubCode HTTP_NOT_ALLOWED
Enum value HttpNotAllowed.
-
BLOCKED
public static final ErrorSubCode BLOCKED
Enum value Blocked.
-
AUTHORIZATION_MISSING
public static final ErrorSubCode AUTHORIZATION_MISSING
Enum value AuthorizationMissing.
-
AUTHORIZATION_REDUNDANCY
public static final ErrorSubCode AUTHORIZATION_REDUNDANCY
Enum value AuthorizationRedundancy.
-
AUTHORIZATION_DISABLED
public static final ErrorSubCode AUTHORIZATION_DISABLED
Enum value AuthorizationDisabled.
-
AUTHORIZATION_EXPIRED
public static final ErrorSubCode AUTHORIZATION_EXPIRED
Enum value AuthorizationExpired.
-
-
Method Detail
-
values
public static ErrorSubCode[] 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 (ErrorSubCode c : ErrorSubCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorSubCode 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
-
fromString
public static ErrorSubCode fromString(String value)
Parses a serialized value to a ErrorSubCode instance.- Parameters:
value- the serialized value to parse.- Returns:
- the parsed ErrorSubCode object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toStringin classEnum<ErrorSubCode>
-
-