Class ImmutableRegCheck


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

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

    • Method Detail

      • getArgs

        public java.util.Optional<java.util.List<java.lang.String>> getArgs()
        Specified by:
        getArgs in class Registration.RegCheck
        Returns:
        The value of the args attribute
      • getInterval

        public java.util.Optional<java.lang.String> getInterval()
        Specified by:
        getInterval in class Registration.RegCheck
        Returns:
        The value of the interval attribute
      • getTtl

        public java.util.Optional<java.lang.String> getTtl()
        Specified by:
        getTtl in class Registration.RegCheck
        Returns:
        The value of the ttl attribute
      • getHttp

        public java.util.Optional<java.lang.String> getHttp()
        Specified by:
        getHttp in class Registration.RegCheck
        Returns:
        The value of the http attribute
      • getTcp

        public java.util.Optional<java.lang.String> getTcp()
        Specified by:
        getTcp in class Registration.RegCheck
        Returns:
        The value of the tcp attribute
      • getGrpc

        public java.util.Optional<java.lang.String> getGrpc()
        Specified by:
        getGrpc in class Registration.RegCheck
        Returns:
        The value of the grpc attribute
      • getGrpcUseTls

        public java.util.Optional<java.lang.Boolean> getGrpcUseTls()
        Specified by:
        getGrpcUseTls in class Registration.RegCheck
        Returns:
        The value of the grpcUseTls attribute
      • getTimeout

        public java.util.Optional<java.lang.String> getTimeout()
        Specified by:
        getTimeout in class Registration.RegCheck
        Returns:
        The value of the timeout attribute
      • getNotes

        public java.util.Optional<java.lang.String> getNotes()
        Specified by:
        getNotes in class Registration.RegCheck
        Returns:
        The value of the notes attribute
      • getTlsSkipVerify

        public java.util.Optional<java.lang.Boolean> getTlsSkipVerify()
        Specified by:
        getTlsSkipVerify in class Registration.RegCheck
        Returns:
        The value of the tlsSkipVerify attribute
      • getStatus

        public java.util.Optional<java.lang.String> getStatus()
        Specified by:
        getStatus in class Registration.RegCheck
        Returns:
        The value of the status attribute
      • withArgs

        public final ImmutableRegCheck withArgs​(java.util.List<java.lang.String> value)
        Copy the current immutable object by setting a present value for the optional args attribute.
        Parameters:
        value - The value for args
        Returns:
        A modified copy of this object
      • withArgs

        public final ImmutableRegCheck withArgs​(java.util.Optional<? extends java.util.List<java.lang.String>> optional)
        Copy the current immutable object by setting an optional value for the args attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for args
        Returns:
        A modified copy of this object
      • withInterval

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

        public final ImmutableRegCheck withInterval​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the interval 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 interval
        Returns:
        A modified copy of this object
      • withTtl

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

        public final ImmutableRegCheck withTtl​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the ttl 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 ttl
        Returns:
        A modified copy of this object
      • withHttp

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

        public final ImmutableRegCheck withHttp​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the http 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 http
        Returns:
        A modified copy of this object
      • withTcp

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

        public final ImmutableRegCheck withTcp​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the tcp 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 tcp
        Returns:
        A modified copy of this object
      • withGrpc

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

        public final ImmutableRegCheck withGrpc​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the grpc 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 grpc
        Returns:
        A modified copy of this object
      • withGrpcUseTls

        public final ImmutableRegCheck withGrpcUseTls​(boolean value)
        Copy the current immutable object by setting a present value for the optional grpcUseTls attribute.
        Parameters:
        value - The value for grpcUseTls
        Returns:
        A modified copy of this object
      • withGrpcUseTls

        public final ImmutableRegCheck withGrpcUseTls​(java.util.Optional<java.lang.Boolean> optional)
        Copy the current immutable object by setting an optional value for the grpcUseTls 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 grpcUseTls
        Returns:
        A modified copy of this object
      • withTimeout

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

        public final ImmutableRegCheck withTimeout​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the timeout 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 timeout
        Returns:
        A modified copy of this object
      • withNotes

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

        public final ImmutableRegCheck withNotes​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the notes 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 notes
        Returns:
        A modified copy of this object
      • withDeregisterCriticalServiceAfter

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

        public final ImmutableRegCheck withDeregisterCriticalServiceAfter​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the deregisterCriticalServiceAfter 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 deregisterCriticalServiceAfter
        Returns:
        A modified copy of this object
      • withTlsSkipVerify

        public final ImmutableRegCheck withTlsSkipVerify​(boolean value)
        Copy the current immutable object by setting a present value for the optional tlsSkipVerify attribute.
        Parameters:
        value - The value for tlsSkipVerify
        Returns:
        A modified copy of this object
      • withTlsSkipVerify

        public final ImmutableRegCheck withTlsSkipVerify​(java.util.Optional<java.lang.Boolean> optional)
        Copy the current immutable object by setting an optional value for the tlsSkipVerify 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 tlsSkipVerify
        Returns:
        A modified copy of this object
      • withStatus

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

        public final ImmutableRegCheck withStatus​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the status 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 status
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object another)
        This instance is equal to all instances of ImmutableRegCheck 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: args, interval, ttl, http, tcp, grpc, grpcUseTls, timeout, notes, deregisterCriticalServiceAfter, tlsSkipVerify, status.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableRegCheck copyOf​(Registration.RegCheck instance)
        Creates an immutable copy of a Registration.RegCheck 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 RegCheck instance