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

package com.azure.resourcemanager.recoveryservicesbackup.models;

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

/** Type of backup policy type. */
public final class PolicyType extends ExpandableStringEnum<PolicyType> {
    /** Static value Invalid for PolicyType. */
    public static final PolicyType INVALID = fromString("Invalid");

    /** Static value Full for PolicyType. */
    public static final PolicyType FULL = fromString("Full");

    /** Static value Differential for PolicyType. */
    public static final PolicyType DIFFERENTIAL = fromString("Differential");

    /** Static value Log for PolicyType. */
    public static final PolicyType LOG = fromString("Log");

    /** Static value CopyOnlyFull for PolicyType. */
    public static final PolicyType COPY_ONLY_FULL = fromString("CopyOnlyFull");

    /** Static value Incremental for PolicyType. */
    public static final PolicyType INCREMENTAL = fromString("Incremental");

    /** Static value SnapshotFull for PolicyType. */
    public static final PolicyType SNAPSHOT_FULL = fromString("SnapshotFull");

    /** Static value SnapshotCopyOnlyFull for PolicyType. */
    public static final PolicyType SNAPSHOT_COPY_ONLY_FULL = fromString("SnapshotCopyOnlyFull");

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

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

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