// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.cosmos.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** The primary aggregation type of the metric. */
public final class PrimaryAggregationType extends ExpandableStringEnum<PrimaryAggregationType> {
    /** Static value None for PrimaryAggregationType. */
    public static final PrimaryAggregationType NONE = fromString("None");

    /** Static value Average for PrimaryAggregationType. */
    public static final PrimaryAggregationType AVERAGE = fromString("Average");

    /** Static value Total for PrimaryAggregationType. */
    public static final PrimaryAggregationType TOTAL = fromString("Total");

    /** Static value Minimum for PrimaryAggregationType. */
    public static final PrimaryAggregationType MINIMUM = fromString("Minimum");

    /** Static value Maximum for PrimaryAggregationType. */
    public static final PrimaryAggregationType MAXIMUM = fromString("Maximum");

    /** Static value Last for PrimaryAggregationType. */
    public static final PrimaryAggregationType LAST = fromString("Last");

    /**
     * Creates a new instance of PrimaryAggregationType value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public PrimaryAggregationType() {
    }

    /**
     * Creates or finds a PrimaryAggregationType from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding PrimaryAggregationType.
     */
    @JsonCreator
    public static PrimaryAggregationType fromString(String name) {
        return fromString(name, PrimaryAggregationType.class);
    }

    /**
     * Gets known PrimaryAggregationType values.
     *
     * @return known PrimaryAggregationType values.
     */
    public static Collection<PrimaryAggregationType> values() {
        return values(PrimaryAggregationType.class);
    }
}
