Class ImmutableTelemetry


  • @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    @CheckReturnValue
    public final class ImmutableTelemetry
    extends Telemetry
    Immutable implementation of Telemetry.

    Use the builder to create immutable instances: ImmutableTelemetry.builder().

    • Method Detail

      • getStatsiteAddr

        public java.lang.String getStatsiteAddr()
        Specified by:
        getStatsiteAddr in class Telemetry
        Returns:
        The value of the statsiteAddr attribute
      • getStatsdAddr

        public java.lang.String getStatsdAddr()
        Specified by:
        getStatsdAddr in class Telemetry
        Returns:
        The value of the statsdAddr attribute
      • getStatsitePrefix

        public java.lang.String getStatsitePrefix()
        Specified by:
        getStatsitePrefix in class Telemetry
        Returns:
        The value of the statsitePrefix attribute
      • getDisableHostname

        public java.lang.Boolean getDisableHostname()
        Specified by:
        getDisableHostname in class Telemetry
        Returns:
        The value of the disableHostname attribute
      • getDogStatsdAddr

        public java.lang.String getDogStatsdAddr()
        Specified by:
        getDogStatsdAddr in class Telemetry
        Returns:
        The value of the dogStatsdAddr attribute
      • getDogStatsdTags

        public java.util.Optional<java.util.List<java.lang.String>> getDogStatsdTags()
        Specified by:
        getDogStatsdTags in class Telemetry
        Returns:
        The value of the dogStatsdTags attribute
      • withStatsiteAddr

        public final ImmutableTelemetry withStatsiteAddr​(java.lang.String value)
        Copy the current immutable object by setting a value for the statsiteAddr attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for statsiteAddr
        Returns:
        A modified copy of the this object
      • withStatsdAddr

        public final ImmutableTelemetry withStatsdAddr​(java.lang.String value)
        Copy the current immutable object by setting a value for the statsdAddr attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for statsdAddr
        Returns:
        A modified copy of the this object
      • withStatsitePrefix

        public final ImmutableTelemetry withStatsitePrefix​(java.lang.String value)
        Copy the current immutable object by setting a value for the statsitePrefix attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for statsitePrefix
        Returns:
        A modified copy of the this object
      • withDisableHostname

        public final ImmutableTelemetry withDisableHostname​(java.lang.Boolean value)
        Copy the current immutable object by setting a value for the disableHostname attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for disableHostname
        Returns:
        A modified copy of the this object
      • withDogStatsdAddr

        public final ImmutableTelemetry withDogStatsdAddr​(java.lang.String value)
        Copy the current immutable object by setting a value for the dogStatsdAddr attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for dogStatsdAddr
        Returns:
        A modified copy of the this object
      • withDogStatsdTags

        public final ImmutableTelemetry withDogStatsdTags​(java.util.List<java.lang.String> value)
        Copy the current immutable object by setting a present value for the optional dogStatsdTags attribute.
        Parameters:
        value - The value for dogStatsdTags
        Returns:
        A modified copy of this object
      • withDogStatsdTags

        public final ImmutableTelemetry withDogStatsdTags​(java.util.Optional<? extends java.util.List<java.lang.String>> optional)
        Copy the current immutable object by setting an optional value for the dogStatsdTags attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for dogStatsdTags
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object another)
        This instance is equal to all instances of ImmutableTelemetry that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: statsiteAddr, statsdAddr, statsitePrefix, disableHostname, dogStatsdAddr, dogStatsdTags.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value Telemetry with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableTelemetry copyOf​(Telemetry instance)
        Creates an immutable copy of a Telemetry value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable Telemetry instance