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

it.auties.whatsapp.model.sync.MediaRetryNotificationBuilder Maven / Gradle / Ivy

package it.auties.whatsapp.model.sync;

public class MediaRetryNotificationBuilder {
    private java.lang.String stanzaId;
    private java.util.Optional directPath;
    private it.auties.whatsapp.model.sync.MediaRetryNotification.MediaRetryNotificationResultType result;

    public MediaRetryNotificationBuilder() {
        stanzaId = null;
        directPath = java.util.Optional.empty();
        result = null;
    }

    public MediaRetryNotificationBuilder stanzaId(java.lang.String stanzaId) {
        this.stanzaId = stanzaId;
        return this;
    }
    public MediaRetryNotificationBuilder directPath(java.util.Optional directPath) {
        this.directPath = directPath;
        return this;
    }
    public MediaRetryNotificationBuilder directPath(java.lang.String directPath) {
        this.directPath = java.util.Optional.ofNullable(directPath);
        return this;
    }
    public MediaRetryNotificationBuilder result(it.auties.whatsapp.model.sync.MediaRetryNotification.MediaRetryNotificationResultType result) {
        this.result = result;
        return this;
    }

    public it.auties.whatsapp.model.sync.MediaRetryNotification build() {
        return new it.auties.whatsapp.model.sync.MediaRetryNotification(stanzaId, directPath, result);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy