@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTransformationExampleInput extends Object implements Plugin.TransformationExampleInput
Plugin.TransformationExampleInput.
Use the builder to create immutable instances:
ImmutableTransformationExampleInput.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTransformationExampleInput.Builder
Builds instances of type
ImmutableTransformationExampleInput. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableTransformationExampleInput.Builder |
builder()
Creates a builder for
ImmutableTransformationExampleInput. |
static ImmutableTransformationExampleInput |
copyOf(Plugin.TransformationExampleInput instance)
Creates an immutable copy of a
Plugin.TransformationExampleInput value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTransformationExampleInput that have equal attribute values. |
String |
getConfig() |
Plugin.TransformationExample |
getExample() |
com.google.common.collect.ImmutableList<Integer> |
getInputEmphasizeLines() |
String |
getInputJson() |
com.google.common.collect.ImmutableList<Integer> |
getOutputEmphasizeLines() |
String |
getOutputJson() |
int |
hashCode()
Computes a hash code from attributes:
config, example, inputEmphasizeLines, inputJson, outputEmphasizeLines, outputJson. |
String |
toString()
Prints the immutable value
TransformationExampleInput with attribute values. |
ImmutableTransformationExampleInput |
withConfig(String value)
Copy the current immutable object by setting a value for the
config attribute. |
ImmutableTransformationExampleInput |
withExample(Plugin.TransformationExample value)
Copy the current immutable object by setting a value for the
example attribute. |
ImmutableTransformationExampleInput |
withInputEmphasizeLines(int... elements)
Copy the current immutable object with elements that replace the content of
inputEmphasizeLines. |
ImmutableTransformationExampleInput |
withInputEmphasizeLines(Iterable<Integer> elements)
Copy the current immutable object with elements that replace the content of
inputEmphasizeLines. |
ImmutableTransformationExampleInput |
withInputJson(String value)
Copy the current immutable object by setting a value for the
inputJson attribute. |
ImmutableTransformationExampleInput |
withOutputEmphasizeLines(int... elements)
Copy the current immutable object with elements that replace the content of
outputEmphasizeLines. |
ImmutableTransformationExampleInput |
withOutputEmphasizeLines(Iterable<Integer> elements)
Copy the current immutable object with elements that replace the content of
outputEmphasizeLines. |
ImmutableTransformationExampleInput |
withOutputJson(String value)
Copy the current immutable object by setting a value for the
outputJson attribute. |
@Nullable public String getConfig()
getConfig in interface Plugin.ExampleInput<Plugin.TransformationExample>config attributepublic Plugin.TransformationExample getExample()
getExample in interface Plugin.ExampleInput<Plugin.TransformationExample>example attributepublic com.google.common.collect.ImmutableList<Integer> getInputEmphasizeLines()
getInputEmphasizeLines in interface Plugin.TransformationExampleInputinputEmphasizeLines attribute@Nullable public String getInputJson()
getInputJson in interface Plugin.TransformationExampleInputinputJson attributepublic com.google.common.collect.ImmutableList<Integer> getOutputEmphasizeLines()
getOutputEmphasizeLines in interface Plugin.TransformationExampleInputoutputEmphasizeLines attribute@Nullable public String getOutputJson()
getOutputJson in interface Plugin.TransformationExampleInputoutputJson attributepublic final ImmutableTransformationExampleInput withConfig(@Nullable String value)
config attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for config (can be null)this objectpublic final ImmutableTransformationExampleInput withExample(Plugin.TransformationExample value)
example attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for examplethis objectpublic final ImmutableTransformationExampleInput withInputEmphasizeLines(int... elements)
inputEmphasizeLines.elements - The elements to setthis objectpublic final ImmutableTransformationExampleInput withInputEmphasizeLines(Iterable<Integer> elements)
inputEmphasizeLines.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of inputEmphasizeLines elements to setthis objectpublic final ImmutableTransformationExampleInput withInputJson(@Nullable String value)
inputJson attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for inputJson (can be null)this objectpublic final ImmutableTransformationExampleInput withOutputEmphasizeLines(int... elements)
outputEmphasizeLines.elements - The elements to setthis objectpublic final ImmutableTransformationExampleInput withOutputEmphasizeLines(Iterable<Integer> elements)
outputEmphasizeLines.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of outputEmphasizeLines elements to setthis objectpublic final ImmutableTransformationExampleInput withOutputJson(@Nullable String value)
outputJson attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for outputJson (can be null)this objectpublic boolean equals(@Nullable Object another)
ImmutableTransformationExampleInput that have equal attribute values.public int hashCode()
config, example, inputEmphasizeLines, inputJson, outputEmphasizeLines, outputJson.public String toString()
TransformationExampleInput with attribute values.public static ImmutableTransformationExampleInput copyOf(Plugin.TransformationExampleInput instance)
Plugin.TransformationExampleInput 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 ImmutableTransformationExampleInput.Builder builder()
ImmutableTransformationExampleInput.
ImmutableTransformationExampleInput.builder()
.config(String | null) // nullable config
.example(com.github.jcustenborder.kafka.connect.utils.templates.Plugin.TransformationExample) // required example
.addInputEmphasizeLines|addAllInputEmphasizeLines(int) // inputEmphasizeLines elements
.inputJson(String | null) // nullable inputJson
.addOutputEmphasizeLines|addAllOutputEmphasizeLines(int) // outputEmphasizeLines elements
.outputJson(String | null) // nullable outputJson
.build();
Copyright © 2016–2025. All rights reserved.