@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSchemaInput extends Object implements Plugin.SchemaInput
Plugin.SchemaInput.
Use the builder to create immutable instances:
ImmutableSchemaInput.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSchemaInput.Builder
Builds instances of type
ImmutableSchemaInput. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableSchemaInput.Builder |
builder()
Creates a builder for
ImmutableSchemaInput. |
static ImmutableSchemaInput |
copyOf(Plugin.SchemaInput instance)
Creates an immutable copy of a
Plugin.SchemaInput value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSchemaInput that have equal attribute values. |
String |
getDoc() |
String |
getFieldName() |
com.google.common.collect.ImmutableList<Plugin.SchemaInput> |
getFields() |
String |
getName() |
String |
getRefLink() |
String |
getSchemaLink() |
String |
getShortName() |
String |
getTable() |
org.apache.kafka.connect.data.Schema.Type |
getType() |
int |
hashCode()
Computes a hash code from attributes:
name, schemaLink, shortName, doc, isOptional, type, fieldName, fields, key, value, refLink, table. |
boolean |
isOptional() |
Plugin.SchemaInput |
key() |
String |
toString()
Prints the immutable value
SchemaInput with attribute values. |
Plugin.SchemaInput |
value() |
ImmutableSchemaInput |
withDoc(String value)
Copy the current immutable object by setting a value for the
doc attribute. |
ImmutableSchemaInput |
withFieldName(String value)
Copy the current immutable object by setting a value for the
fieldName attribute. |
ImmutableSchemaInput |
withFields(Iterable<? extends Plugin.SchemaInput> elements)
Copy the current immutable object with elements that replace the content of
fields. |
ImmutableSchemaInput |
withFields(Plugin.SchemaInput... elements)
Copy the current immutable object with elements that replace the content of
fields. |
ImmutableSchemaInput |
withIsOptional(boolean value)
Copy the current immutable object by setting a value for the
isOptional attribute. |
ImmutableSchemaInput |
withKey(Plugin.SchemaInput value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableSchemaInput |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableSchemaInput |
withType(org.apache.kafka.connect.data.Schema.Type value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableSchemaInput |
withValue(Plugin.SchemaInput value)
Copy the current immutable object by setting a value for the
value attribute. |
@Nullable public String getName()
getName in interface Plugin.SchemaInputname attribute@Nullable public String getSchemaLink()
getSchemaLink in interface Plugin.SchemaInputschemaLink attribute@Nullable public String getShortName()
getShortName in interface Plugin.SchemaInputshortName attribute@Nullable public String getDoc()
getDoc in interface Plugin.SchemaInputdoc attributepublic boolean isOptional()
isOptional in interface Plugin.SchemaInputisOptional attributepublic org.apache.kafka.connect.data.Schema.Type getType()
getType in interface Plugin.SchemaInputtype attribute@Nullable public String getFieldName()
getFieldName in interface Plugin.SchemaInputfieldName attribute@Nullable public com.google.common.collect.ImmutableList<Plugin.SchemaInput> getFields()
getFields in interface Plugin.SchemaInputfields attribute@Nullable public Plugin.SchemaInput key()
key in interface Plugin.SchemaInputkey attribute@Nullable public Plugin.SchemaInput value()
value in interface Plugin.SchemaInputvalue attributepublic String getRefLink()
getRefLink in interface Plugin.SchemaInputrefLink attributepublic String getTable()
getTable in interface Plugin.SchemaInputtable attributepublic final ImmutableSchemaInput withName(@Nullable String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for name (can be null)this objectpublic final ImmutableSchemaInput withDoc(@Nullable String value)
doc attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for doc (can be null)this objectpublic final ImmutableSchemaInput withIsOptional(boolean value)
isOptional attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isOptionalthis objectpublic final ImmutableSchemaInput withType(org.apache.kafka.connect.data.Schema.Type value)
type attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic final ImmutableSchemaInput withFieldName(@Nullable String value)
fieldName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for fieldName (can be null)this objectpublic final ImmutableSchemaInput withFields(@Nullable Plugin.SchemaInput... elements)
fields.elements - The elements to setthis objectpublic final ImmutableSchemaInput withFields(@Nullable Iterable<? extends Plugin.SchemaInput> elements)
fields.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of fields elements to setthis objectpublic final ImmutableSchemaInput withKey(@Nullable Plugin.SchemaInput value)
key attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for key (can be null)this objectpublic final ImmutableSchemaInput withValue(@Nullable Plugin.SchemaInput value)
value attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for value (can be null)this objectpublic boolean equals(@Nullable Object another)
ImmutableSchemaInput that have equal attribute values.public int hashCode()
name, schemaLink, shortName, doc, isOptional, type, fieldName, fields, key, value, refLink, table.public String toString()
SchemaInput with attribute values.public static ImmutableSchemaInput copyOf(Plugin.SchemaInput instance)
Plugin.SchemaInput value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableSchemaInput.Builder builder()
ImmutableSchemaInput.
ImmutableSchemaInput.builder()
.name(String | null) // nullable name
.doc(String | null) // nullable doc
.isOptional(boolean) // required isOptional
.type(org.apache.kafka.connect.data.Schema.Type) // required type
.fieldName(String | null) // nullable fieldName
.fields(List<com.github.jcustenborder.kafka.connect.utils.templates.Plugin.SchemaInput> | null) // nullable fields
.key(com.github.jcustenborder.kafka.connect.utils.templates.Plugin.SchemaInput | null) // nullable key
.value(com.github.jcustenborder.kafka.connect.utils.templates.Plugin.SchemaInput | null) // nullable value
.build();
Copyright © 2016–2025. All rights reserved.