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

com.glookast.commons.capture.info.TransferJob Maven / Gradle / Ivy


package com.glookast.commons.capture.info;

import com.glookast.commons.xml.XmlAdapterUUID;

import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Objects;
import java.util.UUID;


/**
 * 

Java class for TransferJob complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="TransferJob">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="captureJobId" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="status" type="{http://info.capture.commons.glookast.com}TransferJobStatus"/>
 *         <element name="progress" type="{http://www.w3.org/2001/XMLSchema}double"/>
 *         <element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="transformProfileId" type="{http://base.commons.glookast.com}UUID" minOccurs="0"/>
 *         <element name="outputSystemId" type="{http://base.commons.glookast.com}UUID" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TransferJob", namespace = "http://info.capture.commons.glookast.com", propOrder = { "id", "captureJobId", "status", "progress", "message", "transformProfileId", "outputSystemId" }) public class TransferJob implements Serializable { @XmlElement(required = true) protected String id; @XmlElement(required = true) protected String captureJobId; @XmlElement(required = true) @XmlSchemaType(name = "string") protected TransferJobStatus status; protected double progress; protected String message; @XmlElement(type = String.class) @XmlJavaTypeAdapter(XmlAdapterUUID.class) protected UUID transformProfileId; @XmlElement(type = String.class) @XmlJavaTypeAdapter(XmlAdapterUUID.class) protected UUID outputSystemId; /** * Default no-arg constructor */ public TransferJob() { super(); } /** * Fully-initialising value constructor */ public TransferJob(final String id, final String captureJobId, final TransferJobStatus status, final double progress, final String message, final UUID transformProfileId, final UUID outputSystemId) { this.id = id; this.captureJobId = captureJobId; this.status = status; this.progress = progress; this.message = message; this.transformProfileId = transformProfileId; this.outputSystemId = outputSystemId; } public TransferJob(TransferJob transferJob) { this.id = transferJob.id; this.captureJobId = transferJob.captureJobId; this.status = transferJob.status; this.progress = transferJob.progress; this.message = transferJob.message; this.transformProfileId = transferJob.transformProfileId; this.outputSystemId = transferJob.outputSystemId; } /** * Gets the value of the id property. * * @return possible object is * {@link String } */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value allowed object is * {@link String } */ public void setId(String value) { this.id = value; } /** * Gets the value of the captureJobId property. * * @return possible object is * {@link String } */ public String getCaptureJobId() { return captureJobId; } /** * Sets the value of the captureJobId property. * * @param value allowed object is * {@link String } */ public void setCaptureJobId(String value) { this.captureJobId = value; } /** * Gets the value of the status property. * * @return possible object is * {@link TransferJobStatus } */ public TransferJobStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value allowed object is * {@link TransferJobStatus } */ public void setStatus(TransferJobStatus value) { this.status = value; } /** * Gets the value of the progress property. */ public double getProgress() { return progress; } /** * Sets the value of the progress property. */ public void setProgress(double value) { this.progress = value; } /** * Gets the value of the message property. * * @return possible object is * {@link String } */ public String getMessage() { return message; } /** * Sets the value of the message property. * * @param value allowed object is * {@link String } */ public void setMessage(String value) { this.message = value; } /** * Gets the value of the transformProfileId property. * * @return possible object is * {@link String } */ public UUID getTransformProfileId() { return transformProfileId; } /** * Sets the value of the transformProfileId property. * * @param value allowed object is * {@link String } */ public void setTransformProfileId(UUID value) { this.transformProfileId = value; } /** * Gets the value of the outputSystemId property. * * @return possible object is * {@link String } */ public UUID getOutputSystemId() { return outputSystemId; } /** * Sets the value of the outputSystemId property. * * @param value allowed object is * {@link String } */ public void setOutputSystemId(UUID value) { this.outputSystemId = value; } @Override public String toString() { return "TransferJob{" + "id='" + id + '\'' + ", captureJobId='" + captureJobId + '\'' + ", status=" + status + ", progress=" + progress + ", message='" + message + '\'' + ", transformProfileId=" + transformProfileId + ", outputSystemId=" + outputSystemId + '}'; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } TransferJob that = (TransferJob) o; return Double.compare(that.progress, progress) == 0 && Objects.equals(id, that.id) && Objects.equals(captureJobId, that.captureJobId) && status == that.status && Objects.equals(message, that.message) && Objects.equals(transformProfileId, that.transformProfileId) && Objects.equals(outputSystemId, that.outputSystemId); } @Override public int hashCode() { return Objects.hash(id, captureJobId, status, progress, message, transformProfileId, outputSystemId); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy