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

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

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

/** A value indicating whether source site operations are required. */
public final class SourceSiteOperations extends ExpandableStringEnum<SourceSiteOperations> {
    /** Static value Required for SourceSiteOperations. */
    public static final SourceSiteOperations REQUIRED = fromString("Required");

    /** Static value NotRequired for SourceSiteOperations. */
    public static final SourceSiteOperations NOT_REQUIRED = fromString("NotRequired");

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

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

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