TeradataPartitionOption.java

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

package com.azure.analytics.synapse.artifacts.models;

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

/** Defines values for TeradataPartitionOption. */
public final class TeradataPartitionOption extends ExpandableStringEnum<TeradataPartitionOption> {
    /** Static value None for TeradataPartitionOption. */
    public static final TeradataPartitionOption NONE = fromString("None");

    /** Static value Hash for TeradataPartitionOption. */
    public static final TeradataPartitionOption HASH = fromString("Hash");

    /** Static value DynamicRange for TeradataPartitionOption. */
    public static final TeradataPartitionOption DYNAMIC_RANGE = fromString("DynamicRange");

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

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