次の方法で共有


StorageQueueEventSubscriptionDestination Class

public final class StorageQueueEventSubscriptionDestination
extends EventSubscriptionDestination

Information about the storage queue destination for an event subscription.

Constructor Summary

Constructor Description
StorageQueueEventSubscriptionDestination()

Creates an instance of StorageQueueEventSubscriptionDestination class.

Method Summary

Modifier and Type Method and Description
EndpointType endpointType()

Get the endpointType property: Type of the endpoint for the event subscription destination.

static StorageQueueEventSubscriptionDestination fromJson(JsonReader jsonReader)

Reads an instance of StorageQueueEventSubscriptionDestination from the JsonReader.

Long queueMessageTimeToLiveInSeconds()

Get the queueMessageTimeToLiveInSeconds property: Storage queue message time to live in seconds.

String queueName()

Get the queueName property: The name of the Storage queue under a storage account that is the destination of an event subscription.

String resourceId()

Get the resourceId property: The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageQueueEventSubscriptionDestination withQueueMessageTimeToLiveInSeconds(Long queueMessageTimeToLiveInSeconds)

Set the queueMessageTimeToLiveInSeconds property: Storage queue message time to live in seconds.

StorageQueueEventSubscriptionDestination withQueueName(String queueName)

Set the queueName property: The name of the Storage queue under a storage account that is the destination of an event subscription.

StorageQueueEventSubscriptionDestination withResourceId(String resourceId)

Set the resourceId property: The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.

Methods inherited from EventSubscriptionDestination

Methods inherited from java.lang.Object

Constructor Details

StorageQueueEventSubscriptionDestination

public StorageQueueEventSubscriptionDestination()

Creates an instance of StorageQueueEventSubscriptionDestination class.

Method Details

endpointType

public EndpointType endpointType()

Get the endpointType property: Type of the endpoint for the event subscription destination.

Overrides:

StorageQueueEventSubscriptionDestination.endpointType()

Returns:

the endpointType value.

fromJson

public static StorageQueueEventSubscriptionDestination fromJson(JsonReader jsonReader)

Reads an instance of StorageQueueEventSubscriptionDestination from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StorageQueueEventSubscriptionDestination 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 StorageQueueEventSubscriptionDestination.

queueMessageTimeToLiveInSeconds

public Long queueMessageTimeToLiveInSeconds()

Get the queueMessageTimeToLiveInSeconds property: Storage queue message time to live in seconds. This value cannot be zero or negative with the exception of using -1 to indicate that the Time To Live of the message is Infinite.

Returns:

the queueMessageTimeToLiveInSeconds value.

queueName

public String queueName()

Get the queueName property: The name of the Storage queue under a storage account that is the destination of an event subscription.

Returns:

the queueName value.

resourceId

public String resourceId()

Get the resourceId property: The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StorageQueueEventSubscriptionDestination.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

StorageQueueEventSubscriptionDestination.validate()

withQueueMessageTimeToLiveInSeconds

public StorageQueueEventSubscriptionDestination withQueueMessageTimeToLiveInSeconds(Long queueMessageTimeToLiveInSeconds)

Set the queueMessageTimeToLiveInSeconds property: Storage queue message time to live in seconds. This value cannot be zero or negative with the exception of using -1 to indicate that the Time To Live of the message is Infinite.

Parameters:

queueMessageTimeToLiveInSeconds - the queueMessageTimeToLiveInSeconds value to set.

Returns:

the StorageQueueEventSubscriptionDestination object itself.

withQueueName

public StorageQueueEventSubscriptionDestination withQueueName(String queueName)

Set the queueName property: The name of the Storage queue under a storage account that is the destination of an event subscription.

Parameters:

queueName - the queueName value to set.

Returns:

the StorageQueueEventSubscriptionDestination object itself.

withResourceId

public StorageQueueEventSubscriptionDestination withResourceId(String resourceId)

Set the resourceId property: The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.

Parameters:

resourceId - the resourceId value to set.

Returns:

the StorageQueueEventSubscriptionDestination object itself.

Applies to