@NotThreadSafe public static final class ImmutableRegCheck.Builder extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
ImmutableRegCheck.Builder |
args(List<String> args)
Initializes the optional value
args to args. |
ImmutableRegCheck.Builder |
args(Optional<? extends List<String>> args)
Initializes the optional value
args to args. |
ImmutableRegCheck |
build()
Builds a new
ImmutableRegCheck. |
ImmutableRegCheck.Builder |
deregisterCriticalServiceAfter(Optional<String> deregisterCriticalServiceAfter)
Initializes the optional value
deregisterCriticalServiceAfter to deregisterCriticalServiceAfter. |
ImmutableRegCheck.Builder |
deregisterCriticalServiceAfter(String deregisterCriticalServiceAfter)
Initializes the optional value
deregisterCriticalServiceAfter to deregisterCriticalServiceAfter. |
ImmutableRegCheck.Builder |
from(Registration.RegCheck instance)
Fill a builder with attribute values from the provided
RegCheck instance. |
ImmutableRegCheck.Builder |
grpc(Optional<String> grpc)
Initializes the optional value
grpc to grpc. |
ImmutableRegCheck.Builder |
grpc(String grpc)
Initializes the optional value
grpc to grpc. |
ImmutableRegCheck.Builder |
grpcUseTls(boolean grpcUseTls)
Initializes the optional value
grpcUseTls to grpcUseTls. |
ImmutableRegCheck.Builder |
grpcUseTls(Optional<Boolean> grpcUseTls)
Initializes the optional value
grpcUseTls to grpcUseTls. |
ImmutableRegCheck.Builder |
http(Optional<String> http)
Initializes the optional value
http to http. |
ImmutableRegCheck.Builder |
http(String http)
Initializes the optional value
http to http. |
ImmutableRegCheck.Builder |
interval(Optional<String> interval)
Initializes the optional value
interval to interval. |
ImmutableRegCheck.Builder |
interval(String interval)
Initializes the optional value
interval to interval. |
ImmutableRegCheck.Builder |
notes(Optional<String> notes)
Initializes the optional value
notes to notes. |
ImmutableRegCheck.Builder |
notes(String notes)
Initializes the optional value
notes to notes. |
ImmutableRegCheck.Builder |
status(Optional<String> status)
Initializes the optional value
status to status. |
ImmutableRegCheck.Builder |
status(String status)
Initializes the optional value
status to status. |
ImmutableRegCheck.Builder |
tcp(Optional<String> tcp)
Initializes the optional value
tcp to tcp. |
ImmutableRegCheck.Builder |
tcp(String tcp)
Initializes the optional value
tcp to tcp. |
ImmutableRegCheck.Builder |
timeout(Optional<String> timeout)
Initializes the optional value
timeout to timeout. |
ImmutableRegCheck.Builder |
timeout(String timeout)
Initializes the optional value
timeout to timeout. |
ImmutableRegCheck.Builder |
tlsSkipVerify(boolean tlsSkipVerify)
Initializes the optional value
tlsSkipVerify to tlsSkipVerify. |
ImmutableRegCheck.Builder |
tlsSkipVerify(Optional<Boolean> tlsSkipVerify)
Initializes the optional value
tlsSkipVerify to tlsSkipVerify. |
ImmutableRegCheck.Builder |
ttl(Optional<String> ttl)
Initializes the optional value
ttl to ttl. |
ImmutableRegCheck.Builder |
ttl(String ttl)
Initializes the optional value
ttl to ttl. |
@CanIgnoreReturnValue public final ImmutableRegCheck.Builder from(Registration.RegCheck instance)
RegCheck instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder args(List<String> args)
args to args.args - The value for argsthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder args(Optional<? extends List<String>> args)
args to args.args - The value for argsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder interval(String interval)
interval to interval.interval - The value for intervalthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder interval(Optional<String> interval)
interval to interval.interval - The value for intervalthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder ttl(String ttl)
ttl to ttl.ttl - The value for ttlthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder ttl(Optional<String> ttl)
ttl to ttl.ttl - The value for ttlthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder http(String http)
http to http.http - The value for httpthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder http(Optional<String> http)
http to http.http - The value for httpthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder tcp(String tcp)
tcp to tcp.tcp - The value for tcpthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder tcp(Optional<String> tcp)
tcp to tcp.tcp - The value for tcpthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder grpc(String grpc)
grpc to grpc.grpc - The value for grpcthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder grpc(Optional<String> grpc)
grpc to grpc.grpc - The value for grpcthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder grpcUseTls(boolean grpcUseTls)
grpcUseTls to grpcUseTls.grpcUseTls - The value for grpcUseTlsthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder grpcUseTls(Optional<Boolean> grpcUseTls)
grpcUseTls to grpcUseTls.grpcUseTls - The value for grpcUseTlsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder timeout(String timeout)
timeout to timeout.timeout - The value for timeoutthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder timeout(Optional<String> timeout)
timeout to timeout.timeout - The value for timeoutthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder notes(String notes)
notes to notes.notes - The value for notesthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder notes(Optional<String> notes)
notes to notes.notes - The value for notesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder deregisterCriticalServiceAfter(String deregisterCriticalServiceAfter)
deregisterCriticalServiceAfter to deregisterCriticalServiceAfter.deregisterCriticalServiceAfter - The value for deregisterCriticalServiceAfterthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder deregisterCriticalServiceAfter(Optional<String> deregisterCriticalServiceAfter)
deregisterCriticalServiceAfter to deregisterCriticalServiceAfter.deregisterCriticalServiceAfter - The value for deregisterCriticalServiceAfterthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder tlsSkipVerify(boolean tlsSkipVerify)
tlsSkipVerify to tlsSkipVerify.tlsSkipVerify - The value for tlsSkipVerifythis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder tlsSkipVerify(Optional<Boolean> tlsSkipVerify)
tlsSkipVerify to tlsSkipVerify.tlsSkipVerify - The value for tlsSkipVerifythis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder status(String status)
status to status.status - The value for statusthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableRegCheck.Builder status(Optional<String> status)
status to status.status - The value for statusthis builder for use in a chained invocationpublic ImmutableRegCheck build()
ImmutableRegCheck.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.