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

package com.azure.resourcemanager.netapp.models;

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

/** Indicates whether the local volume is the source or destination for the Volume Replication. */
public final class EndpointType extends ExpandableStringEnum<EndpointType> {
    /** Static value src for EndpointType. */
    public static final EndpointType SRC = fromString("src");

    /** Static value dst for EndpointType. */
    public static final EndpointType DST = fromString("dst");

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

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

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