@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableServiceHealth extends ServiceHealth
ServiceHealth.
Use the builder to create immutable instances:
ImmutableServiceHealth.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableServiceHealth.Builder
Builds instances of type
ImmutableServiceHealth. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableServiceHealth.Builder |
builder()
Creates a builder for
ImmutableServiceHealth. |
static ImmutableServiceHealth |
copyOf(ServiceHealth instance)
Creates an immutable copy of a
ServiceHealth value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableServiceHealth that have equal attribute values. |
com.google.common.collect.ImmutableList<HealthCheck> |
getChecks() |
Node |
getNode() |
Service |
getService() |
int |
hashCode()
Computes a hash code from attributes:
node, service, checks. |
String |
toString()
Prints the immutable value
ServiceHealth with attribute values. |
ImmutableServiceHealth |
withChecks(HealthCheck... elements)
Copy the current immutable object with elements that replace the content of
checks. |
ImmutableServiceHealth |
withChecks(Iterable<? extends HealthCheck> elements)
Copy the current immutable object with elements that replace the content of
checks. |
ImmutableServiceHealth |
withNode(Node value)
Copy the current immutable object by setting a value for the
node attribute. |
ImmutableServiceHealth |
withService(Service value)
Copy the current immutable object by setting a value for the
service attribute. |
public Node getNode()
getNode in class ServiceHealthnode attributepublic Service getService()
getService in class ServiceHealthservice attributepublic com.google.common.collect.ImmutableList<HealthCheck> getChecks()
getChecks in class ServiceHealthchecks attributepublic final ImmutableServiceHealth withNode(Node value)
node attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for nodethis objectpublic final ImmutableServiceHealth withService(Service value)
service attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for servicethis objectpublic final ImmutableServiceHealth withChecks(HealthCheck... elements)
checks.elements - The elements to setthis objectpublic final ImmutableServiceHealth withChecks(Iterable<? extends HealthCheck> elements)
checks.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of checks elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableServiceHealth that have equal attribute values.public int hashCode()
node, service, checks.public String toString()
ServiceHealth with attribute values.public static ImmutableServiceHealth copyOf(ServiceHealth instance)
ServiceHealth 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 ImmutableServiceHealth.Builder builder()
ImmutableServiceHealth.
ImmutableServiceHealth.builder()
.node(com.orbitz.consul.model.health.Node) // required node
.service(com.orbitz.consul.model.health.Service) // required service
.addChecks|addAllChecks(com.orbitz.consul.model.health.HealthCheck) // checks elements
.build();
Copyright © 2019. All rights reserved.