// 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;

/** Defines values for BackupPolicyType. */
public final class BackupPolicyType extends ExpandableStringEnum<BackupPolicyType> {
    /** Static value Periodic for BackupPolicyType. */
    public static final BackupPolicyType PERIODIC = fromString("Periodic");

    /** Static value Continuous for BackupPolicyType. */
    public static final BackupPolicyType CONTINUOUS = fromString("Continuous");

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

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