Class StorageBlobCreatedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.StorageBlobCreatedEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StorageBlobCreatedEventData>
public final class StorageBlobCreatedEventData
extends Object
implements com.azure.json.JsonSerializable<StorageBlobCreatedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobCreated event.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StorageBlobCreatedEventDatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StorageBlobCreatedEventData from the JsonReader.Get the accessTier property: The current tier of the blob.getApi()Get the api property: The name of the API/operation that triggered this event.Get the blobType property: The type of blob.Get the clientRequestId property: A request id provided by the client of the storage API operation that triggered this event.Get the contentLength property: The size of the blob in bytes.Get the contentOffset property: The offset of the blob in bytes.Get the contentType property: The content type of the blob.getETag()Get the eTag property: The etag of the blob at the time this event was triggered.Get the identity property: The identity of the requester that triggered this event.Get the requestId property: The request id generated by the storage service for the storage API operation that triggered this event.Get the sequencer property: An opaque string value representing the logical sequence of events for any particular blob name.Get the storageDiagnostics property: For service use only.getUrl()Get the url property: The path to the blob.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getApi
Get the api property: The name of the API/operation that triggered this event.- Returns:
- the api value.
-
getClientRequestId
Get the clientRequestId property: A request id provided by the client of the storage API operation that triggered this event.- Returns:
- the clientRequestId value.
-
getRequestId
Get the requestId property: The request id generated by the storage service for the storage API operation that triggered this event.- Returns:
- the requestId value.
-
getETag
Get the eTag property: The etag of the blob at the time this event was triggered.- Returns:
- the eTag value.
-
getContentType
Get the contentType property: The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob.- Returns:
- the contentType value.
-
getContentLength
Get the contentLength property: The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob.- Returns:
- the contentLength value.
-
getContentOffset
Get the contentOffset property: The offset of the blob in bytes.- Returns:
- the contentOffset value.
-
getBlobType
Get the blobType property: The type of blob.- Returns:
- the blobType value.
-
getAccessTier
Get the accessTier property: The current tier of the blob.- Returns:
- the accessTier value.
-
getUrl
Get the url property: The path to the blob.- Returns:
- the url value.
-
getSequencer
Get the sequencer property: An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name.- Returns:
- the sequencer value.
-
getIdentity
Get the identity property: The identity of the requester that triggered this event.- Returns:
- the identity value.
-
getStorageDiagnostics
Get the storageDiagnostics property: For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.- Returns:
- the storageDiagnostics value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<StorageBlobCreatedEventData>- Throws:
IOException
-
fromJson
public static StorageBlobCreatedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of StorageBlobCreatedEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of StorageBlobCreatedEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the StorageBlobCreatedEventData.
-