@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRegCheck extends Registration.RegCheck
Registration.RegCheck.
Use the builder to create immutable instances:
ImmutableRegCheck.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableRegCheck.Builder
Builds instances of type
ImmutableRegCheck. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableRegCheck.Builder |
builder()
Creates a builder for
ImmutableRegCheck. |
static ImmutableRegCheck |
copyOf(Registration.RegCheck instance)
Creates an immutable copy of a
Registration.RegCheck value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRegCheck that have equal attribute values. |
Optional<List<String>> |
getArgs() |
Optional<String> |
getDeregisterCriticalServiceAfter() |
Optional<String> |
getGrpc() |
Optional<Boolean> |
getGrpcUseTls() |
Optional<String> |
getHttp() |
Optional<String> |
getInterval() |
Optional<String> |
getNotes() |
Optional<String> |
getStatus() |
Optional<String> |
getTcp() |
Optional<String> |
getTimeout() |
Optional<Boolean> |
getTlsSkipVerify() |
Optional<String> |
getTtl() |
int |
hashCode()
Computes a hash code from attributes:
args, interval, ttl, http, tcp, grpc, grpcUseTls, timeout, notes, deregisterCriticalServiceAfter, tlsSkipVerify, status. |
String |
toString()
Prints the immutable value
RegCheck with attribute values. |
ImmutableRegCheck |
withArgs(List<String> value)
Copy the current immutable object by setting a present value for the optional
args attribute. |
ImmutableRegCheck |
withArgs(Optional<? extends List<String>> optional)
Copy the current immutable object by setting an optional value for the
args attribute. |
ImmutableRegCheck |
withDeregisterCriticalServiceAfter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
deregisterCriticalServiceAfter attribute. |
ImmutableRegCheck |
withDeregisterCriticalServiceAfter(String value)
Copy the current immutable object by setting a present value for the optional
deregisterCriticalServiceAfter attribute. |
ImmutableRegCheck |
withGrpc(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
grpc attribute. |
ImmutableRegCheck |
withGrpc(String value)
Copy the current immutable object by setting a present value for the optional
grpc attribute. |
ImmutableRegCheck |
withGrpcUseTls(boolean value)
Copy the current immutable object by setting a present value for the optional
grpcUseTls attribute. |
ImmutableRegCheck |
withGrpcUseTls(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
grpcUseTls attribute. |
ImmutableRegCheck |
withHttp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
http attribute. |
ImmutableRegCheck |
withHttp(String value)
Copy the current immutable object by setting a present value for the optional
http attribute. |
ImmutableRegCheck |
withInterval(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
interval attribute. |
ImmutableRegCheck |
withInterval(String value)
Copy the current immutable object by setting a present value for the optional
interval attribute. |
ImmutableRegCheck |
withNotes(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
notes attribute. |
ImmutableRegCheck |
withNotes(String value)
Copy the current immutable object by setting a present value for the optional
notes attribute. |
ImmutableRegCheck |
withStatus(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
status attribute. |
ImmutableRegCheck |
withStatus(String value)
Copy the current immutable object by setting a present value for the optional
status attribute. |
ImmutableRegCheck |
withTcp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
tcp attribute. |
ImmutableRegCheck |
withTcp(String value)
Copy the current immutable object by setting a present value for the optional
tcp attribute. |
ImmutableRegCheck |
withTimeout(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
timeout attribute. |
ImmutableRegCheck |
withTimeout(String value)
Copy the current immutable object by setting a present value for the optional
timeout attribute. |
ImmutableRegCheck |
withTlsSkipVerify(boolean value)
Copy the current immutable object by setting a present value for the optional
tlsSkipVerify attribute. |
ImmutableRegCheck |
withTlsSkipVerify(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
tlsSkipVerify attribute. |
ImmutableRegCheck |
withTtl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
ttl attribute. |
ImmutableRegCheck |
withTtl(String value)
Copy the current immutable object by setting a present value for the optional
ttl attribute. |
public Optional<List<String>> getArgs()
getArgs in class Registration.RegCheckargs attributepublic Optional<String> getInterval()
getInterval in class Registration.RegCheckinterval attributepublic Optional<String> getTtl()
getTtl in class Registration.RegCheckttl attributepublic Optional<String> getHttp()
getHttp in class Registration.RegCheckhttp attributepublic Optional<String> getTcp()
getTcp in class Registration.RegChecktcp attributepublic Optional<String> getGrpc()
getGrpc in class Registration.RegCheckgrpc attributepublic Optional<Boolean> getGrpcUseTls()
getGrpcUseTls in class Registration.RegCheckgrpcUseTls attributepublic Optional<String> getTimeout()
getTimeout in class Registration.RegChecktimeout attributepublic Optional<String> getNotes()
getNotes in class Registration.RegChecknotes attributepublic Optional<String> getDeregisterCriticalServiceAfter()
getDeregisterCriticalServiceAfter in class Registration.RegCheckderegisterCriticalServiceAfter attributepublic Optional<Boolean> getTlsSkipVerify()
getTlsSkipVerify in class Registration.RegChecktlsSkipVerify attributepublic Optional<String> getStatus()
getStatus in class Registration.RegCheckstatus attributepublic final ImmutableRegCheck withArgs(List<String> value)
args attribute.value - The value for argsthis objectpublic final ImmutableRegCheck withArgs(Optional<? extends List<String>> optional)
args attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for argsthis objectpublic final ImmutableRegCheck withInterval(String value)
interval attribute.value - The value for intervalthis objectpublic final ImmutableRegCheck withInterval(Optional<String> optional)
interval attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for intervalthis objectpublic final ImmutableRegCheck withTtl(String value)
ttl attribute.value - The value for ttlthis objectpublic final ImmutableRegCheck withTtl(Optional<String> optional)
ttl attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for ttlthis objectpublic final ImmutableRegCheck withHttp(String value)
http attribute.value - The value for httpthis objectpublic final ImmutableRegCheck withHttp(Optional<String> optional)
http attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for httpthis objectpublic final ImmutableRegCheck withTcp(String value)
tcp attribute.value - The value for tcpthis objectpublic final ImmutableRegCheck withTcp(Optional<String> optional)
tcp attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for tcpthis objectpublic final ImmutableRegCheck withGrpc(String value)
grpc attribute.value - The value for grpcthis objectpublic final ImmutableRegCheck withGrpc(Optional<String> optional)
grpc attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for grpcthis objectpublic final ImmutableRegCheck withGrpcUseTls(boolean value)
grpcUseTls attribute.value - The value for grpcUseTlsthis objectpublic final ImmutableRegCheck withGrpcUseTls(Optional<Boolean> optional)
grpcUseTls attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for grpcUseTlsthis objectpublic final ImmutableRegCheck withTimeout(String value)
timeout attribute.value - The value for timeoutthis objectpublic final ImmutableRegCheck withTimeout(Optional<String> optional)
timeout attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for timeoutthis objectpublic final ImmutableRegCheck withNotes(String value)
notes attribute.value - The value for notesthis objectpublic final ImmutableRegCheck withNotes(Optional<String> optional)
notes attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for notesthis objectpublic final ImmutableRegCheck withDeregisterCriticalServiceAfter(String value)
deregisterCriticalServiceAfter attribute.value - The value for deregisterCriticalServiceAfterthis objectpublic final ImmutableRegCheck withDeregisterCriticalServiceAfter(Optional<String> optional)
deregisterCriticalServiceAfter attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for deregisterCriticalServiceAfterthis objectpublic final ImmutableRegCheck withTlsSkipVerify(boolean value)
tlsSkipVerify attribute.value - The value for tlsSkipVerifythis objectpublic final ImmutableRegCheck withTlsSkipVerify(Optional<Boolean> optional)
tlsSkipVerify attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for tlsSkipVerifythis objectpublic final ImmutableRegCheck withStatus(String value)
status attribute.value - The value for statusthis objectpublic final ImmutableRegCheck withStatus(Optional<String> optional)
status attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for statusthis objectpublic boolean equals(@Nullable Object another)
ImmutableRegCheck that have equal attribute values.public int hashCode()
args, interval, ttl, http, tcp, grpc, grpcUseTls, timeout, notes, deregisterCriticalServiceAfter, tlsSkipVerify, status.public String toString()
RegCheck with attribute values.public static ImmutableRegCheck copyOf(Registration.RegCheck instance)
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.instance - The instance to copypublic static ImmutableRegCheck.Builder builder()
ImmutableRegCheck.
ImmutableRegCheck.builder()
.args(List<String>) // optional args
.interval(String) // optional interval
.ttl(String) // optional ttl
.http(String) // optional http
.tcp(String) // optional tcp
.grpc(String) // optional grpc
.grpcUseTls(Boolean) // optional grpcUseTls
.timeout(String) // optional timeout
.notes(String) // optional notes
.deregisterCriticalServiceAfter(String) // optional deregisterCriticalServiceAfter
.tlsSkipVerify(Boolean) // optional tlsSkipVerify
.status(String) // optional status
.build();
Copyright © 2019. All rights reserved.