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

package com.azure.resourcemanager.hdinsight.models;

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

/** Defines values for RoleName. */
public final class RoleName extends ExpandableStringEnum<RoleName> {
    /** Static value workernode for RoleName. */
    public static final RoleName WORKERNODE = fromString("workernode");

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

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