@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCheck extends Check
Check.
Use the builder to create immutable instances:
ImmutableCheck.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCheck.Builder
Builds instances of type
ImmutableCheck. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCheck.Builder |
builder()
Creates a builder for
ImmutableCheck. |
static ImmutableCheck |
copyOf(Check instance)
Creates an immutable copy of a
Check value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCheck that have equal attribute values. |
Optional<List<String>> |
getArgs() |
Optional<String> |
getDeregisterCriticalServiceAfter() |
Optional<String> |
getGrpc() |
Optional<Boolean> |
getGrpcUseTls() |
Optional<String> |
getHttp() |
String |
getId() |
Optional<String> |
getInterval() |
String |
getName() |
Optional<String> |
getNotes() |
Optional<String> |
getOutput() |
Optional<String> |
getServiceId() |
com.google.common.collect.ImmutableList<String> |
getServiceTags() |
Optional<String> |
getTcp() |
Optional<String> |
getTtl() |
int |
hashCode()
Computes a hash code from attributes:
id, name, notes, output, args, interval, ttl, http, tcp, grpc, grpcUseTls, serviceId, serviceTags, deregisterCriticalServiceAfter. |
String |
toString()
Prints the immutable value
Check with attribute values. |
ImmutableCheck |
withArgs(List<String> value)
Copy the current immutable object by setting a present value for the optional
args attribute. |
ImmutableCheck |
withArgs(Optional<? extends List<String>> optional)
Copy the current immutable object by setting an optional value for the
args attribute. |
ImmutableCheck |
withDeregisterCriticalServiceAfter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
deregisterCriticalServiceAfter attribute. |
ImmutableCheck |
withDeregisterCriticalServiceAfter(String value)
Copy the current immutable object by setting a present value for the optional
deregisterCriticalServiceAfter attribute. |
ImmutableCheck |
withGrpc(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
grpc attribute. |
ImmutableCheck |
withGrpc(String value)
Copy the current immutable object by setting a present value for the optional
grpc attribute. |
ImmutableCheck |
withGrpcUseTls(boolean value)
Copy the current immutable object by setting a present value for the optional
grpcUseTls attribute. |
ImmutableCheck |
withGrpcUseTls(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
grpcUseTls attribute. |
ImmutableCheck |
withHttp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
http attribute. |
ImmutableCheck |
withHttp(String value)
Copy the current immutable object by setting a present value for the optional
http attribute. |
ImmutableCheck |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableCheck |
withInterval(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
interval attribute. |
ImmutableCheck |
withInterval(String value)
Copy the current immutable object by setting a present value for the optional
interval attribute. |
ImmutableCheck |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableCheck |
withNotes(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
notes attribute. |
ImmutableCheck |
withNotes(String value)
Copy the current immutable object by setting a present value for the optional
notes attribute. |
ImmutableCheck |
withOutput(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
output attribute. |
ImmutableCheck |
withOutput(String value)
Copy the current immutable object by setting a present value for the optional
output attribute. |
ImmutableCheck |
withServiceId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
serviceId attribute. |
ImmutableCheck |
withServiceId(String value)
Copy the current immutable object by setting a present value for the optional
serviceId attribute. |
ImmutableCheck |
withServiceTags(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
serviceTags. |
ImmutableCheck |
withServiceTags(String... elements)
Copy the current immutable object with elements that replace the content of
serviceTags. |
ImmutableCheck |
withTcp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
tcp attribute. |
ImmutableCheck |
withTcp(String value)
Copy the current immutable object by setting a present value for the optional
tcp attribute. |
ImmutableCheck |
withTtl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
ttl attribute. |
ImmutableCheck |
withTtl(String value)
Copy the current immutable object by setting a present value for the optional
ttl attribute. |
public String getId()
public String getName()
public Optional<String> getInterval()
getInterval in class Checkinterval attributepublic Optional<Boolean> getGrpcUseTls()
getGrpcUseTls in class CheckgrpcUseTls attributepublic Optional<String> getServiceId()
getServiceId in class CheckserviceId attributepublic com.google.common.collect.ImmutableList<String> getServiceTags()
getServiceTags in class CheckserviceTags attributepublic Optional<String> getDeregisterCriticalServiceAfter()
getDeregisterCriticalServiceAfter in class CheckderegisterCriticalServiceAfter attributepublic final ImmutableCheck withId(String value)
id attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for idthis objectpublic final ImmutableCheck withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableCheck withNotes(String value)
notes attribute.value - The value for notesthis objectpublic final ImmutableCheck 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 ImmutableCheck withOutput(String value)
output attribute.value - The value for outputthis objectpublic final ImmutableCheck withOutput(Optional<String> optional)
output attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for outputthis objectpublic final ImmutableCheck withArgs(List<String> value)
args attribute.value - The value for argsthis objectpublic final ImmutableCheck 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 ImmutableCheck withInterval(String value)
interval attribute.value - The value for intervalthis objectpublic final ImmutableCheck 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 ImmutableCheck withTtl(String value)
ttl attribute.value - The value for ttlthis objectpublic final ImmutableCheck 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 ImmutableCheck withHttp(String value)
http attribute.value - The value for httpthis objectpublic final ImmutableCheck 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 ImmutableCheck withTcp(String value)
tcp attribute.value - The value for tcpthis objectpublic final ImmutableCheck 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 ImmutableCheck withGrpc(String value)
grpc attribute.value - The value for grpcthis objectpublic final ImmutableCheck 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 ImmutableCheck withGrpcUseTls(boolean value)
grpcUseTls attribute.value - The value for grpcUseTlsthis objectpublic final ImmutableCheck 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 ImmutableCheck withServiceId(String value)
serviceId attribute.value - The value for serviceIdthis objectpublic final ImmutableCheck withServiceId(Optional<String> optional)
serviceId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for serviceIdthis objectpublic final ImmutableCheck withServiceTags(String... elements)
serviceTags.elements - The elements to setthis objectpublic final ImmutableCheck withServiceTags(Iterable<String> elements)
serviceTags.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of serviceTags elements to setthis objectpublic final ImmutableCheck withDeregisterCriticalServiceAfter(String value)
deregisterCriticalServiceAfter attribute.value - The value for deregisterCriticalServiceAfterthis objectpublic final ImmutableCheck 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 boolean equals(@Nullable Object another)
ImmutableCheck that have equal attribute values.public int hashCode()
id, name, notes, output, args, interval, ttl, http, tcp, grpc, grpcUseTls, serviceId, serviceTags, deregisterCriticalServiceAfter.public String toString()
Check with attribute values.public static ImmutableCheck copyOf(Check instance)
Check 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 ImmutableCheck.Builder builder()
ImmutableCheck.
ImmutableCheck.builder()
.id(String) // required id
.name(String) // required name
.notes(String) // optional notes
.output(String) // optional output
.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
.serviceId(String) // optional serviceId
.addServiceTags|addAllServiceTags(String) // serviceTags elements
.deregisterCriticalServiceAfter(String) // optional deregisterCriticalServiceAfter
.build();
Copyright © 2019. All rights reserved.