RoutingProperties Class
- java.
lang. Object - com.
azure. resourcemanager. iothub. models. RoutingProperties
- com.
public final class RoutingProperties
The routing related properties of the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging.
Constructor Summary
Constructor | Description |
---|---|
RoutingProperties() |
Creates an instance of Routing |
Method Summary
Modifier and Type | Method and Description |
---|---|
Routing |
endpoints()
Get the endpoints property: The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. |
List<Enrichment |
enrichments()
Get the enrichments property: The list of user-provided enrichments that the IoT hub applies to messages to be delivered to built-in and custom endpoints. |
Fallback |
fallbackRoute()
Get the fallback |
List<Route |
routes()
Get the routes property: The list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. |
void |
validate()
Validates the instance. |
Routing |
withEndpoints(RoutingEndpoints endpoints)
Set the endpoints property: The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. |
Routing |
withEnrichments(List<EnrichmentProperties> enrichments)
Set the enrichments property: The list of user-provided enrichments that the IoT hub applies to messages to be delivered to built-in and custom endpoints. |
Routing |
withFallbackRoute(FallbackRouteProperties fallbackRoute)
Set the fallback |
Routing |
withRoutes(List<RouteProperties> routes)
Set the routes property: The list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. |
Methods inherited from java.lang.Object
Constructor Details
RoutingProperties
public RoutingProperties()
Creates an instance of RoutingProperties class.
Method Details
endpoints
public RoutingEndpoints endpoints()
Get the endpoints property: The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs and only 1 custom endpoint is allowed across all endpoint types for free hubs.
Returns:
enrichments
public List
Get the enrichments property: The list of user-provided enrichments that the IoT hub applies to messages to be delivered to built-in and custom endpoints. See: https://aka.ms/telemetryoneventgrid.
Returns:
fallbackRoute
public FallbackRouteProperties fallbackRoute()
Get the fallbackRoute property: The properties of the route that is used as a fall-back route when none of the conditions specified in the 'routes' section are met. This is an optional parameter. When this property is not present in the template, the fallback route is disabled by default.
Returns:
routes
public List
Get the routes property: The list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs.
Returns:
validate
public void validate()
Validates the instance.
withEndpoints
public RoutingProperties withEndpoints(RoutingEndpoints endpoints)
Set the endpoints property: The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs and only 1 custom endpoint is allowed across all endpoint types for free hubs.
Parameters:
Returns:
withEnrichments
public RoutingProperties withEnrichments(List
Set the enrichments property: The list of user-provided enrichments that the IoT hub applies to messages to be delivered to built-in and custom endpoints. See: https://aka.ms/telemetryoneventgrid.
Parameters:
Returns:
withFallbackRoute
public RoutingProperties withFallbackRoute(FallbackRouteProperties fallbackRoute)
Set the fallbackRoute property: The properties of the route that is used as a fall-back route when none of the conditions specified in the 'routes' section are met. This is an optional parameter. When this property is not present in the template, the fallback route is disabled by default.
Parameters:
Returns:
withRoutes
public RoutingProperties withRoutes(List
Set the routes property: The list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for