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

package com.azure.resourcemanager.networkcloud.models;

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

/** The specification of whether this hint supports affinity or anti-affinity with the referenced resources. */
public final class VirtualMachinePlacementHintType extends ExpandableStringEnum<VirtualMachinePlacementHintType> {
    /** Static value Affinity for VirtualMachinePlacementHintType. */
    public static final VirtualMachinePlacementHintType AFFINITY = fromString("Affinity");

    /** Static value AntiAffinity for VirtualMachinePlacementHintType. */
    public static final VirtualMachinePlacementHintType ANTI_AFFINITY = fromString("AntiAffinity");

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

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

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