@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableInstanceInfo extends Object implements InstanceInfo
InstanceInfo.
Use the builder to create immutable instances:
ImmutableInstanceInfo.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableInstanceInfo.Builder
Builds instances of type
ImmutableInstanceInfo. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableInstanceInfo.Builder |
builder()
Creates a builder for
ImmutableInstanceInfo. |
static ImmutableInstanceInfo |
copyOf(InstanceInfo instance)
Creates an immutable copy of a
InstanceInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableInstanceInfo that have equal attribute values. |
int |
getIndex() |
InstanceState |
getState() |
int |
hashCode()
Computes a hash code from attributes:
index, state. |
String |
toString()
Prints the immutable value
InstanceInfo with attribute values. |
ImmutableInstanceInfo |
withIndex(int value)
Copy the current immutable object by setting a value for the
index attribute. |
ImmutableInstanceInfo |
withState(InstanceState value)
Copy the current immutable object by setting a value for the
state attribute. |
public int getIndex()
getIndex in interface InstanceInfoindex attributepublic InstanceState getState()
getState in interface InstanceInfostate attributepublic final ImmutableInstanceInfo withIndex(int value)
index attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for indexthis objectpublic final ImmutableInstanceInfo withState(InstanceState value)
state attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for statethis objectpublic boolean equals(Object another)
ImmutableInstanceInfo that have equal attribute values.public int hashCode()
index, state.public String toString()
InstanceInfo with attribute values.public static ImmutableInstanceInfo copyOf(InstanceInfo instance)
InstanceInfo 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 ImmutableInstanceInfo.Builder builder()
ImmutableInstanceInfo.
ImmutableInstanceInfo.builder()
.index(int) // required index
.state(org.cloudfoundry.client.lib.domain.InstanceState) // required state
.build();
Copyright © 2020 SAP SE. All rights reserved.