Class ImmutableDebugConfig


  • @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    @CheckReturnValue
    public final class ImmutableDebugConfig
    extends DebugConfig
    Immutable implementation of DebugConfig.

    Use the builder to create immutable instances: ImmutableDebugConfig.builder().

    • Method Detail

      • getBootstrap

        public boolean getBootstrap()
        Specified by:
        getBootstrap in class DebugConfig
        Returns:
        The value of the bootstrap attribute
      • getDatacenter

        public java.lang.String getDatacenter()
        Specified by:
        getDatacenter in class DebugConfig
        Returns:
        The value of the datacenter attribute
      • getDataDir

        public java.lang.String getDataDir()
        Specified by:
        getDataDir in class DebugConfig
        Returns:
        The value of the dataDir attribute
      • dnsRecursors

        public com.google.common.collect.ImmutableList<java.lang.String> dnsRecursors()
        Specified by:
        dnsRecursors in class DebugConfig
        Returns:
        The value of the dnsRecursors attribute
      • getDnsDomain

        public java.lang.String getDnsDomain()
        Specified by:
        getDnsDomain in class DebugConfig
        Returns:
        The value of the dnsDomain attribute
      • getLogLevel

        public java.lang.String getLogLevel()
        Specified by:
        getLogLevel in class DebugConfig
        Returns:
        The value of the logLevel attribute
      • getNodeName

        public java.lang.String getNodeName()
        Specified by:
        getNodeName in class DebugConfig
        Returns:
        The value of the nodeName attribute
      • getClientAddrs

        public com.google.common.collect.ImmutableList<java.lang.String> getClientAddrs()
        Specified by:
        getClientAddrs in class DebugConfig
        Returns:
        The value of the clientAddrs attribute
      • getBindAddr

        public java.lang.String getBindAddr()
        Specified by:
        getBindAddr in class DebugConfig
        Returns:
        The value of the bindAddr attribute
      • getLeaveOnTerm

        public boolean getLeaveOnTerm()
        Specified by:
        getLeaveOnTerm in class DebugConfig
        Returns:
        The value of the leaveOnTerm attribute
      • getSkipLeaveOnInt

        public boolean getSkipLeaveOnInt()
        Specified by:
        getSkipLeaveOnInt in class DebugConfig
        Returns:
        The value of the skipLeaveOnInt attribute
      • getEnableDebug

        public boolean getEnableDebug()
        Specified by:
        getEnableDebug in class DebugConfig
        Returns:
        The value of the enableDebug attribute
      • getVerifyIncoming

        public boolean getVerifyIncoming()
        Specified by:
        getVerifyIncoming in class DebugConfig
        Returns:
        The value of the verifyIncoming attribute
      • getVerifyOutgoing

        public boolean getVerifyOutgoing()
        Specified by:
        getVerifyOutgoing in class DebugConfig
        Returns:
        The value of the verifyOutgoing attribute
      • getCaFile

        public java.lang.String getCaFile()
        Specified by:
        getCaFile in class DebugConfig
        Returns:
        The value of the caFile attribute
      • getCertFile

        public java.lang.String getCertFile()
        Specified by:
        getCertFile in class DebugConfig
        Returns:
        The value of the certFile attribute
      • getKeyFile

        public java.lang.String getKeyFile()
        Specified by:
        getKeyFile in class DebugConfig
        Returns:
        The value of the keyFile attribute
      • getUiDir

        public java.util.Optional<java.lang.String> getUiDir()
        Specified by:
        getUiDir in class DebugConfig
        Returns:
        The value of the uiDir attribute
      • getPidFile

        public java.lang.String getPidFile()
        Specified by:
        getPidFile in class DebugConfig
        Returns:
        The value of the pidFile attribute
      • getEnableSyslog

        public boolean getEnableSyslog()
        Specified by:
        getEnableSyslog in class DebugConfig
        Returns:
        The value of the enableSyslog attribute
      • getRejoinAfterLeave

        public boolean getRejoinAfterLeave()
        Specified by:
        getRejoinAfterLeave in class DebugConfig
        Returns:
        The value of the rejoinAfterLeave attribute
      • getAdvertiseAddrLAN

        public java.lang.String getAdvertiseAddrLAN()
        Specified by:
        getAdvertiseAddrLAN in class DebugConfig
        Returns:
        The value of the advertiseAddrLAN attribute
      • getAdvertiseAddrWAN

        public java.lang.String getAdvertiseAddrWAN()
        Specified by:
        getAdvertiseAddrWAN in class DebugConfig
        Returns:
        The value of the advertiseAddrWAN attribute
      • withBootstrap

        public final ImmutableDebugConfig withBootstrap​(boolean value)
        Copy the current immutable object by setting a value for the bootstrap attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for bootstrap
        Returns:
        A modified copy of the this object
      • withDatacenter

        public final ImmutableDebugConfig withDatacenter​(java.lang.String value)
        Copy the current immutable object by setting a value for the datacenter attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for datacenter
        Returns:
        A modified copy of the this object
      • withDataDir

        public final ImmutableDebugConfig withDataDir​(java.lang.String value)
        Copy the current immutable object by setting a value for the dataDir attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for dataDir
        Returns:
        A modified copy of the this object
      • withDnsRecursors

        public final ImmutableDebugConfig withDnsRecursors​(java.lang.String... elements)
        Copy the current immutable object with elements that replace the content of dnsRecursors.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withDnsRecursors

        public final ImmutableDebugConfig withDnsRecursors​(java.lang.Iterable<java.lang.String> elements)
        Copy the current immutable object with elements that replace the content of dnsRecursors. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of dnsRecursors elements to set
        Returns:
        A modified copy of this object
      • withDnsDomain

        public final ImmutableDebugConfig withDnsDomain​(java.lang.String value)
        Copy the current immutable object by setting a value for the dnsDomain attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for dnsDomain
        Returns:
        A modified copy of the this object
      • withLogLevel

        public final ImmutableDebugConfig withLogLevel​(java.lang.String value)
        Copy the current immutable object by setting a value for the logLevel attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for logLevel
        Returns:
        A modified copy of the this object
      • withNodeName

        public final ImmutableDebugConfig withNodeName​(java.lang.String value)
        Copy the current immutable object by setting a value for the nodeName attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for nodeName
        Returns:
        A modified copy of the this object
      • withClientAddrs

        public final ImmutableDebugConfig withClientAddrs​(java.lang.String... elements)
        Copy the current immutable object with elements that replace the content of clientAddrs.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withClientAddrs

        public final ImmutableDebugConfig withClientAddrs​(java.lang.Iterable<java.lang.String> elements)
        Copy the current immutable object with elements that replace the content of clientAddrs. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of clientAddrs elements to set
        Returns:
        A modified copy of this object
      • withBindAddr

        public final ImmutableDebugConfig withBindAddr​(java.lang.String value)
        Copy the current immutable object by setting a value for the bindAddr attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for bindAddr
        Returns:
        A modified copy of the this object
      • withLeaveOnTerm

        public final ImmutableDebugConfig withLeaveOnTerm​(boolean value)
        Copy the current immutable object by setting a value for the leaveOnTerm attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for leaveOnTerm
        Returns:
        A modified copy of the this object
      • withSkipLeaveOnInt

        public final ImmutableDebugConfig withSkipLeaveOnInt​(boolean value)
        Copy the current immutable object by setting a value for the skipLeaveOnInt attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for skipLeaveOnInt
        Returns:
        A modified copy of the this object
      • withEnableDebug

        public final ImmutableDebugConfig withEnableDebug​(boolean value)
        Copy the current immutable object by setting a value for the enableDebug attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for enableDebug
        Returns:
        A modified copy of the this object
      • withVerifyIncoming

        public final ImmutableDebugConfig withVerifyIncoming​(boolean value)
        Copy the current immutable object by setting a value for the verifyIncoming attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for verifyIncoming
        Returns:
        A modified copy of the this object
      • withVerifyOutgoing

        public final ImmutableDebugConfig withVerifyOutgoing​(boolean value)
        Copy the current immutable object by setting a value for the verifyOutgoing attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for verifyOutgoing
        Returns:
        A modified copy of the this object
      • withCaFile

        public final ImmutableDebugConfig withCaFile​(java.lang.String value)
        Copy the current immutable object by setting a value for the caFile attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for caFile
        Returns:
        A modified copy of the this object
      • withCertFile

        public final ImmutableDebugConfig withCertFile​(java.lang.String value)
        Copy the current immutable object by setting a value for the certFile attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for certFile
        Returns:
        A modified copy of the this object
      • withKeyFile

        public final ImmutableDebugConfig withKeyFile​(java.lang.String value)
        Copy the current immutable object by setting a value for the keyFile attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for keyFile
        Returns:
        A modified copy of the this object
      • withUiDir

        public final ImmutableDebugConfig withUiDir​(java.lang.String value)
        Copy the current immutable object by setting a present value for the optional uiDir attribute.
        Parameters:
        value - The value for uiDir
        Returns:
        A modified copy of this object
      • withUiDir

        public final ImmutableDebugConfig withUiDir​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the uiDir attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for uiDir
        Returns:
        A modified copy of this object
      • withPidFile

        public final ImmutableDebugConfig withPidFile​(java.lang.String value)
        Copy the current immutable object by setting a value for the pidFile attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for pidFile
        Returns:
        A modified copy of the this object
      • withEnableSyslog

        public final ImmutableDebugConfig withEnableSyslog​(boolean value)
        Copy the current immutable object by setting a value for the enableSyslog attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for enableSyslog
        Returns:
        A modified copy of the this object
      • withRejoinAfterLeave

        public final ImmutableDebugConfig withRejoinAfterLeave​(boolean value)
        Copy the current immutable object by setting a value for the rejoinAfterLeave attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for rejoinAfterLeave
        Returns:
        A modified copy of the this object
      • withAdvertiseAddrLAN

        public final ImmutableDebugConfig withAdvertiseAddrLAN​(java.lang.String value)
        Copy the current immutable object by setting a value for the advertiseAddrLAN attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for advertiseAddrLAN
        Returns:
        A modified copy of the this object
      • withAdvertiseAddrWAN

        public final ImmutableDebugConfig withAdvertiseAddrWAN​(java.lang.String value)
        Copy the current immutable object by setting a value for the advertiseAddrWAN attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for advertiseAddrWAN
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object another)
        This instance is equal to all instances of ImmutableDebugConfig that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • 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:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value DebugConfig with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableDebugConfig copyOf​(DebugConfig instance)
        Creates an immutable copy of a DebugConfig value. 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