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

com.azure.communication.jobrouter.implementation.models.WeightedAllocationQueueSelectorAttachmentInternal Maven / Gradle / Ivy

There is a newer version: 1.1.11
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.communication.jobrouter.implementation.models;

import com.azure.core.annotation.Generated;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.List;

/**
 * Describes multiple sets of queue selectors, of which one will be selected and attached according to a weighting.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("weightedAllocation")
@Immutable
public final class WeightedAllocationQueueSelectorAttachmentInternal extends QueueSelectorAttachmentInternal {

    /*
     * A collection of percentage based weighted allocations.
     */
    @Generated
    @JsonProperty(value = "allocations")
    private List allocations;

    /**
     * Creates an instance of WeightedAllocationQueueSelectorAttachmentInternal class.
     *
     * @param allocations the allocations value to set.
     */
    @Generated
    @JsonCreator
    public WeightedAllocationQueueSelectorAttachmentInternal(
        @JsonProperty(value = "allocations") List allocations) {
        this.allocations = allocations;
    }

    /**
     * Get the allocations property: A collection of percentage based weighted allocations.
     *
     * @return the allocations value.
     */
    @Generated
    public List getAllocations() {
        return this.allocations;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy