@NotThreadSafe public static final class ImmutableTransformationExampleInput.Builder extends Object
ImmutableTransformationExampleInput.
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.
@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder from(Plugin.TransformationExampleInput instance)
TransformationExampleInput instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder config(@Nullable String config)
config attribute.config - The value for config (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder example(Plugin.TransformationExample example)
example attribute.example - The value for examplethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder addInputEmphasizeLines(int element)
inputEmphasizeLines list.element - A inputEmphasizeLines elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder addInputEmphasizeLines(int... elements)
inputEmphasizeLines list.elements - An array of inputEmphasizeLines elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder inputEmphasizeLines(Iterable<Integer> elements)
inputEmphasizeLines list.elements - An iterable of inputEmphasizeLines elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder addAllInputEmphasizeLines(Iterable<Integer> elements)
inputEmphasizeLines list.elements - An iterable of inputEmphasizeLines elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder inputJson(@Nullable String inputJson)
inputJson attribute.inputJson - The value for inputJson (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder addOutputEmphasizeLines(int element)
outputEmphasizeLines list.element - A outputEmphasizeLines elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder addOutputEmphasizeLines(int... elements)
outputEmphasizeLines list.elements - An array of outputEmphasizeLines elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder outputEmphasizeLines(Iterable<Integer> elements)
outputEmphasizeLines list.elements - An iterable of outputEmphasizeLines elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder addAllOutputEmphasizeLines(Iterable<Integer> elements)
outputEmphasizeLines list.elements - An iterable of outputEmphasizeLines elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTransformationExampleInput.Builder outputJson(@Nullable String outputJson)
outputJson attribute.outputJson - The value for outputJson (can be null)this builder for use in a chained invocationpublic ImmutableTransformationExampleInput build()
ImmutableTransformationExampleInput.IllegalStateException - if any required attributes are missingCopyright © 2016–2025. All rights reserved.