@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePolicyListResponse extends PolicyListResponse
PolicyListResponse.
Use the builder to create immutable instances:
ImmutablePolicyListResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePolicyListResponse.Builder
Builds instances of type
ImmutablePolicyListResponse. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePolicyListResponse.Builder |
builder()
Creates a builder for
ImmutablePolicyListResponse. |
static ImmutablePolicyListResponse |
copyOf(PolicyListResponse instance)
Creates an immutable copy of a
PolicyListResponse value. |
BigInteger |
createIndex() |
Optional<String> |
datacenters() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePolicyListResponse that have equal attribute values. |
String |
hash() |
int |
hashCode()
Computes a hash code from attributes:
id, name, datacenters, hash, createIndex, modifyIndex. |
String |
id() |
BigInteger |
modifyIndex() |
String |
name() |
String |
toString()
Prints the immutable value
PolicyListResponse with attribute values. |
ImmutablePolicyListResponse |
withCreateIndex(BigInteger value)
Copy the current immutable object by setting a value for the
createIndex attribute. |
ImmutablePolicyListResponse |
withDatacenters(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
datacenters attribute. |
ImmutablePolicyListResponse |
withDatacenters(String value)
Copy the current immutable object by setting a present value for the optional
datacenters attribute. |
ImmutablePolicyListResponse |
withHash(String value)
Copy the current immutable object by setting a value for the
hash attribute. |
ImmutablePolicyListResponse |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutablePolicyListResponse |
withModifyIndex(BigInteger value)
Copy the current immutable object by setting a value for the
modifyIndex attribute. |
ImmutablePolicyListResponse |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
public String id()
id in class BasePolicyResponseid attributepublic String name()
name in class BasePolicyResponsename attributepublic Optional<String> datacenters()
datacenters in class BasePolicyResponsedatacenters attributepublic String hash()
hash in class BasePolicyResponsehash attributepublic BigInteger createIndex()
createIndex in class BasePolicyResponsecreateIndex attributepublic BigInteger modifyIndex()
modifyIndex in class BasePolicyResponsemodifyIndex attributepublic final ImmutablePolicyListResponse 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 ImmutablePolicyListResponse 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 ImmutablePolicyListResponse withDatacenters(String value)
datacenters attribute.value - The value for datacentersthis objectpublic final ImmutablePolicyListResponse withDatacenters(Optional<String> optional)
datacenters attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for datacentersthis objectpublic final ImmutablePolicyListResponse withHash(String value)
hash attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for hashthis objectpublic final ImmutablePolicyListResponse withCreateIndex(BigInteger value)
createIndex attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for createIndexthis objectpublic final ImmutablePolicyListResponse withModifyIndex(BigInteger value)
modifyIndex attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for modifyIndexthis objectpublic boolean equals(@Nullable Object another)
ImmutablePolicyListResponse that have equal attribute values.public int hashCode()
id, name, datacenters, hash, createIndex, modifyIndex.public String toString()
PolicyListResponse with attribute values.public static ImmutablePolicyListResponse copyOf(PolicyListResponse instance)
PolicyListResponse 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 ImmutablePolicyListResponse.Builder builder()
ImmutablePolicyListResponse.
ImmutablePolicyListResponse.builder()
.id(String) // required id
.name(String) // required name
.datacenters(String) // optional datacenters
.hash(String) // required hash
.createIndex(java.math.BigInteger) // required createIndex
.modifyIndex(java.math.BigInteger) // required modifyIndex
.build();
Copyright © 2019. All rights reserved.