Package com.orbitz.consul.model.agent
Class ImmutableDebugConfig
- java.lang.Object
-
- com.orbitz.consul.model.agent.DebugConfig
-
- com.orbitz.consul.model.agent.ImmutableDebugConfig
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDebugConfig extends DebugConfigImmutable implementation ofDebugConfig.Use the builder to create immutable instances:
ImmutableDebugConfig.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDebugConfig.BuilderBuilds instances of typeImmutableDebugConfig.
-
Method Summary
Modifier and Type Method Description static ImmutableDebugConfig.Builderbuilder()Creates a builder forImmutableDebugConfig.static ImmutableDebugConfigcopyOf(DebugConfig instance)Creates an immutable copy of aDebugConfigvalue.com.google.common.collect.ImmutableList<java.lang.String>dnsRecursors()booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableDebugConfigthat have equal attribute values.java.lang.StringgetAdvertiseAddrLAN()java.lang.StringgetAdvertiseAddrWAN()java.lang.StringgetBindAddr()booleangetBootstrap()java.lang.StringgetCaFile()java.lang.StringgetCertFile()com.google.common.collect.ImmutableList<java.lang.String>getClientAddrs()java.lang.StringgetDatacenter()java.lang.StringgetDataDir()java.lang.StringgetDnsDomain()booleangetEnableDebug()booleangetEnableSyslog()java.lang.StringgetKeyFile()booleangetLeaveOnTerm()java.lang.StringgetLogLevel()java.lang.StringgetNodeName()java.lang.StringgetPidFile()booleangetRejoinAfterLeave()booleangetSkipLeaveOnInt()java.util.Optional<java.lang.String>getUiDir()booleangetVerifyIncoming()booleangetVerifyOutgoing()inthashCode()Computes a hash code from attributes:bootstrap,datacenter,dataDir,dnsRecursors,dnsDomain,logLevel,nodeName,clientAddrs,bindAddr,leaveOnTerm,skipLeaveOnInt,enableDebug,verifyIncoming,verifyOutgoing,caFile,certFile,keyFile,uiDir,pidFile,enableSyslog,rejoinAfterLeave,advertiseAddrLAN,advertiseAddrWAN.java.lang.StringtoString()Prints the immutable valueDebugConfigwith attribute values.ImmutableDebugConfigwithAdvertiseAddrLAN(java.lang.String value)Copy the current immutable object by setting a value for theadvertiseAddrLANattribute.ImmutableDebugConfigwithAdvertiseAddrWAN(java.lang.String value)Copy the current immutable object by setting a value for theadvertiseAddrWANattribute.ImmutableDebugConfigwithBindAddr(java.lang.String value)Copy the current immutable object by setting a value for thebindAddrattribute.ImmutableDebugConfigwithBootstrap(boolean value)Copy the current immutable object by setting a value for thebootstrapattribute.ImmutableDebugConfigwithCaFile(java.lang.String value)Copy the current immutable object by setting a value for thecaFileattribute.ImmutableDebugConfigwithCertFile(java.lang.String value)Copy the current immutable object by setting a value for thecertFileattribute.ImmutableDebugConfigwithClientAddrs(java.lang.Iterable<java.lang.String> elements)Copy the current immutable object with elements that replace the content ofclientAddrs.ImmutableDebugConfigwithClientAddrs(java.lang.String... elements)Copy the current immutable object with elements that replace the content ofclientAddrs.ImmutableDebugConfigwithDatacenter(java.lang.String value)Copy the current immutable object by setting a value for thedatacenterattribute.ImmutableDebugConfigwithDataDir(java.lang.String value)Copy the current immutable object by setting a value for thedataDirattribute.ImmutableDebugConfigwithDnsDomain(java.lang.String value)Copy the current immutable object by setting a value for thednsDomainattribute.ImmutableDebugConfigwithDnsRecursors(java.lang.Iterable<java.lang.String> elements)Copy the current immutable object with elements that replace the content ofdnsRecursors.ImmutableDebugConfigwithDnsRecursors(java.lang.String... elements)Copy the current immutable object with elements that replace the content ofdnsRecursors.ImmutableDebugConfigwithEnableDebug(boolean value)Copy the current immutable object by setting a value for theenableDebugattribute.ImmutableDebugConfigwithEnableSyslog(boolean value)Copy the current immutable object by setting a value for theenableSyslogattribute.ImmutableDebugConfigwithKeyFile(java.lang.String value)Copy the current immutable object by setting a value for thekeyFileattribute.ImmutableDebugConfigwithLeaveOnTerm(boolean value)Copy the current immutable object by setting a value for theleaveOnTermattribute.ImmutableDebugConfigwithLogLevel(java.lang.String value)Copy the current immutable object by setting a value for thelogLevelattribute.ImmutableDebugConfigwithNodeName(java.lang.String value)Copy the current immutable object by setting a value for thenodeNameattribute.ImmutableDebugConfigwithPidFile(java.lang.String value)Copy the current immutable object by setting a value for thepidFileattribute.ImmutableDebugConfigwithRejoinAfterLeave(boolean value)Copy the current immutable object by setting a value for therejoinAfterLeaveattribute.ImmutableDebugConfigwithSkipLeaveOnInt(boolean value)Copy the current immutable object by setting a value for theskipLeaveOnIntattribute.ImmutableDebugConfigwithUiDir(java.lang.String value)Copy the current immutable object by setting a present value for the optionaluiDirattribute.ImmutableDebugConfigwithUiDir(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for theuiDirattribute.ImmutableDebugConfigwithVerifyIncoming(boolean value)Copy the current immutable object by setting a value for theverifyIncomingattribute.ImmutableDebugConfigwithVerifyOutgoing(boolean value)Copy the current immutable object by setting a value for theverifyOutgoingattribute.
-
-
-
Method Detail
-
getBootstrap
public boolean getBootstrap()
- Specified by:
getBootstrapin classDebugConfig- Returns:
- The value of the
bootstrapattribute
-
getDatacenter
public java.lang.String getDatacenter()
- Specified by:
getDatacenterin classDebugConfig- Returns:
- The value of the
datacenterattribute
-
getDataDir
public java.lang.String getDataDir()
- Specified by:
getDataDirin classDebugConfig- Returns:
- The value of the
dataDirattribute
-
dnsRecursors
public com.google.common.collect.ImmutableList<java.lang.String> dnsRecursors()
- Specified by:
dnsRecursorsin classDebugConfig- Returns:
- The value of the
dnsRecursorsattribute
-
getDnsDomain
public java.lang.String getDnsDomain()
- Specified by:
getDnsDomainin classDebugConfig- Returns:
- The value of the
dnsDomainattribute
-
getLogLevel
public java.lang.String getLogLevel()
- Specified by:
getLogLevelin classDebugConfig- Returns:
- The value of the
logLevelattribute
-
getNodeName
public java.lang.String getNodeName()
- Specified by:
getNodeNamein classDebugConfig- Returns:
- The value of the
nodeNameattribute
-
getClientAddrs
public com.google.common.collect.ImmutableList<java.lang.String> getClientAddrs()
- Specified by:
getClientAddrsin classDebugConfig- Returns:
- The value of the
clientAddrsattribute
-
getBindAddr
public java.lang.String getBindAddr()
- Specified by:
getBindAddrin classDebugConfig- Returns:
- The value of the
bindAddrattribute
-
getLeaveOnTerm
public boolean getLeaveOnTerm()
- Specified by:
getLeaveOnTermin classDebugConfig- Returns:
- The value of the
leaveOnTermattribute
-
getSkipLeaveOnInt
public boolean getSkipLeaveOnInt()
- Specified by:
getSkipLeaveOnIntin classDebugConfig- Returns:
- The value of the
skipLeaveOnIntattribute
-
getEnableDebug
public boolean getEnableDebug()
- Specified by:
getEnableDebugin classDebugConfig- Returns:
- The value of the
enableDebugattribute
-
getVerifyIncoming
public boolean getVerifyIncoming()
- Specified by:
getVerifyIncomingin classDebugConfig- Returns:
- The value of the
verifyIncomingattribute
-
getVerifyOutgoing
public boolean getVerifyOutgoing()
- Specified by:
getVerifyOutgoingin classDebugConfig- Returns:
- The value of the
verifyOutgoingattribute
-
getCaFile
public java.lang.String getCaFile()
- Specified by:
getCaFilein classDebugConfig- Returns:
- The value of the
caFileattribute
-
getCertFile
public java.lang.String getCertFile()
- Specified by:
getCertFilein classDebugConfig- Returns:
- The value of the
certFileattribute
-
getKeyFile
public java.lang.String getKeyFile()
- Specified by:
getKeyFilein classDebugConfig- Returns:
- The value of the
keyFileattribute
-
getUiDir
public java.util.Optional<java.lang.String> getUiDir()
- Specified by:
getUiDirin classDebugConfig- Returns:
- The value of the
uiDirattribute
-
getPidFile
public java.lang.String getPidFile()
- Specified by:
getPidFilein classDebugConfig- Returns:
- The value of the
pidFileattribute
-
getEnableSyslog
public boolean getEnableSyslog()
- Specified by:
getEnableSyslogin classDebugConfig- Returns:
- The value of the
enableSyslogattribute
-
getRejoinAfterLeave
public boolean getRejoinAfterLeave()
- Specified by:
getRejoinAfterLeavein classDebugConfig- Returns:
- The value of the
rejoinAfterLeaveattribute
-
getAdvertiseAddrLAN
public java.lang.String getAdvertiseAddrLAN()
- Specified by:
getAdvertiseAddrLANin classDebugConfig- Returns:
- The value of the
advertiseAddrLANattribute
-
getAdvertiseAddrWAN
public java.lang.String getAdvertiseAddrWAN()
- Specified by:
getAdvertiseAddrWANin classDebugConfig- Returns:
- The value of the
advertiseAddrWANattribute
-
withBootstrap
public final ImmutableDebugConfig withBootstrap(boolean value)
Copy the current immutable object by setting a value for thebootstrapattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bootstrap- Returns:
- A modified copy of the
thisobject
-
withDatacenter
public final ImmutableDebugConfig withDatacenter(java.lang.String value)
Copy the current immutable object by setting a value for thedatacenterattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for datacenter- Returns:
- A modified copy of the
thisobject
-
withDataDir
public final ImmutableDebugConfig withDataDir(java.lang.String value)
Copy the current immutable object by setting a value for thedataDirattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dataDir- Returns:
- A modified copy of the
thisobject
-
withDnsRecursors
public final ImmutableDebugConfig withDnsRecursors(java.lang.String... elements)
Copy the current immutable object with elements that replace the content ofdnsRecursors.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDnsRecursors
public final ImmutableDebugConfig withDnsRecursors(java.lang.Iterable<java.lang.String> elements)
Copy the current immutable object with elements that replace the content ofdnsRecursors. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of dnsRecursors elements to set- Returns:
- A modified copy of
thisobject
-
withDnsDomain
public final ImmutableDebugConfig withDnsDomain(java.lang.String value)
Copy the current immutable object by setting a value for thednsDomainattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dnsDomain- Returns:
- A modified copy of the
thisobject
-
withLogLevel
public final ImmutableDebugConfig withLogLevel(java.lang.String value)
Copy the current immutable object by setting a value for thelogLevelattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for logLevel- Returns:
- A modified copy of the
thisobject
-
withNodeName
public final ImmutableDebugConfig withNodeName(java.lang.String value)
Copy the current immutable object by setting a value for thenodeNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for nodeName- Returns:
- A modified copy of the
thisobject
-
withClientAddrs
public final ImmutableDebugConfig withClientAddrs(java.lang.String... elements)
Copy the current immutable object with elements that replace the content ofclientAddrs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withClientAddrs
public final ImmutableDebugConfig withClientAddrs(java.lang.Iterable<java.lang.String> elements)
Copy the current immutable object with elements that replace the content ofclientAddrs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of clientAddrs elements to set- Returns:
- A modified copy of
thisobject
-
withBindAddr
public final ImmutableDebugConfig withBindAddr(java.lang.String value)
Copy the current immutable object by setting a value for thebindAddrattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bindAddr- Returns:
- A modified copy of the
thisobject
-
withLeaveOnTerm
public final ImmutableDebugConfig withLeaveOnTerm(boolean value)
Copy the current immutable object by setting a value for theleaveOnTermattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for leaveOnTerm- Returns:
- A modified copy of the
thisobject
-
withSkipLeaveOnInt
public final ImmutableDebugConfig withSkipLeaveOnInt(boolean value)
Copy the current immutable object by setting a value for theskipLeaveOnIntattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for skipLeaveOnInt- Returns:
- A modified copy of the
thisobject
-
withEnableDebug
public final ImmutableDebugConfig withEnableDebug(boolean value)
Copy the current immutable object by setting a value for theenableDebugattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for enableDebug- Returns:
- A modified copy of the
thisobject
-
withVerifyIncoming
public final ImmutableDebugConfig withVerifyIncoming(boolean value)
Copy the current immutable object by setting a value for theverifyIncomingattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for verifyIncoming- Returns:
- A modified copy of the
thisobject
-
withVerifyOutgoing
public final ImmutableDebugConfig withVerifyOutgoing(boolean value)
Copy the current immutable object by setting a value for theverifyOutgoingattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for verifyOutgoing- Returns:
- A modified copy of the
thisobject
-
withCaFile
public final ImmutableDebugConfig withCaFile(java.lang.String value)
Copy the current immutable object by setting a value for thecaFileattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for caFile- Returns:
- A modified copy of the
thisobject
-
withCertFile
public final ImmutableDebugConfig withCertFile(java.lang.String value)
Copy the current immutable object by setting a value for thecertFileattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for certFile- Returns:
- A modified copy of the
thisobject
-
withKeyFile
public final ImmutableDebugConfig withKeyFile(java.lang.String value)
Copy the current immutable object by setting a value for thekeyFileattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for keyFile- Returns:
- A modified copy of the
thisobject
-
withUiDir
public final ImmutableDebugConfig withUiDir(java.lang.String value)
Copy the current immutable object by setting a present value for the optionaluiDirattribute.- Parameters:
value- The value for uiDir- Returns:
- A modified copy of
thisobject
-
withUiDir
public final ImmutableDebugConfig withUiDir(java.util.Optional<java.lang.String> optional)
Copy the current immutable object by setting an optional value for theuiDirattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for uiDir- Returns:
- A modified copy of
thisobject
-
withPidFile
public final ImmutableDebugConfig withPidFile(java.lang.String value)
Copy the current immutable object by setting a value for thepidFileattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for pidFile- Returns:
- A modified copy of the
thisobject
-
withEnableSyslog
public final ImmutableDebugConfig withEnableSyslog(boolean value)
Copy the current immutable object by setting a value for theenableSyslogattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for enableSyslog- Returns:
- A modified copy of the
thisobject
-
withRejoinAfterLeave
public final ImmutableDebugConfig withRejoinAfterLeave(boolean value)
Copy the current immutable object by setting a value for therejoinAfterLeaveattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for rejoinAfterLeave- Returns:
- A modified copy of the
thisobject
-
withAdvertiseAddrLAN
public final ImmutableDebugConfig withAdvertiseAddrLAN(java.lang.String value)
Copy the current immutable object by setting a value for theadvertiseAddrLANattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for advertiseAddrLAN- Returns:
- A modified copy of the
thisobject
-
withAdvertiseAddrWAN
public final ImmutableDebugConfig withAdvertiseAddrWAN(java.lang.String value)
Copy the current immutable object by setting a value for theadvertiseAddrWANattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for advertiseAddrWAN- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableDebugConfigthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:bootstrap,datacenter,dataDir,dnsRecursors,dnsDomain,logLevel,nodeName,clientAddrs,bindAddr,leaveOnTerm,skipLeaveOnInt,enableDebug,verifyIncoming,verifyOutgoing,caFile,certFile,keyFile,uiDir,pidFile,enableSyslog,rejoinAfterLeave,advertiseAddrLAN,advertiseAddrWAN.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueDebugConfigwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static ImmutableDebugConfig copyOf(DebugConfig instance)
Creates an immutable copy of aDebugConfigvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable DebugConfig instance
-
builder
public static ImmutableDebugConfig.Builder builder()
Creates a builder forImmutableDebugConfig.ImmutableDebugConfig.builder() .bootstrap(boolean) // requiredbootstrap.datacenter(String) // requireddatacenter.dataDir(String) // requireddataDir.addDnsRecursors|addAllDnsRecursors(String) //dnsRecursorselements .dnsDomain(String) // requireddnsDomain.logLevel(String) // requiredlogLevel.nodeName(String) // requirednodeName.addClientAddrs|addAllClientAddrs(String) //clientAddrselements .bindAddr(String) // requiredbindAddr.leaveOnTerm(boolean) // requiredleaveOnTerm.skipLeaveOnInt(boolean) // requiredskipLeaveOnInt.enableDebug(boolean) // requiredenableDebug.verifyIncoming(boolean) // requiredverifyIncoming.verifyOutgoing(boolean) // requiredverifyOutgoing.caFile(String) // requiredcaFile.certFile(String) // requiredcertFile.keyFile(String) // requiredkeyFile.uiDir(String) // optionaluiDir.pidFile(String) // requiredpidFile.enableSyslog(boolean) // requiredenableSyslog.rejoinAfterLeave(boolean) // requiredrejoinAfterLeave.advertiseAddrLAN(String) // requiredadvertiseAddrLAN.advertiseAddrWAN(String) // requiredadvertiseAddrWAN.build();- Returns:
- A new ImmutableDebugConfig builder
-
-