Class DigitalTwinsEventRoute

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

public final class DigitalTwinsEventRoute extends Object
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 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

    • getEventRouteId

      public String getEventRouteId()
      Get this event route's id property: The id of the event route.
      Returns:
      the id value.
    • getEndpointName

      public String getEndpointName()
      Get the endpointName property: The name of the endpoint this event route is bound to.
      Returns:
      the endpointName 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.
    • 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.
    • 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.