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

package com.azure.resourcemanager.networkcloud.models;

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

/**
 * The indicator of whether this is the default gateway. Only one of the attached networks (including the
 * CloudServicesNetwork attachment) for a single machine may be specified as True.
 */
public final class DefaultGateway extends ExpandableStringEnum<DefaultGateway> {
    /** Static value True for DefaultGateway. */
    public static final DefaultGateway TRUE = fromString("True");

    /** Static value False for DefaultGateway. */
    public static final DefaultGateway FALSE = fromString("False");

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

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

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