@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","Telemetry"}) @Immutable public final class ImmutableTelemetry extends Telemetry
Telemetry.
Use the builder to create immutable instances:
ImmutableTelemetry.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTelemetry.Builder
Builds instances of type
ImmutableTelemetry. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableTelemetry.Builder |
builder()
Creates a builder for
ImmutableTelemetry. |
static ImmutableTelemetry |
copyOf(Telemetry instance)
Creates an immutable copy of a
Telemetry value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTelemetry that have equal attribute values. |
Boolean |
getDisableHostname() |
String |
getDogStatsdAddr() |
Optional<List<String>> |
getDogStatsdTags() |
String |
getStatsdAddr() |
String |
getStatsiteAddr() |
String |
getStatsitePrefix() |
int |
hashCode()
Computes a hash code from attributes:
statsiteAddr, statsdAddr, statsitePrefix, disableHostname, dogStatsdAddr, dogStatsdTags. |
String |
toString()
Prints the immutable value
Telemetry with attribute values. |
ImmutableTelemetry |
withDisableHostname(Boolean value)
Copy the current immutable object by setting a value for the
disableHostname attribute. |
ImmutableTelemetry |
withDogStatsdAddr(String value)
Copy the current immutable object by setting a value for the
dogStatsdAddr attribute. |
ImmutableTelemetry |
withDogStatsdTags(List<String> value)
Copy the current immutable object by setting a present value for the optional
dogStatsdTags attribute. |
ImmutableTelemetry |
withDogStatsdTags(Optional<List<String>> optional)
Copy the current immutable object by setting an optional value for the
dogStatsdTags attribute. |
ImmutableTelemetry |
withStatsdAddr(String value)
Copy the current immutable object by setting a value for the
statsdAddr attribute. |
ImmutableTelemetry |
withStatsiteAddr(String value)
Copy the current immutable object by setting a value for the
statsiteAddr attribute. |
ImmutableTelemetry |
withStatsitePrefix(String value)
Copy the current immutable object by setting a value for the
statsitePrefix attribute. |
public String getStatsiteAddr()
getStatsiteAddr in class TelemetrystatsiteAddr attributepublic String getStatsdAddr()
getStatsdAddr in class TelemetrystatsdAddr attributepublic String getStatsitePrefix()
getStatsitePrefix in class TelemetrystatsitePrefix attributepublic Boolean getDisableHostname()
getDisableHostname in class TelemetrydisableHostname attributepublic String getDogStatsdAddr()
getDogStatsdAddr in class TelemetrydogStatsdAddr attributepublic Optional<List<String>> getDogStatsdTags()
getDogStatsdTags in class TelemetrydogStatsdTags attributepublic final ImmutableTelemetry withStatsiteAddr(String value)
statsiteAddr attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for statsiteAddrthis objectpublic final ImmutableTelemetry withStatsdAddr(String value)
statsdAddr attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for statsdAddrthis objectpublic final ImmutableTelemetry withStatsitePrefix(String value)
statsitePrefix attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for statsitePrefixthis objectpublic final ImmutableTelemetry withDisableHostname(Boolean value)
disableHostname attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for disableHostnamethis objectpublic final ImmutableTelemetry withDogStatsdAddr(String value)
dogStatsdAddr attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for dogStatsdAddrthis objectpublic final ImmutableTelemetry withDogStatsdTags(List<String> value)
dogStatsdTags attribute.value - The value for dogStatsdTagsthis objectpublic final ImmutableTelemetry withDogStatsdTags(Optional<List<String>> optional)
dogStatsdTags attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for dogStatsdTagsthis objectpublic boolean equals(@Nullable Object another)
ImmutableTelemetry that have equal attribute values.public int hashCode()
statsiteAddr, statsdAddr, statsitePrefix, disableHostname, dogStatsdAddr, dogStatsdTags.public String toString()
Telemetry with attribute values.public static ImmutableTelemetry copyOf(Telemetry instance)
Telemetry 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 ImmutableTelemetry.Builder builder()
ImmutableTelemetry.Copyright © 2018. All rights reserved.