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

package com.azure.resourcemanager.newrelicobservability.models;

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

/** Indicates whether metrics are being sent. */
public final class SendingMetricsStatus extends ExpandableStringEnum<SendingMetricsStatus> {
    /** Static value Enabled for SendingMetricsStatus. */
    public static final SendingMetricsStatus ENABLED = fromString("Enabled");

    /** Static value Disabled for SendingMetricsStatus. */
    public static final SendingMetricsStatus DISABLED = fromString("Disabled");

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

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

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