confluent-kafka-dotnet
Show / Hide Table of Contents

Class ResourcePattern

Represents a pattern that is used by ACLs to match zero or more resources.

Inheritance
System.Object
ResourcePattern
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 ResourcePattern

Properties

Name

The resource name, 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, which controls how the pattern will match resource names.

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

Type

The resource type.

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

Methods

Clone()

A clone of the ResourcePattern object

Declaration
public ResourcePattern Clone()
Returns
Type Description
ResourcePattern

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()

ToFilter()

Create a filter which matches only this ResourcePattern.

Declaration
public ResourcePatternFilter ToFilter()
Returns
Type Description
ResourcePatternFilter

ToString()

Returns a JSON representation of this ResourcePattern object.

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

A JSON representation of this ResourcePattern object.

Overrides
System.Object.ToString()

Operators

Equality(ResourcePattern, ResourcePattern)

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

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

The first ResourcePattern instance to compare.

ResourcePattern b

The second ResourcePattern instance to compare.

Returns
Type Description
System.Boolean

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

Inequality(ResourcePattern, ResourcePattern)

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

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

The first ResourcePattern instance to compare.

ResourcePattern b

The second ResourcePattern instance to compare.

Returns
Type Description
System.Boolean

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

In This Article