public enum IotHubStatusCode extends Enum<IotHubStatusCode>
| Enum Constant and Description |
|---|
BAD_FORMAT |
ERROR |
HUB_OR_DEVICE_ID_NOT_FOUND |
INTERNAL_SERVER_ERROR |
MESSAGE_EXPIRED |
OK |
OK_EMPTY |
PRECONDITION_FAILED |
REQUEST_ENTITY_TOO_LARGE |
SERVER_BUSY |
THROTTLED |
TOO_MANY_DEVICES |
UNAUTHORIZED |
| Modifier and Type | Method and Description |
|---|---|
static IotHubStatusCode |
getIotHubStatusCode(int httpsStatus)
Returns the IoT Hub status code referenced by the HTTPS status code.
|
static IotHubStatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IotHubStatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IotHubStatusCode OK
public static final IotHubStatusCode OK_EMPTY
public static final IotHubStatusCode BAD_FORMAT
public static final IotHubStatusCode UNAUTHORIZED
public static final IotHubStatusCode TOO_MANY_DEVICES
public static final IotHubStatusCode HUB_OR_DEVICE_ID_NOT_FOUND
public static final IotHubStatusCode PRECONDITION_FAILED
public static final IotHubStatusCode REQUEST_ENTITY_TOO_LARGE
public static final IotHubStatusCode THROTTLED
public static final IotHubStatusCode INTERNAL_SERVER_ERROR
public static final IotHubStatusCode SERVER_BUSY
public static final IotHubStatusCode ERROR
public static final IotHubStatusCode MESSAGE_EXPIRED
public static IotHubStatusCode[] values()
for (IotHubStatusCode c : IotHubStatusCode.values()) System.out.println(c);
public static IotHubStatusCode 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 static IotHubStatusCode getIotHubStatusCode(int httpsStatus)
httpsStatus - the HTTPS status code.IllegalArgumentException - if the HTTPS status code does not map to
an IoT Hub status code.Copyright © 2017. All rights reserved.