public enum AWSIotDeviceErrorCode extends Enum<AWSIotDeviceErrorCode>
Enum Constant and Description |
---|
BAD_REQUEST
The bad request.
|
CONFLICT
The Conflict.
|
FORBIDDEN
The Forbidden.
|
INTERNAL_SERVICE_FAILURE
The Internal service failure.
|
NOT_FOUND
The Not found.
|
PAYLOAD_TOO_LARGE
The Payload too large.
|
TOO_MANY_REQUESTS
The Too many requests.
|
UNAUTHORIZED
The Unauthorized.
|
UNSUPPORTED_MEDIA_TYPE
The Unsupported media type.
|
Modifier and Type | Method and Description |
---|---|
long |
getValue()
Gets the error code value.
|
static AWSIotDeviceErrorCode |
valueOf(long code)
Returns the Enum representation of the error code value
|
static AWSIotDeviceErrorCode |
valueOf(String name)
Returns 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.
|
public static final AWSIotDeviceErrorCode BAD_REQUEST
public static final AWSIotDeviceErrorCode UNAUTHORIZED
public static final AWSIotDeviceErrorCode FORBIDDEN
public static final AWSIotDeviceErrorCode NOT_FOUND
public static final AWSIotDeviceErrorCode CONFLICT
public static final AWSIotDeviceErrorCode PAYLOAD_TOO_LARGE
public static final AWSIotDeviceErrorCode UNSUPPORTED_MEDIA_TYPE
public static final AWSIotDeviceErrorCode TOO_MANY_REQUESTS
public static final AWSIotDeviceErrorCode INTERNAL_SERVICE_FAILURE
public static AWSIotDeviceErrorCode[] values()
for (AWSIotDeviceErrorCode c : AWSIotDeviceErrorCode.values()) System.out.println(c);
public static AWSIotDeviceErrorCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic long getValue()
public static AWSIotDeviceErrorCode valueOf(long code)
code
- the error code valueCopyright © 2020. All rights reserved.