Class EventSubscriptionFilter
java.lang.Object
com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter
Filter for the Event Subscription.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the advancedFilters property: An array of advanced filters that are used for filtering event subscriptions.Get the enableAdvancedFilteringOnArrays property: Allows advanced filters to be evaluated against an array of values instead of expecting a singular value.Get the includedEventTypes property: A list of applicable event types that need to be part of the event subscription.Get the isSubjectCaseSensitive property: Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner.Get the subjectBeginsWith property: An optional string to filter events for an event subscription based on a resource path prefix.Get the subjectEndsWith property: An optional string to filter events for an event subscription based on a resource path suffix.void
validate()
Validates the instance.withAdvancedFilters
(List<AdvancedFilter> advancedFilters) Set the advancedFilters property: An array of advanced filters that are used for filtering event subscriptions.withEnableAdvancedFilteringOnArrays
(Boolean enableAdvancedFilteringOnArrays) Set the enableAdvancedFilteringOnArrays property: Allows advanced filters to be evaluated against an array of values instead of expecting a singular value.withIncludedEventTypes
(List<String> includedEventTypes) Set the includedEventTypes property: A list of applicable event types that need to be part of the event subscription.withIsSubjectCaseSensitive
(Boolean isSubjectCaseSensitive) Set the isSubjectCaseSensitive property: Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner.withSubjectBeginsWith
(String subjectBeginsWith) Set the subjectBeginsWith property: An optional string to filter events for an event subscription based on a resource path prefix.withSubjectEndsWith
(String subjectEndsWith) Set the subjectEndsWith property: An optional string to filter events for an event subscription based on a resource path suffix.
-
Constructor Details
-
EventSubscriptionFilter
public EventSubscriptionFilter()
-
-
Method Details
-
subjectBeginsWith
Get the subjectBeginsWith property: 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.
-
withSubjectBeginsWith
Set the subjectBeginsWith property: 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.
-
subjectEndsWith
Get the subjectEndsWith property: 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.
-
withSubjectEndsWith
Set the subjectEndsWith property: 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.
-
includedEventTypes
Get the includedEventTypes property: 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.
-
withIncludedEventTypes
Set the includedEventTypes property: 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.
-
isSubjectCaseSensitive
Get the isSubjectCaseSensitive property: Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner.- Returns:
- the isSubjectCaseSensitive value.
-
withIsSubjectCaseSensitive
Set the isSubjectCaseSensitive property: 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.
-
enableAdvancedFilteringOnArrays
Get the enableAdvancedFilteringOnArrays property: Allows advanced filters to be evaluated against an array of values instead of expecting a singular value.- Returns:
- the enableAdvancedFilteringOnArrays value.
-
withEnableAdvancedFilteringOnArrays
public EventSubscriptionFilter withEnableAdvancedFilteringOnArrays(Boolean enableAdvancedFilteringOnArrays) Set the enableAdvancedFilteringOnArrays property: Allows advanced filters to be evaluated against an array of values instead of expecting a singular value.- Parameters:
enableAdvancedFilteringOnArrays
- the enableAdvancedFilteringOnArrays value to set.- Returns:
- the EventSubscriptionFilter object itself.
-
advancedFilters
Get the advancedFilters property: An array of advanced filters that are used for filtering event subscriptions.- Returns:
- the advancedFilters value.
-
withAdvancedFilters
Set the advancedFilters property: An array of advanced filters that are used for filtering event subscriptions.- Parameters:
advancedFilters
- the advancedFilters value to set.- Returns:
- the EventSubscriptionFilter object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-