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

package com.azure.analytics.purview.sharing.models;

import java.util.Collection;

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

/**
 * The types of invitations.
 */
public final class InvitationKind extends ExpandableStringEnum<InvitationKind> {
    /**
     * The invitation is sent to a user.
     */
    public static final InvitationKind USER_INVITATION = fromString("User");

    /**
     * The invitation is sent to a service.
     */
    public static final InvitationKind SERVICE_INVITATION = fromString("Service");

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

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

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