@NotThreadSafe public static final class ImmutableDebugConfig.Builder extends Object
ImmutableDebugConfig.
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 |
|---|---|
ImmutableDebugConfig.Builder |
addAllClientAddrs(Iterable<String> elements)
Adds elements to
clientAddrs list. |
ImmutableDebugConfig.Builder |
addAllDnsRecursors(Iterable<String> elements)
Adds elements to
dnsRecursors list. |
ImmutableDebugConfig.Builder |
addClientAddrs(String... elements)
Adds elements to
clientAddrs list. |
ImmutableDebugConfig.Builder |
addClientAddrs(String element)
Adds one element to
clientAddrs list. |
ImmutableDebugConfig.Builder |
addDnsRecursors(String... elements)
Adds elements to
dnsRecursors list. |
ImmutableDebugConfig.Builder |
addDnsRecursors(String element)
Adds one element to
dnsRecursors list. |
ImmutableDebugConfig.Builder |
advertiseAddrLAN(String advertiseAddrLAN)
Initializes the value for the
advertiseAddrLAN attribute. |
ImmutableDebugConfig.Builder |
advertiseAddrWAN(String advertiseAddrWAN)
Initializes the value for the
advertiseAddrWAN attribute. |
ImmutableDebugConfig.Builder |
bindAddr(String bindAddr)
Initializes the value for the
bindAddr attribute. |
ImmutableDebugConfig.Builder |
bootstrap(boolean bootstrap)
Initializes the value for the
bootstrap attribute. |
ImmutableDebugConfig |
build()
Builds a new
ImmutableDebugConfig. |
ImmutableDebugConfig.Builder |
caFile(String caFile)
Initializes the value for the
caFile attribute. |
ImmutableDebugConfig.Builder |
certFile(String certFile)
Initializes the value for the
certFile attribute. |
ImmutableDebugConfig.Builder |
clientAddrs(Iterable<String> elements)
Sets or replaces all elements for
clientAddrs list. |
ImmutableDebugConfig.Builder |
datacenter(String datacenter)
Initializes the value for the
datacenter attribute. |
ImmutableDebugConfig.Builder |
dataDir(String dataDir)
Initializes the value for the
dataDir attribute. |
ImmutableDebugConfig.Builder |
dnsDomain(String dnsDomain)
Initializes the value for the
dnsDomain attribute. |
ImmutableDebugConfig.Builder |
dnsRecursors(Iterable<String> elements)
Sets or replaces all elements for
dnsRecursors list. |
ImmutableDebugConfig.Builder |
enableDebug(boolean enableDebug)
Initializes the value for the
enableDebug attribute. |
ImmutableDebugConfig.Builder |
enableSyslog(boolean enableSyslog)
Initializes the value for the
enableSyslog attribute. |
ImmutableDebugConfig.Builder |
from(DebugConfig instance)
Fill a builder with attribute values from the provided
DebugConfig instance. |
ImmutableDebugConfig.Builder |
keyFile(String keyFile)
Initializes the value for the
keyFile attribute. |
ImmutableDebugConfig.Builder |
leaveOnTerm(boolean leaveOnTerm)
Initializes the value for the
leaveOnTerm attribute. |
ImmutableDebugConfig.Builder |
logLevel(String logLevel)
Initializes the value for the
logLevel attribute. |
ImmutableDebugConfig.Builder |
nodeName(String nodeName)
Initializes the value for the
nodeName attribute. |
ImmutableDebugConfig.Builder |
pidFile(String pidFile)
Initializes the value for the
pidFile attribute. |
ImmutableDebugConfig.Builder |
rejoinAfterLeave(boolean rejoinAfterLeave)
Initializes the value for the
rejoinAfterLeave attribute. |
ImmutableDebugConfig.Builder |
skipLeaveOnInt(boolean skipLeaveOnInt)
Initializes the value for the
skipLeaveOnInt attribute. |
ImmutableDebugConfig.Builder |
uiDir(Optional<String> uiDir)
Initializes the optional value
uiDir to uiDir. |
ImmutableDebugConfig.Builder |
uiDir(String uiDir)
Initializes the optional value
uiDir to uiDir. |
ImmutableDebugConfig.Builder |
verifyIncoming(boolean verifyIncoming)
Initializes the value for the
verifyIncoming attribute. |
ImmutableDebugConfig.Builder |
verifyOutgoing(boolean verifyOutgoing)
Initializes the value for the
verifyOutgoing attribute. |
@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder from(DebugConfig instance)
DebugConfig 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 ImmutableDebugConfig.Builder bootstrap(boolean bootstrap)
bootstrap attribute.bootstrap - The value for bootstrapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder datacenter(String datacenter)
datacenter attribute.datacenter - The value for datacenterthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder dataDir(String dataDir)
dataDir attribute.dataDir - The value for dataDirthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder addDnsRecursors(String element)
dnsRecursors list.element - A dnsRecursors elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder addDnsRecursors(String... elements)
dnsRecursors list.elements - An array of dnsRecursors elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder dnsRecursors(Iterable<String> elements)
dnsRecursors list.elements - An iterable of dnsRecursors elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder addAllDnsRecursors(Iterable<String> elements)
dnsRecursors list.elements - An iterable of dnsRecursors elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder dnsDomain(String dnsDomain)
dnsDomain attribute.dnsDomain - The value for dnsDomainthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder logLevel(String logLevel)
logLevel attribute.logLevel - The value for logLevelthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder nodeName(String nodeName)
nodeName attribute.nodeName - The value for nodeNamethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder addClientAddrs(String element)
clientAddrs list.element - A clientAddrs elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder addClientAddrs(String... elements)
clientAddrs list.elements - An array of clientAddrs elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder clientAddrs(Iterable<String> elements)
clientAddrs list.elements - An iterable of clientAddrs elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder addAllClientAddrs(Iterable<String> elements)
clientAddrs list.elements - An iterable of clientAddrs elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder bindAddr(String bindAddr)
bindAddr attribute.bindAddr - The value for bindAddrthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder leaveOnTerm(boolean leaveOnTerm)
leaveOnTerm attribute.leaveOnTerm - The value for leaveOnTermthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder skipLeaveOnInt(boolean skipLeaveOnInt)
skipLeaveOnInt attribute.skipLeaveOnInt - The value for skipLeaveOnIntthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder enableDebug(boolean enableDebug)
enableDebug attribute.enableDebug - The value for enableDebugthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder verifyIncoming(boolean verifyIncoming)
verifyIncoming attribute.verifyIncoming - The value for verifyIncomingthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder verifyOutgoing(boolean verifyOutgoing)
verifyOutgoing attribute.verifyOutgoing - The value for verifyOutgoingthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder caFile(String caFile)
caFile attribute.caFile - The value for caFilethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder certFile(String certFile)
certFile attribute.certFile - The value for certFilethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder keyFile(String keyFile)
keyFile attribute.keyFile - The value for keyFilethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder uiDir(String uiDir)
uiDir to uiDir.uiDir - The value for uiDirthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder uiDir(Optional<String> uiDir)
uiDir to uiDir.uiDir - The value for uiDirthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder pidFile(String pidFile)
pidFile attribute.pidFile - The value for pidFilethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder enableSyslog(boolean enableSyslog)
enableSyslog attribute.enableSyslog - The value for enableSyslogthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder rejoinAfterLeave(boolean rejoinAfterLeave)
rejoinAfterLeave attribute.rejoinAfterLeave - The value for rejoinAfterLeavethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder advertiseAddrLAN(String advertiseAddrLAN)
advertiseAddrLAN attribute.advertiseAddrLAN - The value for advertiseAddrLANthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDebugConfig.Builder advertiseAddrWAN(String advertiseAddrWAN)
advertiseAddrWAN attribute.advertiseAddrWAN - The value for advertiseAddrWANthis builder for use in a chained invocationpublic ImmutableDebugConfig build()
ImmutableDebugConfig.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.