@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableStoredQuery extends StoredQuery
StoredQuery.
Use the builder to create immutable instances:
ImmutableStoredQuery.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableStoredQuery.Builder
Builds instances of type
ImmutableStoredQuery. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableStoredQuery.Builder |
builder()
Creates a builder for
ImmutableStoredQuery. |
static ImmutableStoredQuery |
copyOf(StoredQuery instance)
Creates an immutable copy of a
StoredQuery value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableStoredQuery that have equal attribute values. |
DnsQuery |
getDns() |
String |
getId() |
String |
getName() |
ServiceQuery |
getService() |
String |
getSession() |
String |
getToken() |
int |
hashCode()
Computes a hash code from attributes:
id, name, session, token, service, dns. |
String |
toString()
Prints the immutable value
StoredQuery with attribute values. |
ImmutableStoredQuery |
withDns(DnsQuery value)
Copy the current immutable object by setting a value for the
dns attribute. |
ImmutableStoredQuery |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableStoredQuery |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableStoredQuery |
withService(ServiceQuery value)
Copy the current immutable object by setting a value for the
service attribute. |
ImmutableStoredQuery |
withSession(String value)
Copy the current immutable object by setting a value for the
session attribute. |
ImmutableStoredQuery |
withToken(String value)
Copy the current immutable object by setting a value for the
token attribute. |
public String getId()
getId in class StoredQueryid attributepublic String getName()
getName in class StoredQueryname attributepublic String getSession()
getSession in class StoredQuerysession attributepublic String getToken()
getToken in class StoredQuerytoken attributepublic ServiceQuery getService()
getService in class StoredQueryservice attributepublic DnsQuery getDns()
getDns in class StoredQuerydns attributepublic final ImmutableStoredQuery 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 ImmutableStoredQuery 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 ImmutableStoredQuery withSession(String value)
session attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for sessionthis objectpublic final ImmutableStoredQuery withToken(String value)
token attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for tokenthis objectpublic final ImmutableStoredQuery withService(ServiceQuery 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 ImmutableStoredQuery withDns(DnsQuery value)
dns attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for dnsthis objectpublic boolean equals(@Nullable Object another)
ImmutableStoredQuery that have equal attribute values.public int hashCode()
id, name, session, token, service, dns.public String toString()
StoredQuery with attribute values.public static ImmutableStoredQuery copyOf(StoredQuery instance)
StoredQuery 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 ImmutableStoredQuery.Builder builder()
ImmutableStoredQuery.
ImmutableStoredQuery.builder()
.id(String) // required id
.name(String) // required name
.session(String) // required session
.token(String) // required token
.service(com.orbitz.consul.model.query.ServiceQuery) // required service
.dns(com.orbitz.consul.model.query.DnsQuery) // required dns
.build();
Copyright © 2019. All rights reserved.