Share via


FiltersConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.FiltersConfiguration

Implements

public final class FiltersConfiguration
implements JsonSerializable<FiltersConfiguration>

Filters configuration for the Event Subscription.

Constructor Summary

Constructor Description
FiltersConfiguration()

Creates an instance of FiltersConfiguration class.

Method Summary

Modifier and Type Method and Description
List<Filter> filters()

Get the filters property: An array of filters that are used for filtering event subscriptions.

static FiltersConfiguration fromJson(JsonReader jsonReader)

Reads an instance of FiltersConfiguration from the JsonReader.

List<String> includedEventTypes()

Get the includedEventTypes property: A list of applicable event types that need to be part of the event subscription.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FiltersConfiguration withFilters(List<Filter> filters)

Set the filters property: An array of filters that are used for filtering event subscriptions.

FiltersConfiguration withIncludedEventTypes(List<String> includedEventTypes)

Set the includedEventTypes property: A list of applicable event types that need to be part of the event subscription.

Methods inherited from java.lang.Object

Constructor Details

FiltersConfiguration

public FiltersConfiguration()

Creates an instance of FiltersConfiguration class.

Method Details

filters

public List<Filter> filters()

Get the filters property: An array of filters that are used for filtering event subscriptions.

Returns:

the filters value.

fromJson

public static FiltersConfiguration fromJson(JsonReader jsonReader)

Reads an instance of FiltersConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FiltersConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the FiltersConfiguration.

includedEventTypes

public List<String> 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFilters

public FiltersConfiguration withFilters(List<Filter> filters)

Set the filters property: An array of filters that are used for filtering event subscriptions.

Parameters:

filters - the filters value to set.

Returns:

the FiltersConfiguration object itself.

withIncludedEventTypes

public FiltersConfiguration withIncludedEventTypes(List<String> includedEventTypes)

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 FiltersConfiguration object itself.

Applies to