Package com.orbitz.consul.model.agent
Class ImmutableRegCheck
- java.lang.Object
-
- com.orbitz.consul.model.agent.Registration.RegCheck
-
- com.orbitz.consul.model.agent.ImmutableRegCheck
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRegCheck extends Registration.RegCheckImmutable implementation ofRegistration.RegCheck.Use the builder to create immutable instances:
ImmutableRegCheck.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRegCheck.BuilderBuilds instances of typeImmutableRegCheck.
-
Method Summary
Modifier and Type Method Description static ImmutableRegCheck.Builderbuilder()Creates a builder forImmutableRegCheck.static ImmutableRegCheckcopyOf(Registration.RegCheck instance)Creates an immutable copy of aRegistration.RegCheckvalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableRegCheckthat have equal attribute values.java.util.Optional<java.util.List<java.lang.String>>getArgs()java.util.Optional<java.lang.String>getDeregisterCriticalServiceAfter()java.util.Optional<java.lang.String>getGrpc()java.util.Optional<java.lang.Boolean>getGrpcUseTls()java.util.Optional<java.lang.String>getHttp()java.util.Optional<java.lang.String>getInterval()java.util.Optional<java.lang.String>getNotes()java.util.Optional<java.lang.String>getStatus()java.util.Optional<java.lang.String>getTcp()java.util.Optional<java.lang.String>getTimeout()java.util.Optional<java.lang.Boolean>getTlsSkipVerify()java.util.Optional<java.lang.String>getTtl()inthashCode()Computes a hash code from attributes:args,interval,ttl,http,tcp,grpc,grpcUseTls,timeout,notes,deregisterCriticalServiceAfter,tlsSkipVerify,status.java.lang.StringtoString()Prints the immutable valueRegCheckwith attribute values.ImmutableRegCheckwithArgs(java.util.List<java.lang.String> value)Copy the current immutable object by setting a present value for the optionalargsattribute.ImmutableRegCheckwithArgs(java.util.Optional<? extends java.util.List<java.lang.String>> optional)Copy the current immutable object by setting an optional value for theargsattribute.ImmutableRegCheckwithDeregisterCriticalServiceAfter(java.lang.String value)Copy the current immutable object by setting a present value for the optionalderegisterCriticalServiceAfterattribute.ImmutableRegCheckwithDeregisterCriticalServiceAfter(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thederegisterCriticalServiceAfterattribute.ImmutableRegCheckwithGrpc(java.lang.String value)Copy the current immutable object by setting a present value for the optionalgrpcattribute.ImmutableRegCheckwithGrpc(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thegrpcattribute.ImmutableRegCheckwithGrpcUseTls(boolean value)Copy the current immutable object by setting a present value for the optionalgrpcUseTlsattribute.ImmutableRegCheckwithGrpcUseTls(java.util.Optional<java.lang.Boolean> optional)Copy the current immutable object by setting an optional value for thegrpcUseTlsattribute.ImmutableRegCheckwithHttp(java.lang.String value)Copy the current immutable object by setting a present value for the optionalhttpattribute.ImmutableRegCheckwithHttp(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thehttpattribute.ImmutableRegCheckwithInterval(java.lang.String value)Copy the current immutable object by setting a present value for the optionalintervalattribute.ImmutableRegCheckwithInterval(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for theintervalattribute.ImmutableRegCheckwithNotes(java.lang.String value)Copy the current immutable object by setting a present value for the optionalnotesattribute.ImmutableRegCheckwithNotes(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thenotesattribute.ImmutableRegCheckwithStatus(java.lang.String value)Copy the current immutable object by setting a present value for the optionalstatusattribute.ImmutableRegCheckwithStatus(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thestatusattribute.ImmutableRegCheckwithTcp(java.lang.String value)Copy the current immutable object by setting a present value for the optionaltcpattribute.ImmutableRegCheckwithTcp(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thetcpattribute.ImmutableRegCheckwithTimeout(java.lang.String value)Copy the current immutable object by setting a present value for the optionaltimeoutattribute.ImmutableRegCheckwithTimeout(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thetimeoutattribute.ImmutableRegCheckwithTlsSkipVerify(boolean value)Copy the current immutable object by setting a present value for the optionaltlsSkipVerifyattribute.ImmutableRegCheckwithTlsSkipVerify(java.util.Optional<java.lang.Boolean> optional)Copy the current immutable object by setting an optional value for thetlsSkipVerifyattribute.ImmutableRegCheckwithTtl(java.lang.String value)Copy the current immutable object by setting a present value for the optionalttlattribute.ImmutableRegCheckwithTtl(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thettlattribute.
-
-
-
Method Detail
-
getArgs
public java.util.Optional<java.util.List<java.lang.String>> getArgs()
- Specified by:
getArgsin classRegistration.RegCheck- Returns:
- The value of the
argsattribute
-
getInterval
public java.util.Optional<java.lang.String> getInterval()
- Specified by:
getIntervalin classRegistration.RegCheck- Returns:
- The value of the
intervalattribute
-
getTtl
public java.util.Optional<java.lang.String> getTtl()
- Specified by:
getTtlin classRegistration.RegCheck- Returns:
- The value of the
ttlattribute
-
getHttp
public java.util.Optional<java.lang.String> getHttp()
- Specified by:
getHttpin classRegistration.RegCheck- Returns:
- The value of the
httpattribute
-
getTcp
public java.util.Optional<java.lang.String> getTcp()
- Specified by:
getTcpin classRegistration.RegCheck- Returns:
- The value of the
tcpattribute
-
getGrpc
public java.util.Optional<java.lang.String> getGrpc()
- Specified by:
getGrpcin classRegistration.RegCheck- Returns:
- The value of the
grpcattribute
-
getGrpcUseTls
public java.util.Optional<java.lang.Boolean> getGrpcUseTls()
- Specified by:
getGrpcUseTlsin classRegistration.RegCheck- Returns:
- The value of the
grpcUseTlsattribute
-
getTimeout
public java.util.Optional<java.lang.String> getTimeout()
- Specified by:
getTimeoutin classRegistration.RegCheck- Returns:
- The value of the
timeoutattribute
-
getNotes
public java.util.Optional<java.lang.String> getNotes()
- Specified by:
getNotesin classRegistration.RegCheck- Returns:
- The value of the
notesattribute
-
getDeregisterCriticalServiceAfter
public java.util.Optional<java.lang.String> getDeregisterCriticalServiceAfter()
- Specified by:
getDeregisterCriticalServiceAfterin classRegistration.RegCheck- Returns:
- The value of the
deregisterCriticalServiceAfterattribute
-
getTlsSkipVerify
public java.util.Optional<java.lang.Boolean> getTlsSkipVerify()
- Specified by:
getTlsSkipVerifyin classRegistration.RegCheck- Returns:
- The value of the
tlsSkipVerifyattribute
-
getStatus
public java.util.Optional<java.lang.String> getStatus()
- Specified by:
getStatusin classRegistration.RegCheck- Returns:
- The value of the
statusattribute
-
withArgs
public final ImmutableRegCheck withArgs(java.util.List<java.lang.String> value)
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
public final ImmutableRegCheck withArgs(java.util.Optional<? extends java.util.List<java.lang.String>> optional)
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
public final ImmutableRegCheck withInterval(java.lang.String value)
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
public final ImmutableRegCheck withInterval(java.util.Optional<java.lang.String> optional)
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
public final ImmutableRegCheck withTtl(java.lang.String value)
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
public final ImmutableRegCheck withTtl(java.util.Optional<java.lang.String> optional)
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
public final ImmutableRegCheck withHttp(java.lang.String value)
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
public final ImmutableRegCheck withHttp(java.util.Optional<java.lang.String> optional)
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
public final ImmutableRegCheck withTcp(java.lang.String value)
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
public final ImmutableRegCheck withTcp(java.util.Optional<java.lang.String> optional)
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
public final ImmutableRegCheck withGrpc(java.lang.String value)
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
public final ImmutableRegCheck withGrpc(java.util.Optional<java.lang.String> optional)
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
public final ImmutableRegCheck withGrpcUseTls(boolean value)
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
public final ImmutableRegCheck withGrpcUseTls(java.util.Optional<java.lang.Boolean> optional)
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
public final ImmutableRegCheck withTimeout(java.lang.String value)
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
public final ImmutableRegCheck withTimeout(java.util.Optional<java.lang.String> optional)
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
public final ImmutableRegCheck withNotes(java.lang.String value)
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
public final ImmutableRegCheck withNotes(java.util.Optional<java.lang.String> optional)
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
public final ImmutableRegCheck withDeregisterCriticalServiceAfter(java.lang.String value)
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
public final ImmutableRegCheck withDeregisterCriticalServiceAfter(java.util.Optional<java.lang.String> optional)
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
public final ImmutableRegCheck withTlsSkipVerify(boolean value)
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
public final ImmutableRegCheck withTlsSkipVerify(java.util.Optional<java.lang.Boolean> optional)
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
public final ImmutableRegCheck withStatus(java.lang.String value)
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
public final ImmutableRegCheck withStatus(java.util.Optional<java.lang.String> optional)
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
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableRegCheckthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:args,interval,ttl,http,tcp,grpc,grpcUseTls,timeout,notes,deregisterCriticalServiceAfter,tlsSkipVerify,status.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueRegCheckwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static ImmutableRegCheck copyOf(Registration.RegCheck instance)
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
public static ImmutableRegCheck.Builder builder()
Creates a builder forImmutableRegCheck.ImmutableRegCheck.builder() .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.build();- Returns:
- A new ImmutableRegCheck builder
-
-