confluent-kafka-dotnet
Show / Hide Table of Contents

Class Rule

Inheritance
object
Rule
Implements
IEquatable<Rule>
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
[DataContract]
public class Rule : IEquatable<Rule>

Constructors

Rule(string, RuleKind, RuleMode, string, ISet<string>, IDictionary<string, string>)

Declaration
public Rule(string name, RuleKind kind, RuleMode mode, string type, ISet<string> tags, IDictionary<string, string> parameters)
Parameters
Type Name Description
string name
RuleKind kind
RuleMode mode
string type
ISet<string> tags
IDictionary<string, string> parameters

Rule(string, RuleKind, RuleMode, string, ISet<string>, IDictionary<string, string>, string, string, string, bool)

Declaration
public Rule(string name, RuleKind kind, RuleMode mode, string type, ISet<string> tags, IDictionary<string, string> parameters, string expr, string onSuccess, string onFailure, bool disabled)
Parameters
Type Name Description
string name
RuleKind kind
RuleMode mode
string type
ISet<string> tags
IDictionary<string, string> parameters
string expr
string onSuccess
string onFailure
bool disabled

Properties

Disabled

Declaration
[DataMember(Name = "disabled")]
public bool Disabled { get; set; }
Property Value
Type Description
bool

Doc

Declaration
[DataMember(Name = "doc")]
public string Doc { get; set; }
Property Value
Type Description
string

Expr

Declaration
[DataMember(Name = "expr")]
public string Expr { get; set; }
Property Value
Type Description
string

Kind

Declaration
[DataMember(Name = "kind")]
public RuleKind Kind { get; set; }
Property Value
Type Description
RuleKind

Mode

Declaration
[DataMember(Name = "mode")]
public RuleMode Mode { get; set; }
Property Value
Type Description
RuleMode

Name

Declaration
[DataMember(Name = "name")]
public string Name { get; set; }
Property Value
Type Description
string

OnFailure

Declaration
[DataMember(Name = "onFailure")]
public string OnFailure { get; set; }
Property Value
Type Description
string

OnSuccess

Declaration
[DataMember(Name = "onSuccess")]
public string OnSuccess { get; set; }
Property Value
Type Description
string

Params

Declaration
[DataMember(Name = "params")]
public IDictionary<string, string> Params { get; set; }
Property Value
Type Description
IDictionary<string, string>

Tags

Declaration
[DataMember(Name = "tags")]
public ISet<string> Tags { get; set; }
Property Value
Type Description
ISet<string>

Type

Declaration
[DataMember(Name = "type")]
public string Type { get; set; }
Property Value
Type Description
string

Methods

Equals(Rule)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(Rule other)
Parameters
Type Name Description
Rule other

An object to compare with this object.

Returns
Type Description
bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

The object to compare with the current object.

Returns
Type Description
bool

true if the specified object is equal to the current object; otherwise, false.

Overrides
object.Equals(object)

GetHashCode()

Serves as the default hash function.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
object.GetHashCode()

Implements

IEquatable<T>
In this article