Class Association
Represents an association between a subject and a resource in Schema Registry.
Inherited Members
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public class AssociationConstructors
Association()
Initializes a new instance of the Association class.
Declaration
public Association()Association(string, string, string, string, string, string, string, string, bool)
Initializes a new instance of the Association class.
Declaration
public Association(string subject, string guid, string resourceName, string resourceNamespace, string resourceId, string resourceType, string associationType, string lifecycle, bool frozen)Parameters
| Type | Name | Description |
|---|---|---|
| string | subject | |
| string | guid | |
| string | resourceName | |
| string | resourceNamespace | |
| string | resourceId | |
| string | resourceType | |
| string | associationType | |
| string | lifecycle | |
| bool | frozen |
Properties
AssociationType
The type of association (e.g., "key" or "value").
Declaration
[JsonProperty("associationType")]
public string AssociationType { get; set; }Property Value
| Type | Description |
|---|---|
| string |
Frozen
Whether the association is frozen.
Declaration
[JsonProperty("frozen")]
public bool Frozen { get; set; }Property Value
| Type | Description |
|---|---|
| bool |
Guid
The globally unique identifier.
Declaration
[JsonProperty("guid")]
public string Guid { get; set; }Property Value
| Type | Description |
|---|---|
| string |
Lifecycle
The lifecycle policy of the association.
Declaration
[JsonProperty("lifecycle")]
public string Lifecycle { get; set; }Property Value
| Type | Description |
|---|---|
| string |
ResourceId
The resource identifier.
Declaration
[JsonProperty("resourceId")]
public string ResourceId { get; set; }Property Value
| Type | Description |
|---|---|
| string |
ResourceName
The resource name (e.g., topic name).
Declaration
[JsonProperty("resourceName")]
public string ResourceName { get; set; }Property Value
| Type | Description |
|---|---|
| string |
ResourceNamespace
The resource namespace (e.g., Kafka cluster ID).
Declaration
[JsonProperty("resourceNamespace")]
public string ResourceNamespace { get; set; }Property Value
| Type | Description |
|---|---|
| string |
ResourceType
The type of resource (e.g., "topic").
Declaration
[JsonProperty("resourceType")]
public string ResourceType { get; set; }Property Value
| Type | Description |
|---|---|
| string |
Subject
The subject name.
Declaration
[JsonProperty("subject")]
public string Subject { get; set; }Property Value
| Type | Description |
|---|---|
| string |
Methods
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
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |