Class ResourcePatternFilter
Represents a filter that can match ResourcePattern.
Inherited Members
Namespace: Confluent.Kafka.Admin
Assembly: Confluent.Kafka.dll
Syntax
public class ResourcePatternFilterProperties
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 |
|---|---|
| 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 |
|---|---|---|
| object | obj | The object to test. |
Returns
| Type | Description |
|---|---|
| bool | true if it is of the same type and the property values are equal. false otherwise. |
Overrides
GetHashCode()
Returns a hash code for this value.
Declaration
public override int GetHashCode()Returns
| Type | Description |
|---|---|
| int | An integer that specifies a hash value for this value. |
Overrides
ToString()
Returns a JSON representation of this ResourcePatternFilter object.
Declaration
public override string ToString()Returns
| Type | Description |
|---|---|
| string | A JSON representation of this ResourcePatternFilter object. |
Overrides
Operators
operator ==(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 |
|---|---|
| bool | true if ResourcePatternFilter instances a and b are equal. false otherwise. |
operator !=(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 |
|---|---|
| bool | true if ResourcePatternFilter instances a and b are not equal. false otherwise. |