Partilhar via


BulkEnrollmentOperationError Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.provisioning.service.configs.BulkEnrollmentOperationError

public class BulkEnrollmentOperationError

Representation of a single Device Provisioning Service device registration operation error.

This error is returned as a result of the runBulkEnrollmentOperation(BulkOperationMode bulkOperationMode, Collection<IndividualEnrollment> individualEnrollments), in the BulkEnrollmentOperationResult.

The following JSON is an example of a single error operation from a Bulk operation

{
      "registrationId":"validRegistrationId1",
      "errorCode":200,
      "errorStatus":"Succeeded"
 }

Method Summary

Modifier and Type Method and Description
java.lang.Integer getErrorCode()

Getter for the error code.

java.lang.String getErrorStatus()

Getter for the error status.

java.lang.String getRegistrationId()

Getter for the error registrationId.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

getErrorCode

public Integer getErrorCode()

Getter for the error code.

Returns:

The Integer with the errorCode content. It cannot be null.

getErrorStatus

public String getErrorStatus()

Getter for the error status.

Returns:

The String with the errorStatus content. It can be null.

getRegistrationId

public String getRegistrationId()

Getter for the error registrationId.

Returns:

The String with the registrationId content. It cannot be null.

Applies to