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

de.mklinger.qetcher.client.InputJob Maven / Gradle / Ivy

There is a newer version: 2.0.42.rc
Show newest version
package de.mklinger.qetcher.client;

import java.time.Duration;

import de.mklinger.qetcher.client.model.v1.ConversionFile;
import de.mklinger.qetcher.client.model.v1.MediaType;

/**
 * @author Marc Klinger - mklinger[at]mklinger[dot]de
 */
public interface InputJob {
	String getConversionFileId();
	InputConversionFile getInputConversionFile();
	MediaType getFromMediaType();
	MediaType getToMediaType();
	Duration getDeleteTimeout();
	Duration getCancelTimeout();
	String getReferrer();

	public interface Builder {
		Builder fromFile(String conversionFileId);
		Builder fromFile(ConversionFile conversionFile);
		Builder fromFile(InputConversionFile inputConversionFile);
		Builder fromMediaType(MediaType mediaType);
		Builder toMediaType(MediaType mediaType);
		Builder deleteTimeout(Duration deleteTimeout);
		Builder cancelTimeout(Duration cancelTimeout);
		Builder referrer(String referrer);
		InputJob build();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy