Class ImmutableRegCheck.Builder

  • Enclosing class:
    ImmutableRegCheck

    @NotThreadSafe
    public static final class ImmutableRegCheck.Builder
    extends java.lang.Object
    Builds instances of type ImmutableRegCheck. 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.

    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder from​(Registration.RegCheck instance)
        Fill a builder with attribute values from the provided RegCheck instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • args

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder args​(java.util.List<java.lang.String> args)
        Initializes the optional value args to args.
        Parameters:
        args - The value for args
        Returns:
        this builder for chained invocation
      • args

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder args​(java.util.Optional<? extends java.util.List<java.lang.String>> args)
        Initializes the optional value args to args.
        Parameters:
        args - The value for args
        Returns:
        this builder for use in a chained invocation
      • interval

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder interval​(java.lang.String interval)
        Initializes the optional value interval to interval.
        Parameters:
        interval - The value for interval
        Returns:
        this builder for chained invocation
      • interval

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder interval​(java.util.Optional<java.lang.String> interval)
        Initializes the optional value interval to interval.
        Parameters:
        interval - The value for interval
        Returns:
        this builder for use in a chained invocation
      • ttl

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder ttl​(java.lang.String ttl)
        Initializes the optional value ttl to ttl.
        Parameters:
        ttl - The value for ttl
        Returns:
        this builder for chained invocation
      • ttl

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder ttl​(java.util.Optional<java.lang.String> ttl)
        Initializes the optional value ttl to ttl.
        Parameters:
        ttl - The value for ttl
        Returns:
        this builder for use in a chained invocation
      • http

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder http​(java.lang.String http)
        Initializes the optional value http to http.
        Parameters:
        http - The value for http
        Returns:
        this builder for chained invocation
      • http

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder http​(java.util.Optional<java.lang.String> http)
        Initializes the optional value http to http.
        Parameters:
        http - The value for http
        Returns:
        this builder for use in a chained invocation
      • tcp

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder tcp​(java.lang.String tcp)
        Initializes the optional value tcp to tcp.
        Parameters:
        tcp - The value for tcp
        Returns:
        this builder for chained invocation
      • tcp

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder tcp​(java.util.Optional<java.lang.String> tcp)
        Initializes the optional value tcp to tcp.
        Parameters:
        tcp - The value for tcp
        Returns:
        this builder for use in a chained invocation
      • grpc

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder grpc​(java.lang.String grpc)
        Initializes the optional value grpc to grpc.
        Parameters:
        grpc - The value for grpc
        Returns:
        this builder for chained invocation
      • grpc

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder grpc​(java.util.Optional<java.lang.String> grpc)
        Initializes the optional value grpc to grpc.
        Parameters:
        grpc - The value for grpc
        Returns:
        this builder for use in a chained invocation
      • grpcUseTls

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder grpcUseTls​(boolean grpcUseTls)
        Initializes the optional value grpcUseTls to grpcUseTls.
        Parameters:
        grpcUseTls - The value for grpcUseTls
        Returns:
        this builder for chained invocation
      • grpcUseTls

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder grpcUseTls​(java.util.Optional<java.lang.Boolean> grpcUseTls)
        Initializes the optional value grpcUseTls to grpcUseTls.
        Parameters:
        grpcUseTls - The value for grpcUseTls
        Returns:
        this builder for use in a chained invocation
      • timeout

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder timeout​(java.lang.String timeout)
        Initializes the optional value timeout to timeout.
        Parameters:
        timeout - The value for timeout
        Returns:
        this builder for chained invocation
      • timeout

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder timeout​(java.util.Optional<java.lang.String> timeout)
        Initializes the optional value timeout to timeout.
        Parameters:
        timeout - The value for timeout
        Returns:
        this builder for use in a chained invocation
      • notes

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder notes​(java.lang.String notes)
        Initializes the optional value notes to notes.
        Parameters:
        notes - The value for notes
        Returns:
        this builder for chained invocation
      • notes

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder notes​(java.util.Optional<java.lang.String> notes)
        Initializes the optional value notes to notes.
        Parameters:
        notes - The value for notes
        Returns:
        this builder for use in a chained invocation
      • deregisterCriticalServiceAfter

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder deregisterCriticalServiceAfter​(java.lang.String deregisterCriticalServiceAfter)
        Initializes the optional value deregisterCriticalServiceAfter to deregisterCriticalServiceAfter.
        Parameters:
        deregisterCriticalServiceAfter - The value for deregisterCriticalServiceAfter
        Returns:
        this builder for chained invocation
      • deregisterCriticalServiceAfter

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder deregisterCriticalServiceAfter​(java.util.Optional<java.lang.String> deregisterCriticalServiceAfter)
        Initializes the optional value deregisterCriticalServiceAfter to deregisterCriticalServiceAfter.
        Parameters:
        deregisterCriticalServiceAfter - The value for deregisterCriticalServiceAfter
        Returns:
        this builder for use in a chained invocation
      • tlsSkipVerify

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder tlsSkipVerify​(boolean tlsSkipVerify)
        Initializes the optional value tlsSkipVerify to tlsSkipVerify.
        Parameters:
        tlsSkipVerify - The value for tlsSkipVerify
        Returns:
        this builder for chained invocation
      • tlsSkipVerify

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder tlsSkipVerify​(java.util.Optional<java.lang.Boolean> tlsSkipVerify)
        Initializes the optional value tlsSkipVerify to tlsSkipVerify.
        Parameters:
        tlsSkipVerify - The value for tlsSkipVerify
        Returns:
        this builder for use in a chained invocation
      • status

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder status​(java.lang.String status)
        Initializes the optional value status to status.
        Parameters:
        status - The value for status
        Returns:
        this builder for chained invocation
      • status

        @CanIgnoreReturnValue
        public final ImmutableRegCheck.Builder status​(java.util.Optional<java.lang.String> status)
        Initializes the optional value status to status.
        Parameters:
        status - The value for status
        Returns:
        this builder for use in a chained invocation
      • build

        public ImmutableRegCheck build()
        Builds a new ImmutableRegCheck.
        Returns:
        An immutable instance of RegCheck
        Throws:
        java.lang.IllegalStateException - if any required attributes are missing