@NotThreadSafe public static final class ImmutableConverterExample.Builder extends Object
ImmutableConverterExample.
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 |
|---|---|
ImmutableConverterExample.Builder |
addAllSections(Iterable<? extends Notes.Section> elements)
Adds elements to
sections list. |
ImmutableConverterExample.Builder |
addSections(Notes.Section... elements)
Adds elements to
sections list. |
ImmutableConverterExample.Builder |
addSections(Notes.Section element)
Adds one element to
sections list. |
ImmutableConverterExample |
build()
Builds a new
ImmutableConverterExample. |
ImmutableConverterExample.Builder |
config(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
config map. |
ImmutableConverterExample.Builder |
danger(String danger)
Initializes the value for the
danger attribute. |
ImmutableConverterExample.Builder |
description(String description)
Initializes the value for the
description attribute. |
ImmutableConverterExample.Builder |
from(Notes instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Notes instance. |
ImmutableConverterExample.Builder |
from(Plugin.ConverterExample instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.ConverterExample instance. |
ImmutableConverterExample.Builder |
from(Plugin.Example instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Example instance. |
ImmutableConverterExample.Builder |
icon(String icon)
Initializes the value for the
icon attribute. |
ImmutableConverterExample.Builder |
important(String important)
Initializes the value for the
important attribute. |
ImmutableConverterExample.Builder |
introduction(String introduction)
Initializes the value for the
introduction attribute. |
ImmutableConverterExample.Builder |
name(String name)
Initializes the value for the
name attribute. |
ImmutableConverterExample.Builder |
note(String note)
Initializes the value for the
note attribute. |
ImmutableConverterExample.Builder |
putAllConfig(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
config map. |
ImmutableConverterExample.Builder |
putConfig(Map.Entry<String,? extends String> entry)
Put one entry to the
config map. |
ImmutableConverterExample.Builder |
putConfig(String key,
String value)
Put one entry to the
config map. |
ImmutableConverterExample.Builder |
sections(Iterable<? extends Notes.Section> elements)
Sets or replaces all elements for
sections list. |
ImmutableConverterExample.Builder |
tip(String tip)
Initializes the value for the
tip attribute. |
ImmutableConverterExample.Builder |
title(String title)
Initializes the value for the
title attribute. |
ImmutableConverterExample.Builder |
warning(String warning)
Initializes the value for the
warning attribute. |
@CanIgnoreReturnValue public final ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.Builder from(Plugin.ConverterExample instance)
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.ConverterExample instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.Builder addSections(Notes.Section element)
sections list.element - A sections elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverterExample.Builder addSections(Notes.Section... elements)
sections list.elements - An array of sections elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.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 ImmutableConverterExample.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 invocationpublic ImmutableConverterExample build()
ImmutableConverterExample.IllegalStateException - if any required attributes are missingCopyright © 2016–2025. All rights reserved.