com.microsoft.azure.batch.protocol.models.TaskCountsResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-batch Show documentation
Show all versions of azure-batch Show documentation
This package contains the root module of Microsoft Azure Batch SDK.
/**
* 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;
}
}