All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.appcontainers.models.Affinity Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-03.

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

package com.azure.resourcemanager.appcontainers.models;

import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;

/**
 * Sticky Session Affinity.
 */
public final class Affinity extends ExpandableStringEnum {
    /**
     * Static value sticky for Affinity.
     */
    public static final Affinity STICKY = fromString("sticky");

    /**
     * Static value none for Affinity.
     */
    public static final Affinity NONE = fromString("none");

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy