FileUploadNotificationParser Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. deps. serializer. FileUploadNotificationParser
- com.
public class FileUploadNotificationParser
Representation of the notification of a single File Upload, with a Json deserializer. Ex of JSON format: { "deviceId":"mydevice", "blobUri":"https://{storage account}.blob.core.windows.net/{container name}/mydevice/myfile.jpg", "blobName":"mydevice/myfile.jpg", "lastUpdatedTime":"2016-06-01T21:22:41+00:00", "blobSizeInBytes":1234, "enqueuedTimeUtc":"2016-06-01T21:22:43.7996883Z" }
Constructor | Description |
---|---|
File |
CONSTRUCTOR Create an instance of the File |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get Getter for the file name. |
java.lang.Long |
get Getter for the file size. |
java.lang.String |
get Getter for the file uri. |
java.lang.String |
get Getter for the device identification. |
java.util.Date |
get Getter for the enqueued time UTC. |
java.util.Date |
get Getter for the last update time. |
FileUploadNotificationParser
public FileUploadNotificationParser(String json)
CONSTRUCTOR Create an instance of the FileUploadNotification using the information in the provided json.
Parameters:
Throws:
getBlobName
public String getBlobName()
Getter for the file name.
Returns:
getBlobSizeInBytesTag
public Long getBlobSizeInBytesTag()
Getter for the file size.
Returns:
getBlobUri
public String getBlobUri()
Getter for the file uri.
Returns:
getDeviceId
public String getDeviceId()
Getter for the device identification.
Returns:
getEnqueuedTimeUtc
public Date getEnqueuedTimeUtc()
Getter for the enqueued time UTC.
Returns:
getLastUpdatedTime
public Date getLastUpdatedTime()
Getter for the last update time.
Returns:
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: