@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableConfiguration extends Object implements Plugin.Configuration
Plugin.Configuration.
Use the builder to create immutable instances:
ImmutableConfiguration.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableConfiguration.Builder
Builds instances of type
ImmutableConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableConfiguration.Builder |
builder()
Creates a builder for
ImmutableConfiguration. |
static ImmutableConfiguration |
copyOf(Plugin.Configuration instance)
Creates an immutable copy of a
Plugin.Configuration value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableConfiguration that have equal attribute values. |
org.apache.kafka.common.config.ConfigDef |
getConfigDef() |
com.google.common.collect.ImmutableList<Plugin.Group> |
getGroups() |
com.google.common.collect.ImmutableList<Plugin.Item> |
getRequiredConfigs() |
int |
hashCode()
Computes a hash code from attributes:
configDef, groups, requiredConfigs. |
String |
toString()
Prints the immutable value
Configuration with attribute values. |
ImmutableConfiguration |
withConfigDef(org.apache.kafka.common.config.ConfigDef value)
Copy the current immutable object by setting a value for the
configDef attribute. |
ImmutableConfiguration |
withGroups(Iterable<? extends Plugin.Group> elements)
Copy the current immutable object with elements that replace the content of
groups. |
ImmutableConfiguration |
withGroups(Plugin.Group... elements)
Copy the current immutable object with elements that replace the content of
groups. |
ImmutableConfiguration |
withRequiredConfigs(Iterable<? extends Plugin.Item> elements)
Copy the current immutable object with elements that replace the content of
requiredConfigs. |
ImmutableConfiguration |
withRequiredConfigs(Plugin.Item... elements)
Copy the current immutable object with elements that replace the content of
requiredConfigs. |
public org.apache.kafka.common.config.ConfigDef getConfigDef()
getConfigDef in interface Plugin.ConfigurationconfigDef attributepublic com.google.common.collect.ImmutableList<Plugin.Group> getGroups()
getGroups in interface Plugin.Configurationgroups attributepublic com.google.common.collect.ImmutableList<Plugin.Item> getRequiredConfigs()
getRequiredConfigs in interface Plugin.ConfigurationrequiredConfigs attributepublic final ImmutableConfiguration withConfigDef(org.apache.kafka.common.config.ConfigDef value)
configDef attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for configDefthis objectpublic final ImmutableConfiguration withGroups(Plugin.Group... elements)
groups.elements - The elements to setthis objectpublic final ImmutableConfiguration withGroups(Iterable<? extends Plugin.Group> elements)
groups.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of groups elements to setthis objectpublic final ImmutableConfiguration withRequiredConfigs(Plugin.Item... elements)
requiredConfigs.elements - The elements to setthis objectpublic final ImmutableConfiguration withRequiredConfigs(Iterable<? extends Plugin.Item> elements)
requiredConfigs.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of requiredConfigs elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableConfiguration that have equal attribute values.public int hashCode()
configDef, groups, requiredConfigs.public String toString()
Configuration with attribute values.public static ImmutableConfiguration copyOf(Plugin.Configuration instance)
Plugin.Configuration 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 ImmutableConfiguration.Builder builder()
ImmutableConfiguration.
ImmutableConfiguration.builder()
.configDef(org.apache.kafka.common.config.ConfigDef) // required configDef
.addGroups|addAllGroups(com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Group) // groups elements
.addRequiredConfigs|addAllRequiredConfigs(com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Item) // requiredConfigs elements
.build();
Copyright © 2016–2025. All rights reserved.