StorageDirectoryCreatedEventData Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.StorageDirectoryCreatedEventData

Implements

public final class StorageDirectoryCreatedEventData
implements JsonSerializable<StorageDirectoryCreatedEventData>

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

Constructor Summary

Constructor Description
StorageDirectoryCreatedEventData()

Creates an instance of StorageDirectoryCreatedEventData class.

Method Summary

Modifier and Type Method and Description
static StorageDirectoryCreatedEventData fromJson(JsonReader jsonReader)

Reads an instance of StorageDirectoryCreatedEventData from the JsonReader.

String getApi()

Get the api property: The name of the API/operation that triggered this event.

String getClientRequestId()

Get the clientRequestId property: A request id provided by the client of the storage API operation that triggered this event.

String getETag()

Get the eTag property: The etag of the directory at the time this event was triggered.

String getIdentity()

Get the identity property: The identity of the requester that triggered this event.

String getRequestId()

Get the requestId property: The request id generated by the storage service for the storage API operation that triggered this event.

String getSequencer()

Get the sequencer property: An opaque string value representing the logical sequence of events for any particular directory name.

Object getStorageDiagnostics()

Get the storageDiagnostics property: For service use only.

String getUrl()

Get the url property: The path to the directory.

StorageDirectoryCreatedEventData setApi(String api)

Set the api property: The name of the API/operation that triggered this event.

StorageDirectoryCreatedEventData setClientRequestId(String clientRequestId)

Set the clientRequestId property: A request id provided by the client of the storage API operation that triggered this event.

StorageDirectoryCreatedEventData setETag(String eTag)

Set the eTag property: The etag of the directory at the time this event was triggered.

StorageDirectoryCreatedEventData setIdentity(String identity)

Set the identity property: The identity of the requester that triggered this event.

StorageDirectoryCreatedEventData setRequestId(String requestId)

Set the requestId property: The request id generated by the storage service for the storage API operation that triggered this event.

StorageDirectoryCreatedEventData setSequencer(String sequencer)

Set the sequencer property: An opaque string value representing the logical sequence of events for any particular directory name.

StorageDirectoryCreatedEventData setStorageDiagnostics(Object storageDiagnostics)

Set the storageDiagnostics property: For service use only.

StorageDirectoryCreatedEventData setUrl(String url)

Set the url property: The path to the directory.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

StorageDirectoryCreatedEventData

public StorageDirectoryCreatedEventData()

Creates an instance of StorageDirectoryCreatedEventData class.

Method Details

fromJson

public static StorageDirectoryCreatedEventData fromJson(JsonReader jsonReader)

Reads an instance of StorageDirectoryCreatedEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StorageDirectoryCreatedEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the StorageDirectoryCreatedEventData.

getApi

public String getApi()

Get the api property: The name of the API/operation that triggered this event.

Returns:

the api value.

getClientRequestId

public String 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.

getETag

public String getETag()

Get the eTag property: The etag of the directory at the time this event was triggered.

Returns:

the eTag value.

getIdentity

public String getIdentity()

Get the identity property: The identity of the requester that triggered this event.

Returns:

the identity value.

getRequestId

public String 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.

getSequencer

public String getSequencer()

Get the sequencer property: An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name.

Returns:

the sequencer value.

getStorageDiagnostics

public Object 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.

getUrl

public String getUrl()

Get the url property: The path to the directory.

Returns:

the url value.

setApi

public StorageDirectoryCreatedEventData setApi(String api)

Set the api property: The name of the API/operation that triggered this event.

Parameters:

api - the api value to set.

Returns:

the StorageDirectoryCreatedEventData object itself.

setClientRequestId

public StorageDirectoryCreatedEventData setClientRequestId(String clientRequestId)

Set the clientRequestId property: 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 StorageDirectoryCreatedEventData object itself.

setETag

public StorageDirectoryCreatedEventData setETag(String eTag)

Set the eTag property: The etag of the directory at the time this event was triggered.

Parameters:

eTag - the eTag value to set.

Returns:

the StorageDirectoryCreatedEventData object itself.

setIdentity

public StorageDirectoryCreatedEventData setIdentity(String identity)

Set the identity property: The identity of the requester that triggered this event.

Parameters:

identity - the identity value to set.

Returns:

the StorageDirectoryCreatedEventData object itself.

setRequestId

public StorageDirectoryCreatedEventData setRequestId(String requestId)

Set the requestId property: 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 StorageDirectoryCreatedEventData object itself.

setSequencer

public StorageDirectoryCreatedEventData setSequencer(String sequencer)

Set the sequencer property: An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name.

Parameters:

sequencer - the sequencer value to set.

Returns:

the StorageDirectoryCreatedEventData object itself.

setStorageDiagnostics

public StorageDirectoryCreatedEventData setStorageDiagnostics(Object storageDiagnostics)

Set the storageDiagnostics property: 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 StorageDirectoryCreatedEventData object itself.

setUrl

public StorageDirectoryCreatedEventData setUrl(String url)

Set the url property: The path to the directory.

Parameters:

url - the url value to set.

Returns:

the StorageDirectoryCreatedEventData object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to