Class ImmutableRegCheck
java.lang.Object
org.kiwiproject.consul.model.agent.Registration.RegCheck
org.kiwiproject.consul.model.agent.ImmutableRegCheck
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableRegCheck
extends Registration.RegCheck
Immutable implementation of
Registration.RegCheck.
Use the builder to create immutable instances:
ImmutableRegCheck.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableRegCheck.Builderbuilder()Creates a builder forImmutableRegCheck.static ImmutableRegCheckcopyOf(Registration.RegCheck instance) Creates an immutable copy of aRegistration.RegCheckvalue.booleanThis instance is equal to all instances ofImmutableRegCheckthat have equal attribute values.getArgs()getGrpc()getHttp()getId()getName()getNotes()getTcp()getTtl()inthashCode()Computes a hash code from attributes:id,name,args,interval,ttl,http,tcp,grpc,grpcUseTls,timeout,notes,deregisterCriticalServiceAfter,tlsSkipVerify,status,successBeforePassing,failuresBeforeCritical.toString()Prints the immutable valueRegCheckwith attribute values.final ImmutableRegCheckCopy the current immutable object by setting a present value for the optionalargsattribute.final ImmutableRegCheckCopy the current immutable object by setting an optional value for theargsattribute.final ImmutableRegCheckCopy the current immutable object by setting a present value for the optionalderegisterCriticalServiceAfterattribute.final ImmutableRegCheckwithDeregisterCriticalServiceAfter(Optional<String> optional) Copy the current immutable object by setting an optional value for thederegisterCriticalServiceAfterattribute.final ImmutableRegCheckwithFailuresBeforeCritical(int value) Copy the current immutable object by setting a present value for the optionalfailuresBeforeCriticalattribute.final ImmutableRegCheckwithFailuresBeforeCritical(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thefailuresBeforeCriticalattribute.final ImmutableRegCheckCopy the current immutable object by setting a present value for the optionalgrpcattribute.final ImmutableRegCheckCopy the current immutable object by setting an optional value for thegrpcattribute.final ImmutableRegCheckwithGrpcUseTls(boolean value) Copy the current immutable object by setting a present value for the optionalgrpcUseTlsattribute.final ImmutableRegCheckwithGrpcUseTls(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thegrpcUseTlsattribute.final ImmutableRegCheckCopy the current immutable object by setting a present value for the optionalhttpattribute.final ImmutableRegCheckCopy the current immutable object by setting an optional value for thehttpattribute.final ImmutableRegCheckCopy the current immutable object by setting a present value for the optionalidattribute.final ImmutableRegCheckCopy the current immutable object by setting an optional value for theidattribute.final ImmutableRegCheckwithInterval(String value) Copy the current immutable object by setting a present value for the optionalintervalattribute.final ImmutableRegCheckwithInterval(Optional<String> optional) Copy the current immutable object by setting an optional value for theintervalattribute.final ImmutableRegCheckCopy the current immutable object by setting a present value for the optionalnameattribute.final ImmutableRegCheckCopy the current immutable object by setting an optional value for thenameattribute.final ImmutableRegCheckCopy the current immutable object by setting a present value for the optionalnotesattribute.final ImmutableRegCheckCopy the current immutable object by setting an optional value for thenotesattribute.final ImmutableRegCheckwithStatus(String value) Copy the current immutable object by setting a present value for the optionalstatusattribute.final ImmutableRegCheckwithStatus(Optional<String> optional) Copy the current immutable object by setting an optional value for thestatusattribute.final ImmutableRegCheckwithSuccessBeforePassing(int value) Copy the current immutable object by setting a present value for the optionalsuccessBeforePassingattribute.final ImmutableRegCheckwithSuccessBeforePassing(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thesuccessBeforePassingattribute.final ImmutableRegCheckCopy the current immutable object by setting a present value for the optionaltcpattribute.final ImmutableRegCheckCopy the current immutable object by setting an optional value for thetcpattribute.final ImmutableRegCheckwithTimeout(String value) Copy the current immutable object by setting a present value for the optionaltimeoutattribute.final ImmutableRegCheckwithTimeout(Optional<String> optional) Copy the current immutable object by setting an optional value for thetimeoutattribute.final ImmutableRegCheckwithTlsSkipVerify(boolean value) Copy the current immutable object by setting a present value for the optionaltlsSkipVerifyattribute.final ImmutableRegCheckwithTlsSkipVerify(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thetlsSkipVerifyattribute.final ImmutableRegCheckCopy the current immutable object by setting a present value for the optionalttlattribute.final ImmutableRegCheckCopy the current immutable object by setting an optional value for thettlattribute.
-
Method Details
-
getId
- Specified by:
getIdin classRegistration.RegCheck- Returns:
- The value of the
idattribute
-
getName
- Specified by:
getNamein classRegistration.RegCheck- Returns:
- The value of the
nameattribute
-
getArgs
- Specified by:
getArgsin classRegistration.RegCheck- Returns:
- The value of the
argsattribute
-
getInterval
- Specified by:
getIntervalin classRegistration.RegCheck- Returns:
- The value of the
intervalattribute
-
getTtl
- Specified by:
getTtlin classRegistration.RegCheck- Returns:
- The value of the
ttlattribute
-
getHttp
- Specified by:
getHttpin classRegistration.RegCheck- Returns:
- The value of the
httpattribute
-
getTcp
- Specified by:
getTcpin classRegistration.RegCheck- Returns:
- The value of the
tcpattribute
-
getGrpc
- Specified by:
getGrpcin classRegistration.RegCheck- Returns:
- The value of the
grpcattribute
-
getGrpcUseTls
- Specified by:
getGrpcUseTlsin classRegistration.RegCheck- Returns:
- The value of the
grpcUseTlsattribute
-
getTimeout
- Specified by:
getTimeoutin classRegistration.RegCheck- Returns:
- The value of the
timeoutattribute
-
getNotes
- Specified by:
getNotesin classRegistration.RegCheck- Returns:
- The value of the
notesattribute
-
getDeregisterCriticalServiceAfter
- Specified by:
getDeregisterCriticalServiceAfterin classRegistration.RegCheck- Returns:
- The value of the
deregisterCriticalServiceAfterattribute
-
getTlsSkipVerify
- Specified by:
getTlsSkipVerifyin classRegistration.RegCheck- Returns:
- The value of the
tlsSkipVerifyattribute
-
getStatus
- Specified by:
getStatusin classRegistration.RegCheck- Returns:
- The value of the
statusattribute
-
getSuccessBeforePassing
- Specified by:
getSuccessBeforePassingin classRegistration.RegCheck- Returns:
- The value of the
successBeforePassingattribute
-
getFailuresBeforeCritical
- Specified by:
getFailuresBeforeCriticalin classRegistration.RegCheck- Returns:
- The value of the
failuresBeforeCriticalattribute
-
withId
Copy the current immutable object by setting a present value for the optionalidattribute.- Parameters:
value- The value for id- Returns:
- A modified copy of
thisobject
-
withId
Copy the current immutable object by setting an optional value for theidattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for id- Returns:
- A modified copy of
thisobject
-
withName
Copy the current immutable object by setting a present value for the optionalnameattribute.- Parameters:
value- The value for name- Returns:
- A modified copy of
thisobject
-
withName
Copy the current immutable object by setting an optional value for thenameattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for name- Returns:
- A modified copy of
thisobject
-
withArgs
Copy the current immutable object by setting a present value for the optionalargsattribute.- Parameters:
value- The value for args- Returns:
- A modified copy of
thisobject
-
withArgs
Copy the current immutable object by setting an optional value for theargsattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for args- Returns:
- A modified copy of
thisobject
-
withInterval
Copy the current immutable object by setting a present value for the optionalintervalattribute.- Parameters:
value- The value for interval- Returns:
- A modified copy of
thisobject
-
withInterval
Copy the current immutable object by setting an optional value for theintervalattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for interval- Returns:
- A modified copy of
thisobject
-
withTtl
Copy the current immutable object by setting a present value for the optionalttlattribute.- Parameters:
value- The value for ttl- Returns:
- A modified copy of
thisobject
-
withTtl
Copy the current immutable object by setting an optional value for thettlattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for ttl- Returns:
- A modified copy of
thisobject
-
withHttp
Copy the current immutable object by setting a present value for the optionalhttpattribute.- Parameters:
value- The value for http- Returns:
- A modified copy of
thisobject
-
withHttp
Copy the current immutable object by setting an optional value for thehttpattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for http- Returns:
- A modified copy of
thisobject
-
withTcp
Copy the current immutable object by setting a present value for the optionaltcpattribute.- Parameters:
value- The value for tcp- Returns:
- A modified copy of
thisobject
-
withTcp
Copy the current immutable object by setting an optional value for thetcpattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for tcp- Returns:
- A modified copy of
thisobject
-
withGrpc
Copy the current immutable object by setting a present value for the optionalgrpcattribute.- Parameters:
value- The value for grpc- Returns:
- A modified copy of
thisobject
-
withGrpc
Copy the current immutable object by setting an optional value for thegrpcattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for grpc- Returns:
- A modified copy of
thisobject
-
withGrpcUseTls
Copy the current immutable object by setting a present value for the optionalgrpcUseTlsattribute.- Parameters:
value- The value for grpcUseTls- Returns:
- A modified copy of
thisobject
-
withGrpcUseTls
Copy the current immutable object by setting an optional value for thegrpcUseTlsattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for grpcUseTls- Returns:
- A modified copy of
thisobject
-
withTimeout
Copy the current immutable object by setting a present value for the optionaltimeoutattribute.- Parameters:
value- The value for timeout- Returns:
- A modified copy of
thisobject
-
withTimeout
Copy the current immutable object by setting an optional value for thetimeoutattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for timeout- Returns:
- A modified copy of
thisobject
-
withNotes
Copy the current immutable object by setting a present value for the optionalnotesattribute.- Parameters:
value- The value for notes- Returns:
- A modified copy of
thisobject
-
withNotes
Copy the current immutable object by setting an optional value for thenotesattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for notes- Returns:
- A modified copy of
thisobject
-
withDeregisterCriticalServiceAfter
Copy the current immutable object by setting a present value for the optionalderegisterCriticalServiceAfterattribute.- Parameters:
value- The value for deregisterCriticalServiceAfter- Returns:
- A modified copy of
thisobject
-
withDeregisterCriticalServiceAfter
Copy the current immutable object by setting an optional value for thederegisterCriticalServiceAfterattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for deregisterCriticalServiceAfter- Returns:
- A modified copy of
thisobject
-
withTlsSkipVerify
Copy the current immutable object by setting a present value for the optionaltlsSkipVerifyattribute.- Parameters:
value- The value for tlsSkipVerify- Returns:
- A modified copy of
thisobject
-
withTlsSkipVerify
Copy the current immutable object by setting an optional value for thetlsSkipVerifyattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for tlsSkipVerify- Returns:
- A modified copy of
thisobject
-
withStatus
Copy the current immutable object by setting a present value for the optionalstatusattribute.- Parameters:
value- The value for status- Returns:
- A modified copy of
thisobject
-
withStatus
Copy the current immutable object by setting an optional value for thestatusattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for status- Returns:
- A modified copy of
thisobject
-
withSuccessBeforePassing
Copy the current immutable object by setting a present value for the optionalsuccessBeforePassingattribute.- Parameters:
value- The value for successBeforePassing- Returns:
- A modified copy of
thisobject
-
withSuccessBeforePassing
Copy the current immutable object by setting an optional value for thesuccessBeforePassingattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for successBeforePassing- Returns:
- A modified copy of
thisobject
-
withFailuresBeforeCritical
Copy the current immutable object by setting a present value for the optionalfailuresBeforeCriticalattribute.- Parameters:
value- The value for failuresBeforeCritical- Returns:
- A modified copy of
thisobject
-
withFailuresBeforeCritical
Copy the current immutable object by setting an optional value for thefailuresBeforeCriticalattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for failuresBeforeCritical- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableRegCheckthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,name,args,interval,ttl,http,tcp,grpc,grpcUseTls,timeout,notes,deregisterCriticalServiceAfter,tlsSkipVerify,status,successBeforePassing,failuresBeforeCritical. -
toString
Prints the immutable valueRegCheckwith attribute values. -
copyOf
Creates an immutable copy of aRegistration.RegCheckvalue. 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
-
builder
Creates a builder forImmutableRegCheck.ImmutableRegCheck.builder() .id(String) // optionalid.name(String) // optionalname.args(List<String>) // optionalargs.interval(String) // optionalinterval.ttl(String) // optionalttl.http(String) // optionalhttp.tcp(String) // optionaltcp.grpc(String) // optionalgrpc.grpcUseTls(Boolean) // optionalgrpcUseTls.timeout(String) // optionaltimeout.notes(String) // optionalnotes.deregisterCriticalServiceAfter(String) // optionalderegisterCriticalServiceAfter.tlsSkipVerify(Boolean) // optionaltlsSkipVerify.status(String) // optionalstatus.successBeforePassing(Integer) // optionalsuccessBeforePassing.failuresBeforeCritical(Integer) // optionalfailuresBeforeCritical.build();- Returns:
- A new ImmutableRegCheck builder
-