@Generated(value={"Immutables.generator","Registration.RegCheck"}) 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. |
com.google.common.base.Optional<String> |
getHttp() |
com.google.common.base.Optional<String> |
getInterval() |
com.google.common.base.Optional<String> |
getScript() |
com.google.common.base.Optional<String> |
getTcp() |
com.google.common.base.Optional<String> |
getTtl() |
int |
hashCode()
Computes a hash code from attributes:
script, interval, ttl, http, tcp. |
String |
toString()
Prints the immutable value
RegCheck with attribute values. |
ImmutableRegCheck |
withHttp(com.google.common.base.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(com.google.common.base.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 |
withScript(com.google.common.base.Optional<String> optional)
Copy the current immutable object by setting an optional value for the
script attribute. |
ImmutableRegCheck |
withScript(String value)
Copy the current immutable object by setting a present value for the optional
script attribute. |
ImmutableRegCheck |
withTcp(com.google.common.base.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 |
withTtl(com.google.common.base.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 com.google.common.base.Optional<String> getScript()
getScript in class Registration.RegCheckscript attributepublic com.google.common.base.Optional<String> getInterval()
getInterval in class Registration.RegCheckinterval attributepublic com.google.common.base.Optional<String> getTtl()
getTtl in class Registration.RegCheckttl attributepublic com.google.common.base.Optional<String> getHttp()
getHttp in class Registration.RegCheckhttp attributepublic com.google.common.base.Optional<String> getTcp()
getTcp in class Registration.RegChecktcp attributepublic final ImmutableRegCheck withScript(String value)
script attribute.value - The value for scriptthis objectpublic final ImmutableRegCheck withScript(com.google.common.base.Optional<String> optional)
script attribute.
An equality check is used to prevent copying of the same value by returning this.optional - A value for scriptthis objectpublic final ImmutableRegCheck withInterval(String value)
interval attribute.value - The value for intervalthis objectpublic final ImmutableRegCheck withInterval(com.google.common.base.Optional<String> optional)
interval attribute.
An equality check is used 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(com.google.common.base.Optional<String> optional)
ttl attribute.
An equality check is used 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(com.google.common.base.Optional<String> optional)
http attribute.
An equality check is used 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(com.google.common.base.Optional<String> optional)
tcp attribute.
An equality check is used to prevent copying of the same value by returning this.optional - A value for tcpthis objectpublic boolean equals(Object another)
ImmutableRegCheck that have equal attribute values.public int hashCode()
script, interval, ttl, http, tcp.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.Copyright © 2016. All rights reserved.