@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDnsQuery extends DnsQuery
DnsQuery.
Use the builder to create immutable instances:
ImmutableDnsQuery.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDnsQuery.Builder
Builds instances of type
ImmutableDnsQuery. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDnsQuery.Builder |
builder()
Creates a builder for
ImmutableDnsQuery. |
static ImmutableDnsQuery |
copyOf(DnsQuery instance)
Creates an immutable copy of a
DnsQuery value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDnsQuery that have equal attribute values. |
String |
getTtl() |
int |
hashCode()
Computes a hash code from attributes:
ttl. |
String |
toString()
Prints the immutable value
DnsQuery with attribute values. |
ImmutableDnsQuery |
withTtl(String value)
Copy the current immutable object by setting a value for the
ttl attribute. |
public String getTtl()
public final ImmutableDnsQuery withTtl(String value)
ttl attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for ttlthis objectpublic boolean equals(@Nullable Object another)
ImmutableDnsQuery that have equal attribute values.public int hashCode()
ttl.public String toString()
DnsQuery with attribute values.public static ImmutableDnsQuery copyOf(DnsQuery instance)
DnsQuery 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 ImmutableDnsQuery.Builder builder()
ImmutableDnsQuery.
ImmutableDnsQuery.builder()
.ttl(String) // required ttl
.build();
Copyright © 2019. All rights reserved.