Class RoutingEndpoints
java.lang.Object
com.azure.resourcemanager.iothub.models.RoutingEndpoints
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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the cosmosDBSqlCollections property: The list of Cosmos DB collection endpoints that IoT hub routes messages to, based on the routing rules.Get the eventHubs property: The list of Event Hubs endpoints that IoT hub routes messages to, based on the routing rules.Get the serviceBusQueues property: The list of Service Bus queue endpoints that IoT hub routes the messages to, based on the routing rules.Get the serviceBusTopics property: The list of Service Bus topic endpoints that the IoT hub routes the messages to, based on the routing rules.Get the storageContainers property: The list of storage container endpoints that IoT hub routes messages to, based on the routing rules.void
validate()
Validates the instance.withCosmosDBSqlCollections
(List<RoutingCosmosDBSqlApiProperties> cosmosDBSqlCollections) Set the cosmosDBSqlCollections property: The list of Cosmos DB collection endpoints that IoT hub routes messages to, based on the routing rules.withEventHubs
(List<RoutingEventHubProperties> eventHubs) Set the eventHubs property: The list of Event Hubs endpoints that IoT hub routes messages to, based on the routing rules.withServiceBusQueues
(List<RoutingServiceBusQueueEndpointProperties> serviceBusQueues) Set the serviceBusQueues property: The list of Service Bus queue endpoints that IoT hub routes the messages to, based on the routing rules.withServiceBusTopics
(List<RoutingServiceBusTopicEndpointProperties> serviceBusTopics) Set the serviceBusTopics property: The list of Service Bus topic endpoints that the IoT hub routes the messages to, based on the routing rules.withStorageContainers
(List<RoutingStorageContainerProperties> storageContainers) Set the storageContainers property: The list of storage container endpoints that IoT hub routes messages to, based on the routing rules.
-
Constructor Details
-
RoutingEndpoints
public RoutingEndpoints()
-
-
Method Details
-
serviceBusQueues
Get the serviceBusQueues property: The list of Service Bus queue endpoints that IoT hub routes the messages to, based on the routing rules.- Returns:
- the serviceBusQueues value.
-
withServiceBusQueues
public RoutingEndpoints withServiceBusQueues(List<RoutingServiceBusQueueEndpointProperties> serviceBusQueues) Set the serviceBusQueues property: The list of Service Bus queue endpoints that IoT hub routes the messages to, based on the routing rules.- Parameters:
serviceBusQueues
- the serviceBusQueues value to set.- Returns:
- the RoutingEndpoints object itself.
-
serviceBusTopics
Get the serviceBusTopics property: The list of Service Bus topic endpoints that the IoT hub routes the messages to, based on the routing rules.- Returns:
- the serviceBusTopics value.
-
withServiceBusTopics
public RoutingEndpoints withServiceBusTopics(List<RoutingServiceBusTopicEndpointProperties> serviceBusTopics) Set the serviceBusTopics property: The list of Service Bus topic endpoints that the IoT hub routes the messages to, based on the routing rules.- Parameters:
serviceBusTopics
- the serviceBusTopics value to set.- Returns:
- the RoutingEndpoints object itself.
-
eventHubs
Get the eventHubs property: The list of Event Hubs endpoints that IoT hub routes messages to, based on the routing rules. This list does not include the built-in Event Hubs endpoint.- Returns:
- the eventHubs value.
-
withEventHubs
Set the eventHubs property: The list of Event Hubs endpoints that IoT hub routes messages to, based on the routing rules. This list does not include the built-in Event Hubs endpoint.- Parameters:
eventHubs
- the eventHubs value to set.- Returns:
- the RoutingEndpoints object itself.
-
storageContainers
Get the storageContainers property: The list of storage container endpoints that IoT hub routes messages to, based on the routing rules.- Returns:
- the storageContainers value.
-
withStorageContainers
public RoutingEndpoints withStorageContainers(List<RoutingStorageContainerProperties> storageContainers) Set the storageContainers property: The list of storage container endpoints that IoT hub routes messages to, based on the routing rules.- Parameters:
storageContainers
- the storageContainers value to set.- Returns:
- the RoutingEndpoints object itself.
-
cosmosDBSqlCollections
Get the cosmosDBSqlCollections property: The list of Cosmos DB collection endpoints that IoT hub routes messages to, based on the routing rules.- Returns:
- the cosmosDBSqlCollections value.
-
withCosmosDBSqlCollections
public RoutingEndpoints withCosmosDBSqlCollections(List<RoutingCosmosDBSqlApiProperties> cosmosDBSqlCollections) Set the cosmosDBSqlCollections property: The list of Cosmos DB collection endpoints that IoT hub routes messages to, based on the routing rules.- Parameters:
cosmosDBSqlCollections
- the cosmosDBSqlCollections value to set.- Returns:
- the RoutingEndpoints object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-