public class FileUploadCompletionNotification extends Object
setSuccess(Boolean) and setCorrelationId(String), but all other fields are optional.| Constructor and Description |
|---|
FileUploadCompletionNotification()
Empty constructor: Used only to keep GSON happy.
|
FileUploadCompletionNotification(String json)
Construct this notification with json
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCorrelationId() |
Integer |
getStatusCode() |
String |
getStatusDescription() |
Boolean |
getSuccess() |
void |
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.
|
void |
setStatusCode(Integer statusCode)
Set the status code associated with this file upload request
|
void |
setStatusDescription(String statusDescription)
Set the status description associated with this file upload request
|
void |
setSuccess(Boolean success)
Set if the file upload was a success
|
String |
toJson()
Convert this class to json.
|
public FileUploadCompletionNotification(String correlationId, Boolean isSuccess)
correlationId - 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 FileUploadSasUriResponse.getCorrelationId().isSuccess - whether the file was uploaded successfully. This field is mandatory.public FileUploadCompletionNotification(String correlationId, Boolean isSuccess, Integer statusCode, String statusDescription)
correlationId - 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 FileUploadSasUriResponse.getCorrelationId().isSuccess - whether the file was uploaded successfully. This field is mandatory.statusCode - is the status for the upload of the file to storage.statusDescription - is the description of the status code.public FileUploadCompletionNotification(String json)
json - the json to parse.public FileUploadCompletionNotification()
public String toJson()
public void setCorrelationId(String correlationId)
FileUploadSasUriResponse.getCorrelationId().correlationId - the unique identifier that correlates this file upload status to a SAS URI that IoT Hub retreived from Azure Storage earlier.public String getCorrelationId()
public Boolean getSuccess()
public void setSuccess(Boolean success)
success - true if the file upload was a success. False otherwise.public Integer getStatusCode()
public void setStatusCode(Integer statusCode)
statusCode - The status code associated with this file upload requestpublic String getStatusDescription()
public void setStatusDescription(String statusDescription)
statusDescription - The status description associated with this file upload requestCopyright © 2021. All rights reserved.