FileUploadCompletionNotification 类

定义

The request payload to send to IoT Hub to notify it when a file upload is completed, whether successful or not. Must set setSuccess(Boolean success) and setCorrelationId(String correlationId), but all other fields are optional.

public class FileUploadCompletionNotification
继承
java.lang.Object
FileUploadCompletionNotification

构造函数

FileUploadCompletionNotification()

Empty constructor: Used only to keep GSON happy.

FileUploadCompletionNotification(String correlationId, Boolean isSuccess)

Create an instance of the FileUploadCompletionNotification for a single file upload operation using Azure Storage.

FileUploadCompletionNotification(String correlationId, Boolean isSuccess, Integer statusCode, String statusDescription)

Create an instance of the FileUploadCompletionNotification for a single file upload operation using Azure Storage.

FileUploadCompletionNotification(String json)

Construct this notification with json

方法

getCorrelationId()
getStatusCode()
getStatusDescription()
getSuccess()
setCorrelationId(String correlationId)

Set the correlationId that correlates this FileUploadCompletionNotification to the earlier request to get the SAS URI for this upload from IoT Hub. Must equal getCorrelationId().

setStatusCode(Integer statusCode)

Set the status code associated with this file upload request

setStatusDescription(String statusDescription)

Set the status description associated with this file upload request

setSuccess(Boolean success)

Set if the file upload was a success

toJson()

Convert this class to json.

适用于