// 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 scope for the virtual machine affinity or anti-affinity placement hint. It should always be "Machine" in the case
 * of node affinity.
 */
public final class VirtualMachinePlacementHintPodAffinityScope
    extends ExpandableStringEnum<VirtualMachinePlacementHintPodAffinityScope> {
    /** Static value Rack for VirtualMachinePlacementHintPodAffinityScope. */
    public static final VirtualMachinePlacementHintPodAffinityScope RACK = fromString("Rack");

    /** Static value Machine for VirtualMachinePlacementHintPodAffinityScope. */
    public static final VirtualMachinePlacementHintPodAffinityScope MACHINE = fromString("Machine");

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

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

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