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

package com.azure.resourcemanager.servicenetworking.models;

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

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

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

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

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