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

package com.azure.resourcemanager.managednetworkfabric.models;

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

/** IP Address type. */
public final class SourceDestinationType extends ExpandableStringEnum<SourceDestinationType> {
    /** Static value SourceIP for SourceDestinationType. */
    public static final SourceDestinationType SOURCE_IP = fromString("SourceIP");

    /** Static value DestinationIP for SourceDestinationType. */
    public static final SourceDestinationType DESTINATION_IP = fromString("DestinationIP");

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

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

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