StorageQueueEventSubscriptionDestination Class
- java.
lang. Object - com.
azure. resourcemanager. eventgrid. models. EventSubscriptionDestination - com.
azure. resourcemanager. eventgrid. models. StorageQueueEventSubscriptionDestination
- com.
- com.
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 Storage |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Endpoint |
endpointType()
Get the endpoint |
|
static
Storage |
fromJson(JsonReader jsonReader)
Reads an instance of Storage |
| Long |
queueMessageTimeToLiveInSeconds()
Get the queue |
| String |
queueName()
Get the queue |
| String |
resourceId()
Get the resource |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Storage |
withQueueMessageTimeToLiveInSeconds(Long queueMessageTimeToLiveInSeconds)
Set the queue |
|
Storage |
withQueueName(String queueName)
Set the queue |
|
Storage |
withResourceId(String resourceId)
Set the resource |
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:
fromJson
public static StorageQueueEventSubscriptionDestination fromJson(JsonReader jsonReader)
Reads an instance of StorageQueueEventSubscriptionDestination from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
StorageQueueEventSubscriptionDestination.toJson(JsonWriter jsonWriter)Parameters:
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:
Returns:
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:
Returns:
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:
Returns: