EventSubscriptionFilter Class

  • java.lang.Object
    • com.microsoft.azure.management.eventgrid.v2020_04_01_preview.EventSubscriptionFilter

public class EventSubscriptionFilter

Filter for the Event Subscription.

Constructor Summary

Constructor Description
EventSubscriptionFilter()

Method Summary

Modifier and Type Method and Description
java.util.List<AdvancedFilter> advancedFilters()

Get an array of advanced filters that are used for filtering event subscriptions.

java.util.List<java.lang.String> includedEventTypes()

Get a list of applicable event types that need to be part of the event subscription.

java.lang.Boolean isSubjectCaseSensitive()

Get specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner.

java.lang.String subjectBeginsWith()

Get an optional string to filter events for an event subscription based on a resource path prefix.

java.lang.String subjectEndsWith()

Get an optional string to filter events for an event subscription based on a resource path suffix.

EventSubscriptionFilter withAdvancedFilters(List<AdvancedFilter> advancedFilters)

Set an array of advanced filters that are used for filtering event subscriptions.

EventSubscriptionFilter withIncludedEventTypes(List<String> includedEventTypes)

Set a list of applicable event types that need to be part of the event subscription.

EventSubscriptionFilter withIsSubjectCaseSensitive(Boolean isSubjectCaseSensitive)

Set specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner.

EventSubscriptionFilter withSubjectBeginsWith(String subjectBeginsWith)

Set an optional string to filter events for an event subscription based on a resource path prefix.

EventSubscriptionFilter withSubjectEndsWith(String subjectEndsWith)

Set an optional string to filter events for an event subscription based on a resource path suffix.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

EventSubscriptionFilter

public EventSubscriptionFilter()

Method Details

advancedFilters

public List advancedFilters()

Get an array of advanced filters that are used for filtering event subscriptions.

Returns:

the advancedFilters value

includedEventTypes

public List includedEventTypes()

Get a list of applicable event types that need to be part of the event subscription. If it is desired to subscribe to all default event types, set the IncludedEventTypes to null.

Returns:

the includedEventTypes value

isSubjectCaseSensitive

public Boolean isSubjectCaseSensitive()

Get specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner.

Returns:

the isSubjectCaseSensitive value

subjectBeginsWith

public String subjectBeginsWith()

Get an optional string to filter events for an event subscription based on a resource path prefix. The format of this depends on the publisher of the events. Wildcard characters are not supported in this path.

Returns:

the subjectBeginsWith value

subjectEndsWith

public String subjectEndsWith()

Get an optional string to filter events for an event subscription based on a resource path suffix. Wildcard characters are not supported in this path.

Returns:

the subjectEndsWith value

withAdvancedFilters

public EventSubscriptionFilter withAdvancedFilters(List advancedFilters)

Set an array of advanced filters that are used for filtering event subscriptions.

Parameters:

advancedFilters - the advancedFilters value to set

Returns:

the EventSubscriptionFilter object itself.

withIncludedEventTypes

public EventSubscriptionFilter withIncludedEventTypes(List includedEventTypes)

Set a list of applicable event types that need to be part of the event subscription. If it is desired to subscribe to all default event types, set the IncludedEventTypes to null.

Parameters:

includedEventTypes - the includedEventTypes value to set

Returns:

the EventSubscriptionFilter object itself.

withIsSubjectCaseSensitive

public EventSubscriptionFilter withIsSubjectCaseSensitive(Boolean isSubjectCaseSensitive)

Set specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner.

Parameters:

isSubjectCaseSensitive - the isSubjectCaseSensitive value to set

Returns:

the EventSubscriptionFilter object itself.

withSubjectBeginsWith

public EventSubscriptionFilter withSubjectBeginsWith(String subjectBeginsWith)

Set an optional string to filter events for an event subscription based on a resource path prefix. The format of this depends on the publisher of the events. Wildcard characters are not supported in this path.

Parameters:

subjectBeginsWith - the subjectBeginsWith value to set

Returns:

the EventSubscriptionFilter object itself.

withSubjectEndsWith

public EventSubscriptionFilter withSubjectEndsWith(String subjectEndsWith)

Set an optional string to filter events for an event subscription based on a resource path suffix. Wildcard characters are not supported in this path.

Parameters:

subjectEndsWith - the subjectEndsWith value to set

Returns:

the EventSubscriptionFilter object itself.

Applies to