public static final class ImmutableSupportConfig.Builder extends Object
ImmutableSupportConfig.
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 |
|---|---|
ImmutableSupportConfig |
build()
Builds a new
ImmutableSupportConfig. |
ImmutableSupportConfig.Builder |
from(SupportConfig instance)
Fill a builder with attribute values from the provided
SupportConfig instance. |
ImmutableSupportConfig.Builder |
messageOnException(BiFunction<Class<?>,Exception,String> messageOnException)
Deprecated.
|
ImmutableSupportConfig.Builder |
name(String name)
Initializes the value for the
name attribute. |
ImmutableSupportConfig.Builder |
supportUrl(String supportUrl)
Initializes the value for the
supportUrl attribute. |
public final ImmutableSupportConfig.Builder from(SupportConfig instance)
SupportConfig instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableSupportConfig.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final ImmutableSupportConfig.Builder supportUrl(String supportUrl)
supportUrl attribute.supportUrl - The value for supportUrlthis builder for use in a chained invocation@Deprecated public final ImmutableSupportConfig.Builder messageOnException(BiFunction<Class<?>,Exception,String> messageOnException)
messageOnException attribute.messageOnException - The value for messageOnExceptionthis builder for use in a chained invocationpublic ImmutableSupportConfig build()
ImmutableSupportConfig.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.