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

package com.azure.resourcemanager.edgeorder.models;

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

/** Defines values for MeteringType. */
public final class MeteringType extends ExpandableStringEnum<MeteringType> {
    /** Static value OneTime for MeteringType. */
    public static final MeteringType ONE_TIME = fromString("OneTime");

    /** Static value Recurring for MeteringType. */
    public static final MeteringType RECURRING = fromString("Recurring");

    /** Static value Adhoc for MeteringType. */
    public static final MeteringType ADHOC = fromString("Adhoc");

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

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