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

package com.azure.resourcemanager.logic.models;

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

/** The trailing separator policy. */
public final class TrailingSeparatorPolicy extends ExpandableStringEnum<TrailingSeparatorPolicy> {
    /** Static value NotSpecified for TrailingSeparatorPolicy. */
    public static final TrailingSeparatorPolicy NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value NotAllowed for TrailingSeparatorPolicy. */
    public static final TrailingSeparatorPolicy NOT_ALLOWED = fromString("NotAllowed");

    /** Static value Optional for TrailingSeparatorPolicy. */
    public static final TrailingSeparatorPolicy OPTIONAL = fromString("Optional");

    /** Static value Mandatory for TrailingSeparatorPolicy. */
    public static final TrailingSeparatorPolicy MANDATORY = fromString("Mandatory");

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

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

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