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

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

    /** Static value AzureResourceItem for ProtectionIntentItemType. */
    public static final ProtectionIntentItemType AZURE_RESOURCE_ITEM = fromString("AzureResourceItem");

    /** Static value RecoveryServiceVaultItem for ProtectionIntentItemType. */
    public static final ProtectionIntentItemType RECOVERY_SERVICE_VAULT_ITEM = fromString("RecoveryServiceVaultItem");

    /** Static value AzureWorkloadContainerAutoProtectionIntent for ProtectionIntentItemType. */
    public static final ProtectionIntentItemType AZURE_WORKLOAD_CONTAINER_AUTO_PROTECTION_INTENT =
        fromString("AzureWorkloadContainerAutoProtectionIntent");

    /** Static value AzureWorkloadAutoProtectionIntent for ProtectionIntentItemType. */
    public static final ProtectionIntentItemType AZURE_WORKLOAD_AUTO_PROTECTION_INTENT =
        fromString("AzureWorkloadAutoProtectionIntent");

    /** Static value AzureWorkloadSQLAutoProtectionIntent for ProtectionIntentItemType. */
    public static final ProtectionIntentItemType AZURE_WORKLOAD_SQLAUTO_PROTECTION_INTENT =
        fromString("AzureWorkloadSQLAutoProtectionIntent");

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

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

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