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

package com.azure.resourcemanager.sql.models;

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

/** The units that the limit is expressed in. */
public final class MaxSizeUnit extends ExpandableStringEnum<MaxSizeUnit> {
    /** Static value Megabytes for MaxSizeUnit. */
    public static final MaxSizeUnit MEGABYTES = fromString("Megabytes");

    /** Static value Gigabytes for MaxSizeUnit. */
    public static final MaxSizeUnit GIGABYTES = fromString("Gigabytes");

    /** Static value Terabytes for MaxSizeUnit. */
    public static final MaxSizeUnit TERABYTES = fromString("Terabytes");

    /** Static value Petabytes for MaxSizeUnit. */
    public static final MaxSizeUnit PETABYTES = fromString("Petabytes");

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

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