@NotThreadSafe public static final class ImmutableConfigProviderExample.Builder extends Object
ImmutableConfigProviderExample.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableConfigProviderExample.Builder |
addAllSections(Iterable<? extends Notes.Section> elements)
Adds elements to
sections list. |
ImmutableConfigProviderExample.Builder |
addSections(Notes.Section... elements)
Adds elements to
sections list. |
ImmutableConfigProviderExample.Builder |
addSections(Notes.Section element)
Adds one element to
sections list. |
ImmutableConfigProviderExample |
build()
Builds a new
ImmutableConfigProviderExample. |
ImmutableConfigProviderExample.Builder |
config(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
config map. |
ImmutableConfigProviderExample.Builder |
connectorConfig(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
connectorConfig map. |
ImmutableConfigProviderExample.Builder |
danger(String danger)
Initializes the value for the
danger attribute. |
ImmutableConfigProviderExample.Builder |
description(String description)
Initializes the value for the
description attribute. |
ImmutableConfigProviderExample.Builder |
from(Notes instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Notes instance. |
ImmutableConfigProviderExample.Builder |
from(Plugin.ConfigProviderExample instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.ConfigProviderExample instance. |
ImmutableConfigProviderExample.Builder |
from(Plugin.Example instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Example instance. |
ImmutableConfigProviderExample.Builder |
icon(String icon)
Initializes the value for the
icon attribute. |
ImmutableConfigProviderExample.Builder |
important(String important)
Initializes the value for the
important attribute. |
ImmutableConfigProviderExample.Builder |
introduction(String introduction)
Initializes the value for the
introduction attribute. |
ImmutableConfigProviderExample.Builder |
name(String name)
Initializes the value for the
name attribute. |
ImmutableConfigProviderExample.Builder |
note(String note)
Initializes the value for the
note attribute. |
ImmutableConfigProviderExample.Builder |
prefix(String prefix)
Initializes the value for the
prefix attribute. |
ImmutableConfigProviderExample.Builder |
putAllConfig(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
config map. |
ImmutableConfigProviderExample.Builder |
putAllConnectorConfig(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
connectorConfig map. |
ImmutableConfigProviderExample.Builder |
putConfig(Map.Entry<String,? extends String> entry)
Put one entry to the
config map. |
ImmutableConfigProviderExample.Builder |
putConfig(String key,
String value)
Put one entry to the
config map. |
ImmutableConfigProviderExample.Builder |
putConnectorConfig(Map.Entry<String,? extends String> entry)
Put one entry to the
connectorConfig map. |
ImmutableConfigProviderExample.Builder |
putConnectorConfig(String key,
String value)
Put one entry to the
connectorConfig map. |
ImmutableConfigProviderExample.Builder |
sections(Iterable<? extends Notes.Section> elements)
Sets or replaces all elements for
sections list. |
ImmutableConfigProviderExample.Builder |
tip(String tip)
Initializes the value for the
tip attribute. |
ImmutableConfigProviderExample.Builder |
title(String title)
Initializes the value for the
title attribute. |
ImmutableConfigProviderExample.Builder |
warning(String warning)
Initializes the value for the
warning attribute. |
@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder from(Notes instance)
com.github.jcustenborder.kafka.connect.utils.templates.Notes instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder from(Plugin.ConfigProviderExample instance)
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.ConfigProviderExample instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder from(Plugin.Example instance)
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Example instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder warning(@Nullable String warning)
warning attribute.warning - The value for warning (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder tip(@Nullable String tip)
tip attribute.tip - The value for tip (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder important(@Nullable String important)
important attribute.important - The value for important (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder danger(@Nullable String danger)
danger attribute.danger - The value for danger (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder note(@Nullable String note)
note attribute.note - The value for note (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder title(@Nullable String title)
title attribute.title - The value for title (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder description(@Nullable String description)
description attribute.description - The value for description (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder icon(@Nullable String icon)
icon attribute.icon - The value for icon (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder introduction(@Nullable String introduction)
introduction attribute.introduction - The value for introduction (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder addSections(Notes.Section element)
sections list.element - A sections elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder addSections(Notes.Section... elements)
sections list.elements - An array of sections elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder sections(@Nullable Iterable<? extends Notes.Section> elements)
sections list.elements - An iterable of sections elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder addAllSections(Iterable<? extends Notes.Section> elements)
sections list.elements - An iterable of sections elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder putConfig(String key, String value)
config map.key - The key in the config mapvalue - The associated value in the config mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder putConfig(Map.Entry<String,? extends String> entry)
config map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder config(Map<String,? extends String> entries)
config map. Nulls are not permittedentries - The entries that will be added to the config mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder putAllConfig(Map<String,? extends String> entries)
config map. Nulls are not permittedentries - The entries that will be added to the config mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder prefix(String prefix)
prefix attribute.prefix - The value for prefixthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder putConnectorConfig(String key, String value)
connectorConfig map.key - The key in the connectorConfig mapvalue - The associated value in the connectorConfig mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder putConnectorConfig(Map.Entry<String,? extends String> entry)
connectorConfig map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder connectorConfig(Map<String,? extends String> entries)
connectorConfig map. Nulls are not permittedentries - The entries that will be added to the connectorConfig mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConfigProviderExample.Builder putAllConnectorConfig(Map<String,? extends String> entries)
connectorConfig map. Nulls are not permittedentries - The entries that will be added to the connectorConfig mapthis builder for use in a chained invocationpublic ImmutableConfigProviderExample build()
ImmutableConfigProviderExample.IllegalStateException - if any required attributes are missingCopyright © 2016–2025. All rights reserved.