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

package com.azure.resourcemanager.connectedvmware.models;

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

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

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

    /** Static value static for IpAddressAllocationMethod. */
    public static final IpAddressAllocationMethod STATIC = fromString("static");

    /** Static value linklayer for IpAddressAllocationMethod. */
    public static final IpAddressAllocationMethod LINKLAYER = fromString("linklayer");

    /** Static value random for IpAddressAllocationMethod. */
    public static final IpAddressAllocationMethod RANDOM = fromString("random");

    /** Static value other for IpAddressAllocationMethod. */
    public static final IpAddressAllocationMethod OTHER = fromString("other");

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

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