Class RoutingEndpoints
- java.lang.Object
-
- com.azure.resourcemanager.iothub.models.RoutingEndpoints
-
public final class RoutingEndpoints extends Object
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
Constructors Constructor Description RoutingEndpoints()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RoutingEventHubProperties>
eventHubs()
Get the eventHubs property: The list of Event Hubs endpoints that IoT hub routes messages to, based on the routing rules.List<RoutingServiceBusQueueEndpointProperties>
serviceBusQueues()
Get the serviceBusQueues property: The list of Service Bus queue endpoints that IoT hub routes the messages to, based on the routing rules.List<RoutingServiceBusTopicEndpointProperties>
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.List<RoutingStorageContainerProperties>
storageContainers()
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.RoutingEndpoints
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.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.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.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.
-
-
-
Method Detail
-
serviceBusQueues
public List<RoutingServiceBusQueueEndpointProperties> 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
public List<RoutingServiceBusTopicEndpointProperties> 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
public List<RoutingEventHubProperties> 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
public RoutingEndpoints 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. This list does not include the built-in Event Hubs endpoint.- Parameters:
eventHubs
- the eventHubs value to set.- Returns:
- the RoutingEndpoints object itself.
-
storageContainers
public List<RoutingStorageContainerProperties> 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-