it.auties.whatsapp.model.button.template.hydrated.HydratedFourRowTemplateBuilder Maven / Gradle / Ivy
package it.auties.whatsapp.model.button.template.hydrated;
public class HydratedFourRowTemplateBuilder {
private java.util.Optional titleDocument;
private java.util.Optional titleText;
private java.util.Optional titleImage;
private java.util.Optional titleVideo;
private java.util.Optional titleLocation;
private java.lang.String body;
private java.util.Optional footer;
private java.util.List hydratedButtons;
private java.lang.String templateId;
public HydratedFourRowTemplateBuilder() {
titleDocument = java.util.Optional.empty();
titleText = java.util.Optional.empty();
titleImage = java.util.Optional.empty();
titleVideo = java.util.Optional.empty();
titleLocation = java.util.Optional.empty();
body = null;
footer = java.util.Optional.empty();
hydratedButtons = new java.util.ArrayList();
templateId = null;
}
public HydratedFourRowTemplateBuilder titleDocument(java.util.Optional titleDocument) {
this.titleDocument = titleDocument;
return this;
}
public HydratedFourRowTemplateBuilder titleDocument(it.auties.whatsapp.model.message.standard.DocumentMessage titleDocument) {
this.titleDocument = java.util.Optional.ofNullable(titleDocument);
return this;
}
public HydratedFourRowTemplateBuilder titleText(java.util.Optional titleText) {
this.titleText = titleText;
return this;
}
public HydratedFourRowTemplateBuilder titleText(it.auties.whatsapp.model.button.template.hydrated.HydratedFourRowTemplateTextTitle titleText) {
this.titleText = java.util.Optional.ofNullable(titleText);
return this;
}
public HydratedFourRowTemplateBuilder titleImage(java.util.Optional titleImage) {
this.titleImage = titleImage;
return this;
}
public HydratedFourRowTemplateBuilder titleImage(it.auties.whatsapp.model.message.standard.ImageMessage titleImage) {
this.titleImage = java.util.Optional.ofNullable(titleImage);
return this;
}
public HydratedFourRowTemplateBuilder titleVideo(java.util.Optional titleVideo) {
this.titleVideo = titleVideo;
return this;
}
public HydratedFourRowTemplateBuilder titleVideo(it.auties.whatsapp.model.message.standard.VideoOrGifMessage titleVideo) {
this.titleVideo = java.util.Optional.ofNullable(titleVideo);
return this;
}
public HydratedFourRowTemplateBuilder titleLocation(java.util.Optional titleLocation) {
this.titleLocation = titleLocation;
return this;
}
public HydratedFourRowTemplateBuilder titleLocation(it.auties.whatsapp.model.message.standard.LocationMessage titleLocation) {
this.titleLocation = java.util.Optional.ofNullable(titleLocation);
return this;
}
public HydratedFourRowTemplateBuilder body(java.lang.String body) {
this.body = body;
return this;
}
public HydratedFourRowTemplateBuilder footer(java.util.Optional footer) {
this.footer = footer;
return this;
}
public HydratedFourRowTemplateBuilder footer(java.lang.String footer) {
this.footer = java.util.Optional.ofNullable(footer);
return this;
}
public HydratedFourRowTemplateBuilder hydratedButtons(java.util.List hydratedButtons) {
this.hydratedButtons = hydratedButtons;
return this;
}
public HydratedFourRowTemplateBuilder templateId(java.lang.String templateId) {
this.templateId = templateId;
return this;
}
public it.auties.whatsapp.model.button.template.hydrated.HydratedFourRowTemplate build() {
return new it.auties.whatsapp.model.button.template.hydrated.HydratedFourRowTemplate(titleDocument, titleText, titleImage, titleVideo, titleLocation, body, footer, hydratedButtons, templateId);
}
}