All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlan.model.search.AggregationMetricResult Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
// Generated by delombok at Tue Nov 26 17:04:59 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.search;

/**
 * Captures the results from a metric aggregation.
 */
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AggregationMetricResult.AggregationMetricResultBuilder.class)
public class AggregationMetricResult extends AggregationResult {
    private static final long serialVersionUID = 2L;
    /**
     * Value of the requested metric aggregation.
     */
    Double value;

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    AggregationMetricResult(final Double value) {
        this.value = value;
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
    public static class AggregationMetricResultBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Double value;

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        AggregationMetricResultBuilder() {
        }

        /**
         * Value of the requested metric aggregation.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AggregationMetricResult.AggregationMetricResultBuilder value(final Double value) {
            this.value = value;
            return this;
        }

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AggregationMetricResult build() {
            return new AggregationMetricResult(this.value);
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public java.lang.String toString() {
            return "AggregationMetricResult.AggregationMetricResultBuilder(value=" + this.value + ")";
        }
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static AggregationMetricResult.AggregationMetricResultBuilder builder() {
        return new AggregationMetricResult.AggregationMetricResultBuilder();
    }

    /**
     * Value of the requested metric aggregation.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Double getValue() {
        return this.value;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof AggregationMetricResult)) return false;
        final AggregationMetricResult other = (AggregationMetricResult) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$value = this.getValue();
        final java.lang.Object other$value = other.getValue();
        if (this$value == null ? other$value != null : !this$value.equals(other$value)) return false;
        return true;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected boolean canEqual(final java.lang.Object other) {
        return other instanceof AggregationMetricResult;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $value = this.getValue();
        result = result * PRIME + ($value == null ? 43 : $value.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "AggregationMetricResult(super=" + super.toString() + ", value=" + this.getValue() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy