Interface EventSubscription
-
public interface EventSubscriptionAn immutable client-side representation of EventSubscription.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceEventSubscription.DefinitionThe entirety of the EventSubscription definition.static interfaceEventSubscription.DefinitionStagesThe EventSubscription definition stages.static interfaceEventSubscription.UpdateThe template for EventSubscription update.static interfaceEventSubscription.UpdateStagesThe EventSubscription update stages.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DeadLetterDestinationdeadLetterDestination()Gets the deadLetterDestination property: The DeadLetter destination of the event subscription.DeadLetterWithResourceIdentitydeadLetterWithResourceIdentity()Gets the deadLetterWithResourceIdentity property: The dead letter destination of the event subscription.DeliveryWithResourceIdentitydeliveryWithResourceIdentity()Gets the deliveryWithResourceIdentity property: Information about the destination where events have to be delivered for the event subscription.EventSubscriptionDestinationdestination()Gets the destination property: Information about the destination where events have to be delivered for the event subscription.EventDeliverySchemaeventDeliverySchema()Gets the eventDeliverySchema property: The event delivery schema for the event subscription.OffsetDateTimeexpirationTimeUtc()Gets the expirationTimeUtc property: Expiration time of the event subscription.EventSubscriptionFilterfilter()Gets the filter property: Information about the filter for the event subscription.DeliveryAttributeListResultgetDeliveryAttributes()Get all delivery attributes for an event subscription.com.azure.core.http.rest.Response<DeliveryAttributeListResult>getDeliveryAttributesWithResponse(com.azure.core.util.Context context)Get all delivery attributes for an event subscription.EventSubscriptionFullUrlgetFullUrl()Get the full endpoint URL for an event subscription.com.azure.core.http.rest.Response<EventSubscriptionFullUrl>getFullUrlWithResponse(com.azure.core.util.Context context)Get the full endpoint URL for an event subscription.Stringid()Gets the id property: Fully qualified resource Id for the resource.EventSubscriptionInnerinnerModel()Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner object.List<String>labels()Gets the labels property: List of user defined labels.Stringname()Gets the name property: The name of the resource.EventSubscriptionProvisioningStateprovisioningState()Gets the provisioningState property: Provisioning state of the event subscription.EventSubscriptionrefresh()Refreshes the resource to sync with Azure.EventSubscriptionrefresh(com.azure.core.util.Context context)Refreshes the resource to sync with Azure.RetryPolicyretryPolicy()Gets the retryPolicy property: The retry policy for events.com.azure.core.management.SystemDatasystemData()Gets the systemData property: The system metadata relating to Event Subscription resource.Stringtopic()Gets the topic property: Name of the topic of the event subscription.Stringtype()Gets the type property: The type of the resource.EventSubscription.Updateupdate()Begins update for the EventSubscription resource.
-
-
-
Method Detail
-
id
String id()
Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()
Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()
Gets the type property: The type of the resource.- Returns:
- the type value.
-
systemData
com.azure.core.management.SystemData systemData()
Gets the systemData property: The system metadata relating to Event Subscription resource.- Returns:
- the systemData value.
-
topic
String topic()
Gets the topic property: Name of the topic of the event subscription.- Returns:
- the topic value.
-
provisioningState
EventSubscriptionProvisioningState provisioningState()
Gets the provisioningState property: Provisioning state of the event subscription.- Returns:
- the provisioningState value.
-
destination
EventSubscriptionDestination destination()
Gets the destination property: Information about the destination where events have to be delivered for the event subscription.- Returns:
- the destination value.
-
deliveryWithResourceIdentity
DeliveryWithResourceIdentity deliveryWithResourceIdentity()
Gets the deliveryWithResourceIdentity property: Information about the destination where events have to be delivered for the event subscription. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.- Returns:
- the deliveryWithResourceIdentity value.
-
filter
EventSubscriptionFilter filter()
Gets the filter property: Information about the filter for the event subscription.- Returns:
- the filter value.
-
labels
List<String> labels()
Gets the labels property: List of user defined labels.- Returns:
- the labels value.
-
expirationTimeUtc
OffsetDateTime expirationTimeUtc()
Gets the expirationTimeUtc property: Expiration time of the event subscription.- Returns:
- the expirationTimeUtc value.
-
eventDeliverySchema
EventDeliverySchema eventDeliverySchema()
Gets the eventDeliverySchema property: The event delivery schema for the event subscription.- Returns:
- the eventDeliverySchema value.
-
retryPolicy
RetryPolicy retryPolicy()
Gets the retryPolicy property: The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.- Returns:
- the retryPolicy value.
-
deadLetterDestination
DeadLetterDestination deadLetterDestination()
Gets the deadLetterDestination property: The DeadLetter destination of the event subscription.- Returns:
- the deadLetterDestination value.
-
deadLetterWithResourceIdentity
DeadLetterWithResourceIdentity deadLetterWithResourceIdentity()
Gets the deadLetterWithResourceIdentity property: The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.- Returns:
- the deadLetterWithResourceIdentity value.
-
innerModel
EventSubscriptionInner innerModel()
Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner object.- Returns:
- the inner object.
-
update
EventSubscription.Update update()
Begins update for the EventSubscription resource.- Returns:
- the stage of resource update.
-
refresh
EventSubscription refresh()
Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
EventSubscription refresh(com.azure.core.util.Context context)
Refreshes the resource to sync with Azure.- Parameters:
context- The context to associate with this operation.- Returns:
- the refreshed resource.
-
getFullUrl
EventSubscriptionFullUrl getFullUrl()
Get the full endpoint URL for an event subscription.- Returns:
- the full endpoint URL for an event subscription.
- Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getFullUrlWithResponse
com.azure.core.http.rest.Response<EventSubscriptionFullUrl> getFullUrlWithResponse(com.azure.core.util.Context context)
Get the full endpoint URL for an event subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- the full endpoint URL for an event subscription along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getDeliveryAttributes
DeliveryAttributeListResult getDeliveryAttributes()
Get all delivery attributes for an event subscription.- Returns:
- all delivery attributes for an event subscription.
- Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getDeliveryAttributesWithResponse
com.azure.core.http.rest.Response<DeliveryAttributeListResult> getDeliveryAttributesWithResponse(com.azure.core.util.Context context)
Get all delivery attributes for an event subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- all delivery attributes for an event subscription along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
-