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

com.hashicorp.nomad.javasdk.JobVersionsResponseData Maven / Gradle / Ivy

package com.hashicorp.nomad.javasdk;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.hashicorp.nomad.apimodel.Job;
import com.hashicorp.nomad.apimodel.JobDiff;

import java.util.List;

/**
 * Represents a job versions API response.
 */
public class JobVersionsResponseData {
    private List versions;
    private List jobDifferences;

    /**
     * Gets the versions of the job.
     */
    @JsonProperty("Versions")
    public List getVersions() {
        return versions;
    }

    /**
     * Sets the versions of the job.
     *
     * @param versions the versions of the job
     */
    public JobVersionsResponseData setJobs(List versions) {
        this.versions = versions;
        return this;
    }

    /**
     * Gets the diffs between job versions.
     */
    @JsonProperty("JobDiffs")
    public List getJobDiffs() {
        return jobDifferences;
    }

    /**
     * Sets the diffs between job versions.
     *
     * @param jobDifferences the diffs between job versions
     */
    public JobVersionsResponseData setJobDifferences(List jobDifferences) {
        this.jobDifferences = jobDifferences;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy