DigitalTwinsEventRoute Class

  • java.lang.Object
    • com.azure.digitaltwins.core.models.DigitalTwinsEventRoute

public final class 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

Constructor Description
DigitalTwinsEventRoute(String endpointName)

Creates an instance of EventRoute class.

Method Summary

Modifier and Type Method and Description
String getEndpointName()

Get the endpointName property: The name of the endpoint this event route is bound to.

String getEventRouteId()

Get this event route's id property: The id of the event route.

String getFilter()

Get the filter property: An expression which describes the events which are routed to the endpoint.

DigitalTwinsEventRoute setEventRouteId(String id)

Sets this event route's Id.

DigitalTwinsEventRoute setFilter(String filter)

Set the filter property: An expression which describes the events which are routed to the endpoint.

Methods inherited from java.lang.Object

Constructor Details

DigitalTwinsEventRoute

public DigitalTwinsEventRoute(String endpointName)

Creates an instance of EventRoute class.

Parameters:

endpointName - the name of the endpoint that this event route connects to.

Method Details

getEndpointName

public String getEndpointName()

Get the endpointName property: The name of the endpoint this event route is bound to.

Returns:

the endpointName value.

getEventRouteId

public String getEventRouteId()

Get this event route's id property: The id of the event route.

Returns:

the id value.

getFilter

public String getFilter()

Get the filter property: An expression which describes the events which are routed to the endpoint.

Returns:

the filter value.

setEventRouteId

public DigitalTwinsEventRoute setEventRouteId(String id)

Sets this event route's Id.

Parameters:

id - The event route's Id to set.

Returns:

the EventRoute object itself.

setFilter

public DigitalTwinsEventRoute setFilter(String filter)

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.

Applies to