IotHubStatusCode Enum

  • java.lang.Object
    • java.lang.Enum
      • com.microsoft.azure.sdk.iot.device.IotHubStatusCode

public enum IotHubStatusCode
extends java.lang.Enum<IotHubStatusCode>

An IoT Hub status code. Included in a message from an IoT Hub to a device.

Fields

BAD_FORMAT
ERROR
HUB_OR_DEVICE_ID_NOT_FOUND
INTERNAL_SERVER_ERROR
MESSAGE_CANCELLED_ONCLOSE
MESSAGE_EXPIRED
OK
OK_EMPTY
PRECONDITION_FAILED
REQUEST_ENTITY_TOO_LARGE
SERVER_BUSY
THROTTLED
TOO_MANY_DEVICES
UNAUTHORIZED

Methods inherited from java.lang.Enum

java.lang.Enum.<T>valueOf java.lang.Enum.clone java.lang.Enum.compareTo java.lang.Enum.describeConstable java.lang.Enum.equals java.lang.Enum.finalize java.lang.Enum.getDeclaringClass java.lang.Enum.hashCode java.lang.Enum.name java.lang.Enum.ordinal java.lang.Enum.toString

Methods inherited from java.lang.Object

java.lang.Object.getClass java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Methods

getConnectionStatusException(IotHubStatusCode statusCode, String statusDescription)

public static IotHubServiceException getConnectionStatusException(IotHubStatusCode statusCode, String statusDescription)

Parameters

statusCode
IotHubStatusCode
statusDescription
java.lang.String

Returns

getIotHubStatusCode(int httpsStatus)

public static IotHubStatusCode getIotHubStatusCode(int httpsStatus)

Returns the IoT Hub status code referenced by the HTTPS status code.

Parameters

httpsStatus
int
the HTTPS status code.

Returns

the corresponding IoT Hub status code.

valueOf(String name)

public static IotHubStatusCode valueOf(String name)

Parameters

name
java.lang.String

Returns

values()

public static IotHubStatusCode[] values()

Returns

Applies to