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

package com.azure.resourcemanager.networkcloud.models;

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

/** The size of the hugepages to allocate. */
public final class HugepagesSize extends ExpandableStringEnum<HugepagesSize> {
    /** Static value 2M for HugepagesSize. */
    public static final HugepagesSize TWOM = fromString("2M");

    /** Static value 1G for HugepagesSize. */
    public static final HugepagesSize ONEG = fromString("1G");

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

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

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