@NotThreadSafe public static final class ImmutableCopy.Builder extends Object
ImmutableCopy.
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 |
|---|---|
ImmutableCopy |
build()
Builds a new
ImmutableCopy. |
ImmutableCopy.Builder |
danger(String danger)
Initializes the value for the
danger attribute. |
ImmutableCopy.Builder |
description(String description)
Initializes the value for the
description attribute. |
ImmutableCopy.Builder |
from(Notes.Copy instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Notes.Copy instance. |
ImmutableCopy.Builder |
from(Notes instance)
Fill a builder with attribute values from the provided
com.github.jcustenborder.kafka.connect.utils.templates.Notes instance. |
ImmutableCopy.Builder |
icon(String icon)
Initializes the value for the
icon attribute. |
ImmutableCopy.Builder |
important(String important)
Initializes the value for the
important attribute. |
ImmutableCopy.Builder |
introduction(String introduction)
Initializes the value for the
introduction attribute. |
ImmutableCopy.Builder |
note(String note)
Initializes the value for the
note attribute. |
ImmutableCopy.Builder |
tip(String tip)
Initializes the value for the
tip attribute. |
ImmutableCopy.Builder |
title(String title)
Initializes the value for the
title attribute. |
ImmutableCopy.Builder |
warning(String warning)
Initializes the value for the
warning attribute. |
@CanIgnoreReturnValue public final ImmutableCopy.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 ImmutableCopy.Builder from(Notes.Copy instance)
com.github.jcustenborder.kafka.connect.utils.templates.Notes.Copy instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCopy.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 ImmutableCopy.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 ImmutableCopy.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 ImmutableCopy.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 ImmutableCopy.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 ImmutableCopy.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 ImmutableCopy.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 ImmutableCopy.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 ImmutableCopy.Builder introduction(@Nullable String introduction)
introduction attribute.introduction - The value for introduction (can be null)this builder for use in a chained invocationpublic ImmutableCopy build()
ImmutableCopy.IllegalStateException - if any required attributes are missingCopyright © 2016–2019. All rights reserved.