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

package com.azure.resourcemanager.apimanagement.models;

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

/** Defines values for PolicyContentFormat. */
public final class PolicyContentFormat extends ExpandableStringEnum<PolicyContentFormat> {
    /** Static value xml for PolicyContentFormat. */
    public static final PolicyContentFormat XML = fromString("xml");

    /** Static value xml-link for PolicyContentFormat. */
    public static final PolicyContentFormat XML_LINK = fromString("xml-link");

    /** Static value rawxml for PolicyContentFormat. */
    public static final PolicyContentFormat RAWXML = fromString("rawxml");

    /** Static value rawxml-link for PolicyContentFormat. */
    public static final PolicyContentFormat RAWXML_LINK = fromString("rawxml-link");

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

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