com.azure.communication.jobrouter.models.RouterChannel 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.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Represents the capacity a job in this channel will consume from a worker.
*/
@Fluent
public final class RouterChannel {
/*
* Id of a channel.
*/
@Generated
@JsonProperty(value = "channelId")
private String channelId;
/*
* The amount of capacity that an instance of a job of this channel will consume of the total worker capacity.
*/
@Generated
@JsonProperty(value = "capacityCostPerJob")
private int capacityCostPerJob;
/*
* The maximum number of jobs that can be supported concurrently for this channel.
*/
@Generated
@JsonProperty(value = "maxNumberOfJobs")
private Integer maxNumberOfJobs;
/**
* Creates an instance of RouterChannel class.
*
* @param channelId the channelId value to set.
* @param capacityCostPerJob the capacityCostPerJob value to set.
*/
@Generated
@JsonCreator
public RouterChannel(@JsonProperty(value = "channelId") String channelId,
@JsonProperty(value = "capacityCostPerJob") int capacityCostPerJob) {
this.channelId = channelId;
this.capacityCostPerJob = capacityCostPerJob;
}
/**
* Get the channelId property: Id of a channel.
*
* @return the channelId value.
*/
@Generated
public String getChannelId() {
return this.channelId;
}
/**
* Get the capacityCostPerJob property: The amount of capacity that an instance of a job of this channel will
* consume of the total worker capacity.
*
* @return the capacityCostPerJob value.
*/
@Generated
public int getCapacityCostPerJob() {
return this.capacityCostPerJob;
}
/**
* Get the maxNumberOfJobs property: The maximum number of jobs that can be supported concurrently for this
* channel.
*
* @return the maxNumberOfJobs value.
*/
@Generated
public Integer getMaxNumberOfJobs() {
return this.maxNumberOfJobs;
}
/**
* Set the maxNumberOfJobs property: The maximum number of jobs that can be supported concurrently for this
* channel.
*
* @param maxNumberOfJobs the maxNumberOfJobs value to set.
* @return the RouterChannel object itself.
*/
@Generated
public RouterChannel setMaxNumberOfJobs(Integer maxNumberOfJobs) {
this.maxNumberOfJobs = maxNumberOfJobs;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy