com.deepl.api.DocumentHandle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deepl-java Show documentation
Show all versions of deepl-java Show documentation
DeepL API Java Client Library
The newest version!
// Copyright 2022 DeepL SE (https://www.deepl.com)
// Use of this source code is governed by an MIT
// license that can be found in the LICENSE file.
package com.deepl.api;
import com.google.gson.annotations.SerializedName;
/**
* Handle to an in-progress document translation.
*
* @see Translator#translateDocumentStatus(DocumentHandle)
*/
public class DocumentHandle {
@SerializedName(value = "document_id")
private final String documentId;
@SerializedName(value = "document_key")
private final String documentKey;
public DocumentHandle(String documentId, String documentKey) {
this.documentId = documentId;
this.documentKey = documentKey;
}
/** Get the ID of associated document request. */
public String getDocumentId() {
return documentId;
}
/** Get the key of associated document request. */
public String getDocumentKey() {
return documentKey;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy