@NotThreadSafe public static final class ImmutableTransformation.Builder extends Object
ImmutableTransformation.
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 |
|---|---|
ImmutableTransformation.Builder |
addAllExamples(Iterable<String> elements)
Adds elements to
examples list. |
ImmutableTransformation.Builder |
addAllSections(Iterable<? extends Notes.Section> elements)
Adds elements to
sections list. |
ImmutableTransformation.Builder |
addExamples(String... elements)
Adds elements to
examples list. |
ImmutableTransformation.Builder |
addExamples(String element)
Adds one element to
examples list. |
ImmutableTransformation.Builder |
addSections(Notes.Section... elements)
Adds elements to
sections list. |
ImmutableTransformation.Builder |
addSections(Notes.Section element)
Adds one element to
sections list. |
ImmutableTransformation |
build()
Builds a new
ImmutableTransformation. |
ImmutableTransformation.Builder |
cls(Class cls)
Initializes the value for the
cls attribute. |
ImmutableTransformation.Builder |
configuration(Plugin.Configuration configuration)
Initializes the value for the
configuration attribute. |
ImmutableTransformation.Builder |
danger(String danger)
Initializes the value for the
danger attribute. |
ImmutableTransformation.Builder |
description(String description)
Initializes the value for the
description attribute. |
ImmutableTransformation.Builder |
examples(Iterable<String> elements)
Sets or replaces all elements for
examples list. |
ImmutableTransformation.Builder |
from(Notes instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Notes instance. |
ImmutableTransformation.Builder |
from(Plugin.Configurable instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Configurable instance. |
ImmutableTransformation.Builder |
from(Plugin.Transformation instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Transformation instance. |
ImmutableTransformation.Builder |
icon(String icon)
Initializes the value for the
icon attribute. |
ImmutableTransformation.Builder |
important(String important)
Initializes the value for the
important attribute. |
ImmutableTransformation.Builder |
introduction(String introduction)
Initializes the value for the
introduction attribute. |
ImmutableTransformation.Builder |
isKeyValue(boolean isKeyValue)
Initializes the value for the
isKeyValue attribute. |
ImmutableTransformation.Builder |
key(Class key)
Initializes the value for the
key attribute. |
ImmutableTransformation.Builder |
note(String note)
Initializes the value for the
note attribute. |
ImmutableTransformation.Builder |
sections(Iterable<? extends Notes.Section> elements)
Sets or replaces all elements for
sections list. |
ImmutableTransformation.Builder |
tip(String tip)
Initializes the value for the
tip attribute. |
ImmutableTransformation.Builder |
title(String title)
Initializes the value for the
title attribute. |
ImmutableTransformation.Builder |
value(Class value)
Initializes the value for the
value attribute. |
ImmutableTransformation.Builder |
warning(String warning)
Initializes the value for the
warning attribute. |
@CanIgnoreReturnValue public final ImmutableTransformation.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 ImmutableTransformation.Builder from(Plugin.Configurable instance)
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Configurable instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.Builder from(Plugin.Transformation instance)
com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Transformation instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.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 ImmutableTransformation.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 ImmutableTransformation.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 ImmutableTransformation.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 ImmutableTransformation.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 ImmutableTransformation.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 ImmutableTransformation.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 ImmutableTransformation.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 ImmutableTransformation.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 ImmutableTransformation.Builder addSections(Notes.Section element)
sections list.element - A sections elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.Builder addSections(Notes.Section... elements)
sections list.elements - An array of sections elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.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 ImmutableTransformation.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 ImmutableTransformation.Builder cls(Class cls)
cls attribute.cls - The value for clsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.Builder configuration(@Nullable Plugin.Configuration configuration)
configuration attribute.configuration - The value for configuration (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.Builder addExamples(String element)
examples list.element - A examples elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.Builder addExamples(String... elements)
examples list.elements - An array of examples elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.Builder examples(Iterable<String> elements)
examples list.elements - An iterable of examples elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.Builder addAllExamples(Iterable<String> elements)
examples list.elements - An iterable of examples elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.Builder isKeyValue(boolean isKeyValue)
isKeyValue attribute.isKeyValue - The value for isKeyValuethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.Builder key(@Nullable Class key)
key attribute.key - The value for key (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformation.Builder value(@Nullable Class value)
value attribute.value - The value for value (can be null)this builder for use in a chained invocationpublic ImmutableTransformation build()
ImmutableTransformation.IllegalStateException - if any required attributes are missingCopyright © 2016–2025. All rights reserved.