Class DigitalTwinsEventRoute
java.lang.Object
com.azure.digitaltwins.core.models.DigitalTwinsEventRoute
The EventRoute model. Event routes are used for defining where published telemetry gets sent to. As an example, an
event route can point towards an Azure EventHub as a consumer of published telemetry.
-
Constructor Summary
ConstructorDescriptionDigitalTwinsEventRoute
(String endpointName) Creates an instance of EventRoute class. -
Method Summary
Modifier and TypeMethodDescriptionGet the endpointName property: The name of the endpoint this event route is bound to.Get this event route's id property: The id of the event route.Get the filter property: An expression which describes the events which are routed to the endpoint.Sets this event route's Id.Set the filter property: An expression which describes the events which are routed to the endpoint.
-
Constructor Details
-
DigitalTwinsEventRoute
Creates an instance of EventRoute class.- Parameters:
endpointName
- the name of the endpoint that this event route connects to.
-
-
Method Details
-
getEventRouteId
Get this event route's id property: The id of the event route.- Returns:
- the id value.
-
getEndpointName
Get the endpointName property: The name of the endpoint this event route is bound to.- Returns:
- the endpointName value.
-
getFilter
Get the filter property: An expression which describes the events which are routed to the endpoint.- Returns:
- the filter value.
-
setFilter
Set the filter property: An expression which describes the events which are routed to the endpoint.- Parameters:
filter
- the filter value to set.- Returns:
- the EventRoute object itself.
-
setEventRouteId
Sets this event route's Id.- Parameters:
id
- The event route's Id to set.- Returns:
- the EventRoute object itself.
-