public class FileUploadCompletionNotification
extends java.lang.Object
Constructor and Description |
---|
FileUploadCompletionNotification()
Empty constructor: Used only to keep GSON happy.
|
FileUploadCompletionNotification(java.lang.String correlationId,
java.lang.Boolean isSuccess)
Create an instance of the FileUploadCompletionNotification for a single file upload operation using Azure Storage.
|
FileUploadCompletionNotification(java.lang.String correlationId,
java.lang.Boolean isSuccess,
java.lang.Integer statusCode,
java.lang.String statusDescription)
Create an instance of the FileUploadCompletionNotification for a single file upload operation using Azure Storage.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCorrelationId() |
java.lang.Integer |
getStatusCode() |
java.lang.String |
getStatusDescription() |
java.lang.Boolean |
isSuccess() |
void |
setCorrelationId(java.lang.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(java.lang.Integer statusCode)
Set the status code associated with this file upload request
|
void |
setStatusDescription(java.lang.String statusDescription)
Set the status description associated with this file upload request
|
void |
setSuccess(java.lang.Boolean success)
Set if the file upload was a success
|
java.lang.String |
toJson()
Convert this class to json.
|
public FileUploadCompletionNotification(java.lang.String correlationId, java.lang.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 the correlation Id set in
the FileUploadSasUriResponse
associated with this file upload.isSuccess
- whether the file was uploaded successfully. This field is mandatory.public FileUploadCompletionNotification(java.lang.String correlationId, java.lang.Boolean isSuccess, java.lang.Integer statusCode, java.lang.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 the correlation Id set in
the FileUploadSasUriResponse
associated with this file upload.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()
public java.lang.String toJson()
public void setCorrelationId(java.lang.String correlationId)
FileUploadSasUriResponse
associated with this file upload.correlationId
- the unique identifier that correlates this file upload status to a SAS URI that IoT Hub retreived from Azure Storage earlier.public java.lang.String getCorrelationId()
public java.lang.Boolean isSuccess()
public void setSuccess(java.lang.Boolean success)
success
- true if the file upload was a success. False otherwise.public java.lang.Integer getStatusCode()
public void setStatusCode(java.lang.Integer statusCode)
statusCode
- The status code associated with this file upload requestpublic java.lang.String getStatusDescription()
public void setStatusDescription(java.lang.String statusDescription)
statusDescription
- The status description associated with this file upload requestCopyright © 2023. All rights reserved.