Class ImmutableRegCheck
java.lang.Object
org.kiwiproject.consul.model.agent.Registration.RegCheck
org.kiwiproject.consul.model.agent.ImmutableRegCheck
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
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.Builder
builder()
Creates a builder forImmutableRegCheck
.static ImmutableRegCheck
copyOf
(Registration.RegCheck instance) Creates an immutable copy of aRegistration.RegCheck
value.boolean
This instance is equal to all instances ofImmutableRegCheck
that have equal attribute values.getArgs()
getGrpc()
getHttp()
getId()
getName()
getNotes()
getTcp()
getTtl()
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 valueRegCheck
with attribute values.final ImmutableRegCheck
Copy the current immutable object by setting a present value for the optionalargs
attribute.final ImmutableRegCheck
Copy the current immutable object by setting an optional value for theargs
attribute.final ImmutableRegCheck
Copy the current immutable object by setting a present value for the optionalderegisterCriticalServiceAfter
attribute.final ImmutableRegCheck
withDeregisterCriticalServiceAfter
(Optional<String> optional) Copy the current immutable object by setting an optional value for thederegisterCriticalServiceAfter
attribute.final ImmutableRegCheck
withFailuresBeforeCritical
(int value) Copy the current immutable object by setting a present value for the optionalfailuresBeforeCritical
attribute.final ImmutableRegCheck
withFailuresBeforeCritical
(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thefailuresBeforeCritical
attribute.final ImmutableRegCheck
Copy the current immutable object by setting a present value for the optionalgrpc
attribute.final ImmutableRegCheck
Copy the current immutable object by setting an optional value for thegrpc
attribute.final ImmutableRegCheck
withGrpcUseTls
(boolean value) Copy the current immutable object by setting a present value for the optionalgrpcUseTls
attribute.final ImmutableRegCheck
withGrpcUseTls
(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thegrpcUseTls
attribute.final ImmutableRegCheck
Copy the current immutable object by setting a present value for the optionalhttp
attribute.final ImmutableRegCheck
Copy the current immutable object by setting an optional value for thehttp
attribute.final ImmutableRegCheck
Copy the current immutable object by setting a present value for the optionalid
attribute.final ImmutableRegCheck
Copy the current immutable object by setting an optional value for theid
attribute.final ImmutableRegCheck
withInterval
(String value) Copy the current immutable object by setting a present value for the optionalinterval
attribute.final ImmutableRegCheck
withInterval
(Optional<String> optional) Copy the current immutable object by setting an optional value for theinterval
attribute.final ImmutableRegCheck
Copy the current immutable object by setting a present value for the optionalname
attribute.final ImmutableRegCheck
Copy the current immutable object by setting an optional value for thename
attribute.final ImmutableRegCheck
Copy the current immutable object by setting a present value for the optionalnotes
attribute.final ImmutableRegCheck
Copy the current immutable object by setting an optional value for thenotes
attribute.final ImmutableRegCheck
withStatus
(String value) Copy the current immutable object by setting a present value for the optionalstatus
attribute.final ImmutableRegCheck
withStatus
(Optional<String> optional) Copy the current immutable object by setting an optional value for thestatus
attribute.final ImmutableRegCheck
withSuccessBeforePassing
(int value) Copy the current immutable object by setting a present value for the optionalsuccessBeforePassing
attribute.final ImmutableRegCheck
withSuccessBeforePassing
(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thesuccessBeforePassing
attribute.final ImmutableRegCheck
Copy the current immutable object by setting a present value for the optionaltcp
attribute.final ImmutableRegCheck
Copy the current immutable object by setting an optional value for thetcp
attribute.final ImmutableRegCheck
withTimeout
(String value) Copy the current immutable object by setting a present value for the optionaltimeout
attribute.final ImmutableRegCheck
withTimeout
(Optional<String> optional) Copy the current immutable object by setting an optional value for thetimeout
attribute.final ImmutableRegCheck
withTlsSkipVerify
(boolean value) Copy the current immutable object by setting a present value for the optionaltlsSkipVerify
attribute.final ImmutableRegCheck
withTlsSkipVerify
(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thetlsSkipVerify
attribute.final ImmutableRegCheck
Copy the current immutable object by setting a present value for the optionalttl
attribute.final ImmutableRegCheck
Copy the current immutable object by setting an optional value for thettl
attribute.
-
Method Details
-
getId
- Specified by:
getId
in classRegistration.RegCheck
- Returns:
- The value of the
id
attribute
-
getName
- Specified by:
getName
in classRegistration.RegCheck
- Returns:
- The value of the
name
attribute
-
getArgs
- Specified by:
getArgs
in classRegistration.RegCheck
- Returns:
- The value of the
args
attribute
-
getInterval
- Specified by:
getInterval
in classRegistration.RegCheck
- Returns:
- The value of the
interval
attribute
-
getTtl
- Specified by:
getTtl
in classRegistration.RegCheck
- Returns:
- The value of the
ttl
attribute
-
getHttp
- Specified by:
getHttp
in classRegistration.RegCheck
- Returns:
- The value of the
http
attribute
-
getTcp
- Specified by:
getTcp
in classRegistration.RegCheck
- Returns:
- The value of the
tcp
attribute
-
getGrpc
- Specified by:
getGrpc
in classRegistration.RegCheck
- Returns:
- The value of the
grpc
attribute
-
getGrpcUseTls
- Specified by:
getGrpcUseTls
in classRegistration.RegCheck
- Returns:
- The value of the
grpcUseTls
attribute
-
getTimeout
- Specified by:
getTimeout
in classRegistration.RegCheck
- Returns:
- The value of the
timeout
attribute
-
getNotes
- Specified by:
getNotes
in classRegistration.RegCheck
- Returns:
- The value of the
notes
attribute
-
getDeregisterCriticalServiceAfter
- Specified by:
getDeregisterCriticalServiceAfter
in classRegistration.RegCheck
- Returns:
- The value of the
deregisterCriticalServiceAfter
attribute
-
getTlsSkipVerify
- Specified by:
getTlsSkipVerify
in classRegistration.RegCheck
- Returns:
- The value of the
tlsSkipVerify
attribute
-
getStatus
- Specified by:
getStatus
in classRegistration.RegCheck
- Returns:
- The value of the
status
attribute
-
getSuccessBeforePassing
- Specified by:
getSuccessBeforePassing
in classRegistration.RegCheck
- Returns:
- The value of the
successBeforePassing
attribute
-
getFailuresBeforeCritical
- Specified by:
getFailuresBeforeCritical
in classRegistration.RegCheck
- Returns:
- The value of the
failuresBeforeCritical
attribute
-
withId
Copy the current immutable object by setting a present value for the optionalid
attribute.- Parameters:
value
- The value for id- Returns:
- A modified copy of
this
object
-
withId
Copy the current immutable object by setting an optional value for theid
attribute. 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
this
object
-
withName
Copy the current immutable object by setting a present value for the optionalname
attribute.- Parameters:
value
- The value for name- Returns:
- A modified copy of
this
object
-
withName
Copy the current immutable object by setting an optional value for thename
attribute. 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
this
object
-
withArgs
Copy the current immutable object by setting a present value for the optionalargs
attribute.- Parameters:
value
- The value for args- Returns:
- A modified copy of
this
object
-
withArgs
Copy the current immutable object by setting an optional value for theargs
attribute. 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
this
object
-
withInterval
Copy the current immutable object by setting a present value for the optionalinterval
attribute.- Parameters:
value
- The value for interval- Returns:
- A modified copy of
this
object
-
withInterval
Copy the current immutable object by setting an optional value for theinterval
attribute. 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
this
object
-
withTtl
Copy the current immutable object by setting a present value for the optionalttl
attribute.- Parameters:
value
- The value for ttl- Returns:
- A modified copy of
this
object
-
withTtl
Copy the current immutable object by setting an optional value for thettl
attribute. 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
this
object
-
withHttp
Copy the current immutable object by setting a present value for the optionalhttp
attribute.- Parameters:
value
- The value for http- Returns:
- A modified copy of
this
object
-
withHttp
Copy the current immutable object by setting an optional value for thehttp
attribute. 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
this
object
-
withTcp
Copy the current immutable object by setting a present value for the optionaltcp
attribute.- Parameters:
value
- The value for tcp- Returns:
- A modified copy of
this
object
-
withTcp
Copy the current immutable object by setting an optional value for thetcp
attribute. 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
this
object
-
withGrpc
Copy the current immutable object by setting a present value for the optionalgrpc
attribute.- Parameters:
value
- The value for grpc- Returns:
- A modified copy of
this
object
-
withGrpc
Copy the current immutable object by setting an optional value for thegrpc
attribute. 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
this
object
-
withGrpcUseTls
Copy the current immutable object by setting a present value for the optionalgrpcUseTls
attribute.- Parameters:
value
- The value for grpcUseTls- Returns:
- A modified copy of
this
object
-
withGrpcUseTls
Copy the current immutable object by setting an optional value for thegrpcUseTls
attribute. 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
this
object
-
withTimeout
Copy the current immutable object by setting a present value for the optionaltimeout
attribute.- Parameters:
value
- The value for timeout- Returns:
- A modified copy of
this
object
-
withTimeout
Copy the current immutable object by setting an optional value for thetimeout
attribute. 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
this
object
-
withNotes
Copy the current immutable object by setting a present value for the optionalnotes
attribute.- Parameters:
value
- The value for notes- Returns:
- A modified copy of
this
object
-
withNotes
Copy the current immutable object by setting an optional value for thenotes
attribute. 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
this
object
-
withDeregisterCriticalServiceAfter
Copy the current immutable object by setting a present value for the optionalderegisterCriticalServiceAfter
attribute.- Parameters:
value
- The value for deregisterCriticalServiceAfter- Returns:
- A modified copy of
this
object
-
withDeregisterCriticalServiceAfter
Copy the current immutable object by setting an optional value for thederegisterCriticalServiceAfter
attribute. 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
this
object
-
withTlsSkipVerify
Copy the current immutable object by setting a present value for the optionaltlsSkipVerify
attribute.- Parameters:
value
- The value for tlsSkipVerify- Returns:
- A modified copy of
this
object
-
withTlsSkipVerify
Copy the current immutable object by setting an optional value for thetlsSkipVerify
attribute. 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
this
object
-
withStatus
Copy the current immutable object by setting a present value for the optionalstatus
attribute.- Parameters:
value
- The value for status- Returns:
- A modified copy of
this
object
-
withStatus
Copy the current immutable object by setting an optional value for thestatus
attribute. 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
this
object
-
withSuccessBeforePassing
Copy the current immutable object by setting a present value for the optionalsuccessBeforePassing
attribute.- Parameters:
value
- The value for successBeforePassing- Returns:
- A modified copy of
this
object
-
withSuccessBeforePassing
Copy the current immutable object by setting an optional value for thesuccessBeforePassing
attribute. 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
this
object
-
withFailuresBeforeCritical
Copy the current immutable object by setting a present value for the optionalfailuresBeforeCritical
attribute.- Parameters:
value
- The value for failuresBeforeCritical- Returns:
- A modified copy of
this
object
-
withFailuresBeforeCritical
Copy the current immutable object by setting an optional value for thefailuresBeforeCritical
attribute. 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
this
object
-
equals
This instance is equal to all instances ofImmutableRegCheck
that 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 valueRegCheck
with attribute values. -
copyOf
Creates an immutable copy of aRegistration.RegCheck
value. 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) // optional
id
.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
-