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

package com.azure.resourcemanager.elasticsan.models;

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

/** Storage Target type. */
public final class StorageTargetType extends ExpandableStringEnum<StorageTargetType> {
    /** Static value Iscsi for StorageTargetType. */
    public static final StorageTargetType ISCSI = fromString("Iscsi");

    /** Static value None for StorageTargetType. */
    public static final StorageTargetType NONE = fromString("None");

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

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