@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableHealthCheck extends HealthCheck
HealthCheck.
Use the builder to create immutable instances:
ImmutableHealthCheck.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableHealthCheck.Builder
Builds instances of type
ImmutableHealthCheck. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableHealthCheck.Builder |
builder()
Creates a builder for
ImmutableHealthCheck. |
static ImmutableHealthCheck |
copyOf(HealthCheck instance)
Creates an immutable copy of a
HealthCheck value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableHealthCheck that have equal attribute values. |
String |
getCheckId() |
String |
getName() |
String |
getNode() |
Optional<String> |
getNotes() |
Optional<String> |
getOutput() |
Optional<String> |
getServiceId() |
Optional<String> |
getServiceName() |
com.google.common.collect.ImmutableList<String> |
getServiceTags() |
String |
getStatus() |
int |
hashCode()
Computes a hash code from attributes:
node, checkId, name, status, notes, output, serviceId, serviceName, serviceTags. |
String |
toString()
Prints the immutable value
HealthCheck with attribute values. |
ImmutableHealthCheck |
withCheckId(String value)
Copy the current immutable object by setting a value for the
checkId attribute. |
ImmutableHealthCheck |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableHealthCheck |
withNode(String value)
Copy the current immutable object by setting a value for the
node attribute. |
ImmutableHealthCheck |
withNotes(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
notes attribute. |
ImmutableHealthCheck |
withNotes(String value)
Copy the current immutable object by setting a present value for the optional
notes attribute. |
ImmutableHealthCheck |
withOutput(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
output attribute. |
ImmutableHealthCheck |
withOutput(String value)
Copy the current immutable object by setting a present value for the optional
output attribute. |
ImmutableHealthCheck |
withServiceId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
serviceId attribute. |
ImmutableHealthCheck |
withServiceId(String value)
Copy the current immutable object by setting a present value for the optional
serviceId attribute. |
ImmutableHealthCheck |
withServiceName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
serviceName attribute. |
ImmutableHealthCheck |
withServiceName(String value)
Copy the current immutable object by setting a present value for the optional
serviceName attribute. |
ImmutableHealthCheck |
withServiceTags(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
serviceTags. |
ImmutableHealthCheck |
withServiceTags(String... elements)
Copy the current immutable object with elements that replace the content of
serviceTags. |
ImmutableHealthCheck |
withStatus(String value)
Copy the current immutable object by setting a value for the
status attribute. |
public String getNode()
getNode in class HealthChecknode attributepublic String getCheckId()
getCheckId in class HealthCheckcheckId attributepublic String getName()
getName in class HealthCheckname attributepublic String getStatus()
getStatus in class HealthCheckstatus attributepublic Optional<String> getNotes()
getNotes in class HealthChecknotes attributepublic Optional<String> getOutput()
getOutput in class HealthCheckoutput attributepublic Optional<String> getServiceId()
getServiceId in class HealthCheckserviceId attributepublic Optional<String> getServiceName()
getServiceName in class HealthCheckserviceName attributepublic com.google.common.collect.ImmutableList<String> getServiceTags()
getServiceTags in class HealthCheckserviceTags attributepublic final ImmutableHealthCheck withNode(String value)
node attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for nodethis objectpublic final ImmutableHealthCheck withCheckId(String value)
checkId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for checkIdthis objectpublic final ImmutableHealthCheck 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 ImmutableHealthCheck withStatus(String value)
status attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for statusthis objectpublic final ImmutableHealthCheck withNotes(String value)
notes attribute.value - The value for notesthis objectpublic final ImmutableHealthCheck withNotes(Optional<String> optional)
notes attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for notesthis objectpublic final ImmutableHealthCheck withOutput(String value)
output attribute.value - The value for outputthis objectpublic final ImmutableHealthCheck withOutput(Optional<String> optional)
output attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for outputthis objectpublic final ImmutableHealthCheck withServiceId(String value)
serviceId attribute.value - The value for serviceIdthis objectpublic final ImmutableHealthCheck withServiceId(Optional<String> optional)
serviceId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for serviceIdthis objectpublic final ImmutableHealthCheck withServiceName(String value)
serviceName attribute.value - The value for serviceNamethis objectpublic final ImmutableHealthCheck withServiceName(Optional<String> optional)
serviceName attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for serviceNamethis objectpublic final ImmutableHealthCheck withServiceTags(String... elements)
serviceTags.elements - The elements to setthis objectpublic final ImmutableHealthCheck withServiceTags(Iterable<String> elements)
serviceTags.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of serviceTags elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableHealthCheck that have equal attribute values.public int hashCode()
node, checkId, name, status, notes, output, serviceId, serviceName, serviceTags.public String toString()
HealthCheck with attribute values.public static ImmutableHealthCheck copyOf(HealthCheck instance)
HealthCheck 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 ImmutableHealthCheck.Builder builder()
ImmutableHealthCheck.
ImmutableHealthCheck.builder()
.node(String) // required node
.checkId(String) // required checkId
.name(String) // required name
.status(String) // required status
.notes(String) // optional notes
.output(String) // optional output
.serviceId(String) // optional serviceId
.serviceName(String) // optional serviceName
.addServiceTags|addAllServiceTags(String) // serviceTags elements
.build();
Copyright © 2019. All rights reserved.