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

package com.azure.resourcemanager.eventhubs.models;

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

/** Defines values for KeyType. */
public final class KeyType extends ExpandableStringEnum<KeyType> {
    /** Static value PrimaryKey for KeyType. */
    public static final KeyType PRIMARY_KEY = fromString("PrimaryKey");

    /** Static value SecondaryKey for KeyType. */
    public static final KeyType SECONDARY_KEY = fromString("SecondaryKey");

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

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