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

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

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

/** The source IP address type. */
public final class EthernetAddressType extends ExpandableStringEnum<EthernetAddressType> {
    /** Static value Dynamic for EthernetAddressType. */
    public static final EthernetAddressType DYNAMIC = fromString("Dynamic");

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

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

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

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