Class RoutingProperties
java.lang.Object
com.azure.resourcemanager.iothub.models.RoutingProperties
The routing related properties of the IoT hub. See:
https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the endpoints property: The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules.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.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.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.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.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.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.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.
-
Constructor Details
-
RoutingProperties
public RoutingProperties()
-
-
Method Details
-
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:
- the endpoints value.
-
withEndpoints
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:
endpoints
- the endpoints value to set.- Returns:
- the RoutingProperties object itself.
-
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. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs.- Returns:
- the routes value.
-
withRoutes
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:
routes
- the routes value to set.- Returns:
- the RoutingProperties object itself.
-
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 set, the messages which do not meet any of the conditions specified in the 'routes' section get routed to the built-in eventhub endpoint.- Returns:
- the fallbackRoute value.
-
withFallbackRoute
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 set, the messages which do not meet any of the conditions specified in the 'routes' section get routed to the built-in eventhub endpoint.- Parameters:
fallbackRoute
- the fallbackRoute value to set.- Returns:
- the RoutingProperties object itself.
-
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. See: https://aka.ms/telemetryoneventgrid.- Returns:
- the enrichments value.
-
withEnrichments
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:
enrichments
- the enrichments value to set.- Returns:
- the RoutingProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-