
com.azure.communication.jobrouter.implementation.models.WeightedAllocationQueueSelectorAttachmentInternal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-communication-jobrouter Show documentation
Show all versions of azure-communication-jobrouter Show documentation
This package contains a Java SDK for JobRouter Azure Communication Service.
// 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