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

package com.azure.resourcemanager.managementgroups.models;

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

/** Defines values for ManagementGroupExpandType. */
public final class ManagementGroupExpandType extends ExpandableStringEnum<ManagementGroupExpandType> {
    /** Static value children for ManagementGroupExpandType. */
    public static final ManagementGroupExpandType CHILDREN = fromString("children");

    /** Static value path for ManagementGroupExpandType. */
    public static final ManagementGroupExpandType PATH = fromString("path");

    /** Static value ancestors for ManagementGroupExpandType. */
    public static final ManagementGroupExpandType ANCESTORS = fromString("ancestors");

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

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

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