Class StorageQueueEventSubscriptionDestination
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.EventSubscriptionDestination
-
- com.azure.resourcemanager.eventgrid.models.StorageQueueEventSubscriptionDestination
-
public final class StorageQueueEventSubscriptionDestination extends EventSubscriptionDestination
Information about the storage queue destination for an event subscription.
-
-
Constructor Summary
Constructors Constructor Description StorageQueueEventSubscriptionDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongqueueMessageTimeToLiveInSeconds()Get the queueMessageTimeToLiveInSeconds property: Storage queue message time to live in seconds.StringqueueName()Get the queueName property: The name of the Storage queue under a storage account that is the destination of an event subscription.StringresourceId()Get the resourceId property: The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.voidvalidate()Validates the instance.StorageQueueEventSubscriptionDestinationwithQueueMessageTimeToLiveInSeconds(Long queueMessageTimeToLiveInSeconds)Set the queueMessageTimeToLiveInSeconds property: Storage queue message time to live in seconds.StorageQueueEventSubscriptionDestinationwithQueueName(String queueName)Set the queueName property: The name of the Storage queue under a storage account that is the destination of an event subscription.StorageQueueEventSubscriptionDestinationwithResourceId(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.
-
-
-
Method Detail
-
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.
-
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.
-
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.
-
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.
-
queueMessageTimeToLiveInSeconds
public Long queueMessageTimeToLiveInSeconds()
Get the queueMessageTimeToLiveInSeconds property: Storage queue message time to live in seconds.- Returns:
- the queueMessageTimeToLiveInSeconds value.
-
withQueueMessageTimeToLiveInSeconds
public StorageQueueEventSubscriptionDestination withQueueMessageTimeToLiveInSeconds(Long queueMessageTimeToLiveInSeconds)
Set the queueMessageTimeToLiveInSeconds property: Storage queue message time to live in seconds.- Parameters:
queueMessageTimeToLiveInSeconds- the queueMessageTimeToLiveInSeconds value to set.- Returns:
- the StorageQueueEventSubscriptionDestination object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classEventSubscriptionDestination- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-