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

com.microsoft.azure.batch.protocol.models.TaskCountsResult Maven / Gradle / Ivy

There is a newer version: 11.2.0
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.batch.protocol.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * The Task and TaskSlot counts for a Job.
 */
public class TaskCountsResult {
    /**
     * The number of Tasks per state.
     */
    @JsonProperty(value = "taskCounts", required = true)
    private TaskCounts taskCounts;

    /**
     * The number of TaskSlots required by Tasks per state.
     */
    @JsonProperty(value = "taskSlotCounts", required = true)
    private TaskSlotCounts taskSlotCounts;

    /**
     * Get the taskCounts value.
     *
     * @return the taskCounts value
     */
    public TaskCounts taskCounts() {
        return this.taskCounts;
    }

    /**
     * Set the taskCounts value.
     *
     * @param taskCounts the taskCounts value to set
     * @return the TaskCountsResult object itself.
     */
    public TaskCountsResult withTaskCounts(TaskCounts taskCounts) {
        this.taskCounts = taskCounts;
        return this;
    }

    /**
     * Get the taskSlotCounts value.
     *
     * @return the taskSlotCounts value
     */
    public TaskSlotCounts taskSlotCounts() {
        return this.taskSlotCounts;
    }

    /**
     * Set the taskSlotCounts value.
     *
     * @param taskSlotCounts the taskSlotCounts value to set
     * @return the TaskCountsResult object itself.
     */
    public TaskCountsResult withTaskSlotCounts(TaskSlotCounts taskSlotCounts) {
        this.taskSlotCounts = taskSlotCounts;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy