com.azure.communication.jobrouter.implementation.models.QueueWeightedAllocationInternal 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.
The 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 java.util.List;
/**
* Contains the weight percentage and queue selectors to be applied if selected for weighted distributions.
*/
@Immutable
public final class QueueWeightedAllocationInternal {
/*
* The percentage of this weight, expressed as a fraction of 1.
*/
@Generated
@JsonProperty(value = "weight")
private double weight;
/*
* A collection of queue selectors that will be applied if this allocation is selected.
*/
@Generated
@JsonProperty(value = "queueSelectors")
private List queueSelectors;
/**
* Creates an instance of QueueWeightedAllocationInternal class.
*
* @param weight the weight value to set.
* @param queueSelectors the queueSelectors value to set.
*/
@Generated
@JsonCreator
public QueueWeightedAllocationInternal(@JsonProperty(value = "weight") double weight,
@JsonProperty(value = "queueSelectors") List queueSelectors) {
this.weight = weight;
this.queueSelectors = queueSelectors;
}
/**
* Get the weight property: The percentage of this weight, expressed as a fraction of 1.
*
* @return the weight value.
*/
@Generated
public double getWeight() {
return this.weight;
}
/**
* Get the queueSelectors property: A collection of queue selectors that will be applied if this allocation is
* selected.
*
* @return the queueSelectors value.
*/
@Generated
public List getQueueSelectors() {
return this.queueSelectors;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy