BillingFrequency.java

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

package com.azure.communication.phonenumbers.models;

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

/** Defines values for BillingFrequency. */
public final class BillingFrequency extends ExpandableStringEnum<BillingFrequency> {
    /** Static value monthly for BillingFrequency. */
    public static final BillingFrequency MONTHLY = fromString("monthly");

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

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