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

package com.azure.resourcemanager.avs.models;

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

/** Is this parameter required or optional. */
public final class OptionalParamEnum extends ExpandableStringEnum<OptionalParamEnum> {
    /** Static value Optional for OptionalParamEnum. */
    public static final OptionalParamEnum OPTIONAL = fromString("Optional");

    /** Static value Required for OptionalParamEnum. */
    public static final OptionalParamEnum REQUIRED = fromString("Required");

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

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

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