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

package com.azure.resourcemanager.avs.models;

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

/** VM-Host placement policy affinity strength (should/must). */
public final class AffinityStrength extends ExpandableStringEnum<AffinityStrength> {
    /** Static value Should for AffinityStrength. */
    public static final AffinityStrength SHOULD = fromString("Should");

    /** Static value Must for AffinityStrength. */
    public static final AffinityStrength MUST = fromString("Must");

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

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

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