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

package com.azure.resourcemanager.network.models;

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

/** The action type of a NAT rule collection. */
public final class AzureFirewallNatRCActionType extends ExpandableStringEnum<AzureFirewallNatRCActionType> {
    /** Static value Snat for AzureFirewallNatRCActionType. */
    public static final AzureFirewallNatRCActionType SNAT = fromString("Snat");

    /** Static value Dnat for AzureFirewallNatRCActionType. */
    public static final AzureFirewallNatRCActionType DNAT = fromString("Dnat");

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

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

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