ParameterType.java

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

package com.azure.resourcemanager.resources.models;

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

/** Defines values for ParameterType. */
public final class ParameterType extends ExpandableStringEnum<ParameterType> {
    /** Static value String for ParameterType. */
    public static final ParameterType STRING = fromString("String");

    /** Static value Array for ParameterType. */
    public static final ParameterType ARRAY = fromString("Array");

    /** Static value Object for ParameterType. */
    public static final ParameterType OBJECT = fromString("Object");

    /** Static value Boolean for ParameterType. */
    public static final ParameterType BOOLEAN = fromString("Boolean");

    /** Static value Integer for ParameterType. */
    public static final ParameterType INTEGER = fromString("Integer");

    /** Static value Float for ParameterType. */
    public static final ParameterType FLOAT = fromString("Float");

    /** Static value DateTime for ParameterType. */
    public static final ParameterType DATE_TIME = fromString("DateTime");

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

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