Enum AWSIotDeviceErrorCode
- All Implemented Interfaces:
Serializable,Comparable<AWSIotDeviceErrorCode>,java.lang.constant.Constable
These error codes are used by the server in acknowledgement message for the
shadow methods, namely Get, Update, and Delete.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe bad request.The Conflict.The Forbidden.The Internal service failure.The Not found.The Payload too large.The Too many requests.The Unauthorized.The Unsupported media type. -
Method Summary
Modifier and TypeMethodDescriptionlonggetValue()Gets the error code value.static AWSIotDeviceErrorCodevalueOf(long code) Returns the Enum representation of the error code valuestatic AWSIotDeviceErrorCodeReturns the enum constant of this type with the specified name.static AWSIotDeviceErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BAD_REQUEST
The bad request. -
UNAUTHORIZED
The Unauthorized. -
FORBIDDEN
The Forbidden. -
NOT_FOUND
The Not found. -
CONFLICT
The Conflict. -
PAYLOAD_TOO_LARGE
The Payload too large. -
UNSUPPORTED_MEDIA_TYPE
The Unsupported media type. -
TOO_MANY_REQUESTS
The Too many requests. -
INTERNAL_SERVICE_FAILURE
The Internal service failure.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getValue
public long getValue()Gets the error code value.- Returns:
- the error code value
-
valueOf
Returns the Enum representation of the error code value- Parameters:
code- the error code value- Returns:
- the Enum representation of the error code, or null if the error code is unknown
-