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

FileUploadCompletionNotification()

Empty constructor: Used only to keep GSON happy.

public FileUploadCompletionNotification()

FileUploadCompletionNotification(String correlationId, Boolean isSuccess)

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

public FileUploadCompletionNotification(String correlationId, Boolean isSuccess)

参数

correlationId
String

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

isSuccess
Boolean

whether the file was uploaded successfully. This field is mandatory.

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

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

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

参数

correlationId
String

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

isSuccess
Boolean

whether the file was uploaded successfully. This field is mandatory.

statusCode
Integer

is the status for the upload of the file to storage.

statusDescription
String

is the description of the status code.

FileUploadCompletionNotification(String json)

Construct this notification with json

public FileUploadCompletionNotification(String json)

参数

json
String

the json to parse.

适用于