Dela via


IotHubFallbackRouteProperties Class

Definition

The properties of the fallback route. IoT Hub uses these properties when it routes messages to the fallback endpoint.

public class IotHubFallbackRouteProperties
public class IotHubFallbackRouteProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.IotHub.Models.IotHubFallbackRouteProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.IotHub.Models.IotHubFallbackRouteProperties>
type IotHubFallbackRouteProperties = class
type IotHubFallbackRouteProperties = class
    interface IJsonModel<IotHubFallbackRouteProperties>
    interface IPersistableModel<IotHubFallbackRouteProperties>
Public Class IotHubFallbackRouteProperties
Public Class IotHubFallbackRouteProperties
Implements IJsonModel(Of IotHubFallbackRouteProperties), IPersistableModel(Of IotHubFallbackRouteProperties)
Inheritance
IotHubFallbackRouteProperties
Implements

Constructors

IotHubFallbackRouteProperties(IotHubRoutingSource, IEnumerable<String>, Boolean)

Initializes a new instance of IotHubFallbackRouteProperties.

Properties

Condition

The condition which is evaluated in order to apply the fallback route. If the condition is not provided it will evaluate to true by default. For grammar, See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.

EndpointNames

The list of endpoints to which the messages that satisfy the condition are routed to. Currently only 1 endpoint is allowed.

IsEnabled

Used to specify whether the fallback route is enabled.

Name

The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique.

Source

The source to which the routing rule is to be applied to. For example, DeviceMessages.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<IotHubFallbackRouteProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<IotHubFallbackRouteProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<IotHubFallbackRouteProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<IotHubFallbackRouteProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<IotHubFallbackRouteProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to