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

package com.azure.resourcemanager.automation.models;

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

/** The type of the sync job stream. */
public final class StreamType extends ExpandableStringEnum<StreamType> {
    /** Static value Error for StreamType. */
    public static final StreamType ERROR = fromString("Error");

    /** Static value Output for StreamType. */
    public static final StreamType OUTPUT = fromString("Output");

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

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