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

net.optionfactory.whatsapp.dto.messages.DocumentParameter Maven / Gradle / Ivy

package net.optionfactory.whatsapp.dto.messages;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import net.optionfactory.whatsapp.dto.messages.type.ParameterType;

/**
 * The type Document parameter.
 */
@JsonInclude(Include.NON_NULL)
public class DocumentParameter extends Parameter {

    private Document document;


    /**
     * Instantiates a new Document parameter.
     */
    public DocumentParameter() {
        super(ParameterType.DOCUMENT);
    }


    /**
     * Instantiates a new Document parameter.
     *
     * @param document the document
     */
    public DocumentParameter(Document document) {
        super(ParameterType.DOCUMENT);
        this.document = document;
    }

    /**
     * Gets document.
     *
     * @return the document
     */
    public Document getDocument() {
        return document;
    }

    /**
     * Sets document.
     *
     * @param document the document
     * @return the document
     */
    public DocumentParameter setDocument(Document document) {
        this.document = document;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy