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

package com.azure.resourcemanager.logic.models;

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

/** The x12 time format. */
public final class X12TimeFormat extends ExpandableStringEnum<X12TimeFormat> {
    /** Static value NotSpecified for X12TimeFormat. */
    public static final X12TimeFormat NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value HHMM for X12TimeFormat. */
    public static final X12TimeFormat HHMM = fromString("HHMM");

    /** Static value HHMMSS for X12TimeFormat. */
    public static final X12TimeFormat HHMMSS = fromString("HHMMSS");

    /** Static value HHMMSSdd for X12TimeFormat. */
    public static final X12TimeFormat HHMMSSDD = fromString("HHMMSSdd");

    /** Static value HHMMSSd for X12TimeFormat. */
    public static final X12TimeFormat HHMMSSD = fromString("HHMMSSd");

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

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

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