@Generated(value={"Immutables.generator","Check"}) 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. |
com.google.common.base.Optional<String> |
getHttp() |
String |
getId() |
com.google.common.base.Optional<String> |
getInterval() |
String |
getName() |
com.google.common.base.Optional<String> |
getNotes() |
com.google.common.base.Optional<String> |
getOutput() |
com.google.common.base.Optional<String> |
getScript() |
com.google.common.base.Optional<String> |
getServiceId() |
com.google.common.base.Optional<String> |
getTcp() |
com.google.common.base.Optional<String> |
getTtl() |
int |
hashCode()
Computes a hash code from attributes:
id, name, notes, output, script, interval, ttl, http, tcp, serviceId. |
String |
toString()
Prints the immutable value
Check with attribute values. |
ImmutableCheck |
withHttp(com.google.common.base.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(com.google.common.base.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(com.google.common.base.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(com.google.common.base.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 |
withScript(com.google.common.base.Optional<String> optional)
Copy the current immutable object by setting an optional value for the
script attribute. |
ImmutableCheck |
withScript(String value)
Copy the current immutable object by setting a present value for the optional
script attribute. |
ImmutableCheck |
withServiceId(com.google.common.base.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 |
withTcp(com.google.common.base.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(com.google.common.base.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 com.google.common.base.Optional<String> getNotes()
public com.google.common.base.Optional<String> getOutput()
public com.google.common.base.Optional<String> getScript()
public com.google.common.base.Optional<String> getInterval()
getInterval in class Checkinterval attributepublic com.google.common.base.Optional<String> getTtl()
public com.google.common.base.Optional<String> getHttp()
public com.google.common.base.Optional<String> getTcp()
public com.google.common.base.Optional<String> getServiceId()
getServiceId in class CheckserviceId 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(com.google.common.base.Optional<String> optional)
notes attribute.
An equality check is used 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(com.google.common.base.Optional<String> optional)
output attribute.
An equality check is used to prevent copying of the same value by returning this.optional - A value for outputthis objectpublic final ImmutableCheck withScript(String value)
script attribute.value - The value for scriptthis objectpublic final ImmutableCheck 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 ImmutableCheck withInterval(String value)
interval attribute.value - The value for intervalthis objectpublic final ImmutableCheck 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 ImmutableCheck withTtl(String value)
ttl attribute.value - The value for ttlthis objectpublic final ImmutableCheck 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 ImmutableCheck withHttp(String value)
http attribute.value - The value for httpthis objectpublic final ImmutableCheck 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 ImmutableCheck withTcp(String value)
tcp attribute.value - The value for tcpthis objectpublic final ImmutableCheck 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 final ImmutableCheck withServiceId(String value)
serviceId attribute.value - The value for serviceIdthis objectpublic final ImmutableCheck withServiceId(com.google.common.base.Optional<String> optional)
serviceId attribute.
An equality check is used to prevent copying of the same value by returning this.optional - A value for serviceIdthis objectpublic boolean equals(Object another)
ImmutableCheck that have equal attribute values.public int hashCode()
id, name, notes, output, script, interval, ttl, http, tcp, serviceId.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.Copyright © 2016. All rights reserved.