// 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 partner type. */
public final class PartnerType extends ExpandableStringEnum<PartnerType> {
    /** Static value NotSpecified for PartnerType. */
    public static final PartnerType NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value B2B for PartnerType. */
    public static final PartnerType B2B = fromString("B2B");

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

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

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