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

package com.azure.maps.render.models;

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

/** Defines values for MapTileSize. */
public final class MapTileSize extends ExpandableStringEnum<MapTileSize> {
    /** Static value 256 for MapTileSize. */
    public static final MapTileSize SIZE_256 = fromString("256");

    /** Static value 512 for MapTileSize. */
    public static final MapTileSize SIZE_512 = fromString("512");

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

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