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

it.auties.whatsapp.model.info.ExternalAdReplyInfoBuilder Maven / Gradle / Ivy

package it.auties.whatsapp.model.info;

public class ExternalAdReplyInfoBuilder {
    private java.util.Optional title;
    private java.util.Optional body;
    private java.util.Optional mediaType;
    private java.util.Optional thumbnailUrl;
    private java.util.Optional mediaUrl;
    private java.util.Optional thumbnail;
    private java.util.Optional sourceType;
    private java.util.Optional sourceId;
    private java.util.Optional sourceUrl;
    private boolean containsAutoReply;
    private boolean renderLargerThumbnail;
    private boolean showAdAttribution;
    private java.util.Optional ctwaClid;

    public ExternalAdReplyInfoBuilder() {
        title = java.util.Optional.empty();
        body = java.util.Optional.empty();
        mediaType = java.util.Optional.empty();
        thumbnailUrl = java.util.Optional.empty();
        mediaUrl = java.util.Optional.empty();
        thumbnail = java.util.Optional.empty();
        sourceType = java.util.Optional.empty();
        sourceId = java.util.Optional.empty();
        sourceUrl = java.util.Optional.empty();
        containsAutoReply = false;
        renderLargerThumbnail = false;
        showAdAttribution = false;
        ctwaClid = java.util.Optional.empty();
    }

    public ExternalAdReplyInfoBuilder title(java.util.Optional title) {
        this.title = title;
        return this;
    }
    public ExternalAdReplyInfoBuilder title(java.lang.String title) {
        this.title = java.util.Optional.ofNullable(title);
        return this;
    }
    public ExternalAdReplyInfoBuilder body(java.util.Optional body) {
        this.body = body;
        return this;
    }
    public ExternalAdReplyInfoBuilder body(java.lang.String body) {
        this.body = java.util.Optional.ofNullable(body);
        return this;
    }
    public ExternalAdReplyInfoBuilder mediaType(java.util.Optional mediaType) {
        this.mediaType = mediaType;
        return this;
    }
    public ExternalAdReplyInfoBuilder mediaType(it.auties.whatsapp.model.info.ExternalAdReplyInfo.MediaType mediaType) {
        this.mediaType = java.util.Optional.ofNullable(mediaType);
        return this;
    }
    public ExternalAdReplyInfoBuilder thumbnailUrl(java.util.Optional thumbnailUrl) {
        this.thumbnailUrl = thumbnailUrl;
        return this;
    }
    public ExternalAdReplyInfoBuilder thumbnailUrl(java.lang.String thumbnailUrl) {
        this.thumbnailUrl = java.util.Optional.ofNullable(thumbnailUrl);
        return this;
    }
    public ExternalAdReplyInfoBuilder mediaUrl(java.util.Optional mediaUrl) {
        this.mediaUrl = mediaUrl;
        return this;
    }
    public ExternalAdReplyInfoBuilder mediaUrl(java.lang.String mediaUrl) {
        this.mediaUrl = java.util.Optional.ofNullable(mediaUrl);
        return this;
    }
    public ExternalAdReplyInfoBuilder thumbnail(java.util.Optional thumbnail) {
        this.thumbnail = thumbnail;
        return this;
    }
    public ExternalAdReplyInfoBuilder thumbnail(byte[] thumbnail) {
        this.thumbnail = java.util.Optional.ofNullable(thumbnail);
        return this;
    }
    public ExternalAdReplyInfoBuilder sourceType(java.util.Optional sourceType) {
        this.sourceType = sourceType;
        return this;
    }
    public ExternalAdReplyInfoBuilder sourceType(java.lang.String sourceType) {
        this.sourceType = java.util.Optional.ofNullable(sourceType);
        return this;
    }
    public ExternalAdReplyInfoBuilder sourceId(java.util.Optional sourceId) {
        this.sourceId = sourceId;
        return this;
    }
    public ExternalAdReplyInfoBuilder sourceId(java.lang.String sourceId) {
        this.sourceId = java.util.Optional.ofNullable(sourceId);
        return this;
    }
    public ExternalAdReplyInfoBuilder sourceUrl(java.util.Optional sourceUrl) {
        this.sourceUrl = sourceUrl;
        return this;
    }
    public ExternalAdReplyInfoBuilder sourceUrl(java.lang.String sourceUrl) {
        this.sourceUrl = java.util.Optional.ofNullable(sourceUrl);
        return this;
    }
    public ExternalAdReplyInfoBuilder containsAutoReply(boolean containsAutoReply) {
        this.containsAutoReply = containsAutoReply;
        return this;
    }
    public ExternalAdReplyInfoBuilder renderLargerThumbnail(boolean renderLargerThumbnail) {
        this.renderLargerThumbnail = renderLargerThumbnail;
        return this;
    }
    public ExternalAdReplyInfoBuilder showAdAttribution(boolean showAdAttribution) {
        this.showAdAttribution = showAdAttribution;
        return this;
    }
    public ExternalAdReplyInfoBuilder ctwaClid(java.util.Optional ctwaClid) {
        this.ctwaClid = ctwaClid;
        return this;
    }
    public ExternalAdReplyInfoBuilder ctwaClid(java.lang.String ctwaClid) {
        this.ctwaClid = java.util.Optional.ofNullable(ctwaClid);
        return this;
    }

    public it.auties.whatsapp.model.info.ExternalAdReplyInfo build() {
        return new it.auties.whatsapp.model.info.ExternalAdReplyInfo(title, body, mediaType, thumbnailUrl, mediaUrl, thumbnail, sourceType, sourceId, sourceUrl, containsAutoReply, renderLargerThumbnail, showAdAttribution, ctwaClid);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy