confluent-kafka-dotnet
Show / Hide Table of Contents

Class ResourcePatternFilter

Represents a filter that can match ResourcePattern.

Inheritance
System.Object
ResourcePatternFilter
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Confluent.Kafka.Admin
Assembly: cs.temp.dll.dll
Syntax
public class ResourcePatternFilter

Properties

Name

The resource name this filter matches, which depends on the resource type. For ResourceBroker the resource name is the broker id.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

ResourcePatternType

The resource pattern type of this filter. If Any, the filter will match patterns regardless of pattern type. If Match, the filter will match patterns that would match the supplied name, including a matching prefixed and wildcards patterns. If any other resource pattern type, the filter will match only patterns with the same type.

Declaration
public ResourcePatternType ResourcePatternType { get; set; }
Property Value
Type Description
ResourcePatternType

Type

The resource type this filter matches.

Declaration
public ResourceType Type { get; set; }
Property Value
Type Description
ResourceType

Methods

Clone()

A clone of the ResourcePatternFilter object

Declaration
public ResourcePatternFilter Clone()
Returns
Type Description
ResourcePatternFilter

Equals(Object)

Tests whether this instance is equal to the specified object.

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

The object to test.

Returns
Type Description
System.Boolean

true if it is of the same type and the property values are equal. false otherwise.

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Returns a hash code for this value.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

An integer that specifies a hash value for this value.

Overrides
System.Object.GetHashCode()

ToString()

Returns a JSON representation of this ResourcePatternFilter object.

Declaration
public override string ToString()
Returns
Type Description
System.String

A JSON representation of this ResourcePatternFilter object.

Overrides
System.Object.ToString()

Operators

Equality(ResourcePatternFilter, ResourcePatternFilter)

Tests whether ResourcePatternFilter instance a is equal to ResourcePatternFilter instance b.

Declaration
public static bool operator ==(ResourcePatternFilter a, ResourcePatternFilter b)
Parameters
Type Name Description
ResourcePatternFilter a

The first ResourcePatternFilter instance to compare.

ResourcePatternFilter b

The second ResourcePatternFilter instance to compare.

Returns
Type Description
System.Boolean

true if ResourcePatternFilter instances a and b are equal. false otherwise.

Inequality(ResourcePatternFilter, ResourcePatternFilter)

Tests whether ResourcePatternFilter instance a is not equal to ResourcePatternFilter instance b.

Declaration
public static bool operator !=(ResourcePatternFilter a, ResourcePatternFilter b)
Parameters
Type Name Description
ResourcePatternFilter a

The first ResourcePatternFilter instance to compare.

ResourcePatternFilter b

The second ResourcePatternFilter instance to compare.

Returns
Type Description
System.Boolean

true if ResourcePatternFilter instances a and b are not equal. false otherwise.

In This Article