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

package com.azure.resourcemanager.nginx.models;

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

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

    /** Static value Dynamic for NginxPrivateIpAllocationMethod. */
    public static final NginxPrivateIpAllocationMethod DYNAMIC = fromString("Dynamic");

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

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