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

package com.azure.resourcemanager.network.models;

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

/** Value indicating whether the IP address is DDoS workload protected or not. */
public final class IsWorkloadProtected extends ExpandableStringEnum<IsWorkloadProtected> {
    /** Static value False for IsWorkloadProtected. */
    public static final IsWorkloadProtected FALSE = fromString("False");

    /** Static value True for IsWorkloadProtected. */
    public static final IsWorkloadProtected TRUE = fromString("True");

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

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

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