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

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

package net.optionfactory.whatsapp.dto.messages;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * The type Media message.
 *
 * @param  the type parameter
 * @see Media Object
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MediaMessage> {

    @JsonProperty("id")
    private String id;
    @JsonProperty("link")
    private String link;


    /**
     * Gets id.
     *
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id Required when type is audio, document, image, sticker, or video and you are not using a link.
     * @return the id
     */
    @SuppressWarnings("unchecked")
    public T setId(String id) {
        this.id = id;
        return (T) this;
    }

    /**
     * Gets link.
     *
     * @return the link
     */
    public String getLink() {
        return link;
    }

    /**
     * Sets link.
     *
     * @param link Required when type is audio, document, image, sticker, or video and you are not using an uploaded media ID (i.e. you are hosting the media asset on your public server).
     *             The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs.
     * @return the link
     */
    @SuppressWarnings("unchecked")
    public T setLink(String link) {
        this.link = link;
        return (T) this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy