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

com.hp.autonomy.hod.client.job.JobId Maven / Gradle / Ivy

There is a newer version: 0.25.3
Show newest version
/*
 * Copyright 2015-2016 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

package com.hp.autonomy.hod.client.job;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import lombok.Data;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * Wrapper class for an HP Haven OnDemand job ID.
 */
@Data
@JsonDeserialize(builder = JobId.Builder.class)
public class JobId {

    /**
     * @return The job ID of the HP Haven OnDemand job
     */
    private final String jobId;

    private JobId(final String jobId) {
        this.jobId = jobId;
    }

    @Override
    public String toString() {
        return jobId;
    }

    @Setter
    @Accessors(chain = true)
    @JsonPOJOBuilder(withPrefix = "set")
    public static class Builder {

        @JsonProperty("jobID")
        private String jobId;

        public JobId build() {
            return new JobId(jobId);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy