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
TypeNameDescription
stringname
RuleKindkind
RuleModemode
stringtype
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
TypeNameDescription
stringname
RuleKindkind
RuleModemode
stringtype
ISet<string>tags
IDictionary<string, string>parameters
stringexpr
stringonSuccess
stringonFailure
booldisabled

Properties

Disabled

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

Doc

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

Expr

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

Kind

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

Mode

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

Name

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

OnFailure

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

OnSuccess

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

Params

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

Tags

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

Type

Declaration
[DataMember(Name = "type")]
public string Type { get; set; }
Property Value
TypeDescription
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
TypeNameDescription
Ruleother

An object to compare with this object.

Returns
TypeDescription
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
TypeNameDescription
objectobj

The object to compare with the current object.

Returns
TypeDescription
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
TypeDescription
int

A hash code for the current object.

Overrides
object.GetHashCode()

Implements

IEquatable<T>
In this article