// 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;

/**
 * `Internet` - Advertise routes to internet community. `LocalAS` - Advertise routes to only localAS peers.
 * `NoAdvertise` - Don't advertise routes to any peer. `NoExport` - Don't export to next AS. `GShut` - Graceful Shutdown
 * (GSHUT) withdraw routes before terminating BGP connection.
 */
public final class WellKnownCommunities extends ExpandableStringEnum<WellKnownCommunities> {
    /** Static value Internet for WellKnownCommunities. */
    public static final WellKnownCommunities INTERNET = fromString("Internet");

    /** Static value LocalAS for WellKnownCommunities. */
    public static final WellKnownCommunities LOCAL_AS = fromString("LocalAS");

    /** Static value NoAdvertise for WellKnownCommunities. */
    public static final WellKnownCommunities NO_ADVERTISE = fromString("NoAdvertise");

    /** Static value NoExport for WellKnownCommunities. */
    public static final WellKnownCommunities NO_EXPORT = fromString("NoExport");

    /** Static value GShut for WellKnownCommunities. */
    public static final WellKnownCommunities GSHUT = fromString("GShut");

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

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

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