RouterRule Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A rule of one of the following types: StaticRule: A rule providing static rules that always return the same result, regardless of input. DirectMapRule: A rule that return the same labels as the input labels. ExpressionRule: A rule providing inline expression rules. FunctionRule: A rule providing a binding to an HTTP Triggered Azure Function. WebhookRule: A rule providing a binding to a webserver following OAuth2.0 authentication protocol. Please note RouterRule is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include DirectMapRouterRule, ExpressionRouterRule, FunctionRouterRule, StaticRouterRule and WebhookRouterRule.
public abstract class RouterRule
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Communication.JobRouter.UnknownRouterRule))]
public abstract class RouterRule : System.ClientModel.Primitives.IJsonModel<Azure.Communication.JobRouter.RouterRule>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.JobRouter.RouterRule>
type RouterRule = class
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Communication.JobRouter.UnknownRouterRule))>]
type RouterRule = class
interface IJsonModel<RouterRule>
interface IPersistableModel<RouterRule>
Public MustInherit Class RouterRule
Public MustInherit Class RouterRule
Implements IJsonModel(Of RouterRule), IPersistableModel(Of RouterRule)
- Inheritance
-
RouterRule
- Derived
- Attributes
- Implements
Constructors
RouterRule() |
Initializes a new instance of RouterRule. |
Properties
Kind |
The type discriminator describing a sub-type of RouterRule. |
Explicit Interface Implementations
IJsonModel<RouterRule>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<RouterRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<RouterRule>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<RouterRule>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<RouterRule>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |