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

package com.azure.communication.jobrouter.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Represents the capacity a job in this channel will consume from a worker. */
@Fluent
public final class ChannelConfiguration {
    /*
     * The amount of capacity that an instance of a job of this channel will
     * consume of the total worker capacity.
     */
    @JsonProperty(value = "capacityCostPerJob", required = true)
    private Integer capacityCostPerJob;

    /*
     * The maximum number of jobs that can be supported concurrently for this
     * channel.
     */
    @JsonProperty(value = "maxNumberOfJobs")
    private Integer maxNumberOfJobs;

    /**
     * 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.
     */
    public Integer getCapacityCostPerJob() {
        return this.capacityCostPerJob;
    }

    /**
     * Set the capacityCostPerJob property: The amount of capacity that an instance of a job of this channel will
     * consume of the total worker capacity.
     *
     * @param capacityCostPerJob the capacityCostPerJob value to set.
     * @return the ChannelConfiguration object itself.
     */
    public ChannelConfiguration setCapacityCostPerJob(Integer capacityCostPerJob) {
        this.capacityCostPerJob = capacityCostPerJob;
        return this;
    }

    /**
     * Get the maxNumberOfJobs property: The maximum number of jobs that can be supported concurrently for this channel.
     *
     * @return the maxNumberOfJobs value.
     */
    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 ChannelConfiguration object itself.
     */
    public ChannelConfiguration setMaxNumberOfJobs(Integer maxNumberOfJobs) {
        this.maxNumberOfJobs = maxNumberOfJobs;
        return this;
    }
}
