StorageBlobCreatedEventData Class

  • java.lang.Object
    • com.microsoft.azure.eventgrid.models.StorageBlobCreatedEventData

public class StorageBlobCreatedEventData

Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobCreated event.

Constructor Summary

Constructor Description
StorageBlobCreatedEventData()

Method Summary

Modifier and Type Method and Description
java.lang.String api()

Get the name of the API/operation that triggered this event.

java.lang.String blobType()

Get the type of blob.

java.lang.String clientRequestId()

Get a request id provided by the client of the storage API operation that triggered this event.

java.lang.Long contentLength()

Get the size of the blob in bytes.

java.lang.String contentType()

Get the content type of the blob.

java.lang.String eTag()

Get the etag of the object at the time this event was triggered.

java.lang.String requestId()

Get the request id generated by the Storage service for the storage API operation that triggered this event.

java.lang.String sequencer()

Get an opaque string value representing the logical sequence of events for any particular blob name.

java.lang.Object storageDiagnostics()

Get for service use only.

java.lang.String url()

Get the path to the blob.

StorageBlobCreatedEventData withApi(String api)

Set the name of the API/operation that triggered this event.

StorageBlobCreatedEventData withBlobType(String blobType)

Set the type of blob.

StorageBlobCreatedEventData withClientRequestId(String clientRequestId)

Set a request id provided by the client of the storage API operation that triggered this event.

StorageBlobCreatedEventData withContentLength(Long contentLength)

Set the size of the blob in bytes.

StorageBlobCreatedEventData withContentType(String contentType)

Set the content type of the blob.

StorageBlobCreatedEventData withETag(String eTag)

Set the etag of the object at the time this event was triggered.

StorageBlobCreatedEventData withRequestId(String requestId)

Set the request id generated by the Storage service for the storage API operation that triggered this event.

StorageBlobCreatedEventData withSequencer(String sequencer)

Set an opaque string value representing the logical sequence of events for any particular blob name.

StorageBlobCreatedEventData withStorageDiagnostics(Object storageDiagnostics)

Set for service use only.

StorageBlobCreatedEventData withUrl(String url)

Set the path to the blob.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

StorageBlobCreatedEventData

public StorageBlobCreatedEventData()

Method Details

api

public String api()

Get the name of the API/operation that triggered this event.

Returns:

the api value

blobType

public String blobType()

Get the type of blob.

Returns:

the blobType value

clientRequestId

public String clientRequestId()

Get a request id provided by the client of the storage API operation that triggered this event.

Returns:

the clientRequestId value

contentLength

public Long contentLength()

Get 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

contentType

public String contentType()

Get 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

eTag

public String eTag()

Get the etag of the object at the time this event was triggered.

Returns:

the eTag value

requestId

public String requestId()

Get the request id generated by the Storage service for the storage API operation that triggered this event.

Returns:

the requestId value

sequencer

public String sequencer()

Get 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

storageDiagnostics

public Object storageDiagnostics()

Get 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

url

public String url()

Get the path to the blob.

Returns:

the url value

withApi

public StorageBlobCreatedEventData withApi(String api)

Set the name of the API/operation that triggered this event.

Parameters:

api - the api value to set

Returns:

the StorageBlobCreatedEventData object itself.

withBlobType

public StorageBlobCreatedEventData withBlobType(String blobType)

Set the type of blob.

Parameters:

blobType - the blobType value to set

Returns:

the StorageBlobCreatedEventData object itself.

withClientRequestId

public StorageBlobCreatedEventData withClientRequestId(String clientRequestId)

Set a request id provided by the client of the storage API operation that triggered this event.

Parameters:

clientRequestId - the clientRequestId value to set

Returns:

the StorageBlobCreatedEventData object itself.

withContentLength

public StorageBlobCreatedEventData withContentLength(Long contentLength)

Set the size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob.

Parameters:

contentLength - the contentLength value to set

Returns:

the StorageBlobCreatedEventData object itself.

withContentType

public StorageBlobCreatedEventData withContentType(String contentType)

Set the content type of the blob. This is the same as what would be returned in the Content-Type header from the blob.

Parameters:

contentType - the contentType value to set

Returns:

the StorageBlobCreatedEventData object itself.

withETag

public StorageBlobCreatedEventData withETag(String eTag)

Set the etag of the object at the time this event was triggered.

Parameters:

eTag - the eTag value to set

Returns:

the StorageBlobCreatedEventData object itself.

withRequestId

public StorageBlobCreatedEventData withRequestId(String requestId)

Set the request id generated by the Storage service for the storage API operation that triggered this event.

Parameters:

requestId - the requestId value to set

Returns:

the StorageBlobCreatedEventData object itself.

withSequencer

public StorageBlobCreatedEventData withSequencer(String sequencer)

Set 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.

Parameters:

sequencer - the sequencer value to set

Returns:

the StorageBlobCreatedEventData object itself.

withStorageDiagnostics

public StorageBlobCreatedEventData withStorageDiagnostics(Object storageDiagnostics)

Set for service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.

Parameters:

storageDiagnostics - the storageDiagnostics value to set

Returns:

the StorageBlobCreatedEventData object itself.

withUrl

public StorageBlobCreatedEventData withUrl(String url)

Set the path to the blob.

Parameters:

url - the url value to set

Returns:

the StorageBlobCreatedEventData object itself.

Applies to