ReservationStatus.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 ReservationStatus. */
public final class ReservationStatus extends ExpandableStringEnum<ReservationStatus> {
    /** Static value Pending for ReservationStatus. */
    public static final ReservationStatus PENDING = fromString("Pending");

    /** Static value InProgress for ReservationStatus. */
    public static final ReservationStatus IN_PROGRESS = fromString("InProgress");

    /** Static value Reserved for ReservationStatus. */
    public static final ReservationStatus RESERVED = fromString("Reserved");

    /** Static value Expired for ReservationStatus. */
    public static final ReservationStatus EXPIRED = fromString("Expired");

    /** Static value Expiring for ReservationStatus. */
    public static final ReservationStatus EXPIRING = fromString("Expiring");

    /** Static value Completing for ReservationStatus. */
    public static final ReservationStatus COMPLETING = fromString("Completing");

    /** Static value Refreshing for ReservationStatus. */
    public static final ReservationStatus REFRESHING = fromString("Refreshing");

    /** Static value Success for ReservationStatus. */
    public static final ReservationStatus SUCCESS = fromString("Success");

    /** Static value Manual for ReservationStatus. */
    public static final ReservationStatus MANUAL = fromString("Manual");

    /** Static value Cancelled for ReservationStatus. */
    public static final ReservationStatus CANCELLED = fromString("Cancelled");

    /** Static value Cancelling for ReservationStatus. */
    public static final ReservationStatus CANCELLING = fromString("Cancelling");

    /** Static value Error for ReservationStatus. */
    public static final ReservationStatus ERROR = fromString("Error");

    /** Static value PurchasePending for ReservationStatus. */
    public static final ReservationStatus PURCHASE_PENDING = fromString("PurchasePending");

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

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