it.auties.whatsapp.model.button.template.highlyStructured.HighlyStructuredMessageBuilder Maven / Gradle / Ivy
package it.auties.whatsapp.model.button.template.highlyStructured;
public class HighlyStructuredMessageBuilder {
private java.lang.String namespace;
private java.lang.String elementName;
private java.util.List params;
private java.util.Optional fallbackLg;
private java.util.Optional fallbackLc;
private java.util.List localizableParameters;
private java.util.Optional deterministicLg;
private java.util.Optional deterministicLc;
private it.auties.whatsapp.model.message.button.TemplateMessage templateMessage;
public HighlyStructuredMessageBuilder() {
namespace = null;
elementName = null;
params = new java.util.ArrayList();
fallbackLg = java.util.Optional.empty();
fallbackLc = java.util.Optional.empty();
localizableParameters = new java.util.ArrayList();
deterministicLg = java.util.Optional.empty();
deterministicLc = java.util.Optional.empty();
templateMessage = null;
}
public HighlyStructuredMessageBuilder namespace(java.lang.String namespace) {
this.namespace = namespace;
return this;
}
public HighlyStructuredMessageBuilder elementName(java.lang.String elementName) {
this.elementName = elementName;
return this;
}
public HighlyStructuredMessageBuilder params(java.util.List params) {
this.params = params;
return this;
}
public HighlyStructuredMessageBuilder fallbackLg(java.util.Optional fallbackLg) {
this.fallbackLg = fallbackLg;
return this;
}
public HighlyStructuredMessageBuilder fallbackLg(java.lang.String fallbackLg) {
this.fallbackLg = java.util.Optional.ofNullable(fallbackLg);
return this;
}
public HighlyStructuredMessageBuilder fallbackLc(java.util.Optional fallbackLc) {
this.fallbackLc = fallbackLc;
return this;
}
public HighlyStructuredMessageBuilder fallbackLc(java.lang.String fallbackLc) {
this.fallbackLc = java.util.Optional.ofNullable(fallbackLc);
return this;
}
public HighlyStructuredMessageBuilder localizableParameters(java.util.List localizableParameters) {
this.localizableParameters = localizableParameters;
return this;
}
public HighlyStructuredMessageBuilder deterministicLg(java.util.Optional deterministicLg) {
this.deterministicLg = deterministicLg;
return this;
}
public HighlyStructuredMessageBuilder deterministicLg(java.lang.String deterministicLg) {
this.deterministicLg = java.util.Optional.ofNullable(deterministicLg);
return this;
}
public HighlyStructuredMessageBuilder deterministicLc(java.util.Optional deterministicLc) {
this.deterministicLc = deterministicLc;
return this;
}
public HighlyStructuredMessageBuilder deterministicLc(java.lang.String deterministicLc) {
this.deterministicLc = java.util.Optional.ofNullable(deterministicLc);
return this;
}
public HighlyStructuredMessageBuilder templateMessage(it.auties.whatsapp.model.message.button.TemplateMessage templateMessage) {
this.templateMessage = templateMessage;
return this;
}
public it.auties.whatsapp.model.button.template.highlyStructured.HighlyStructuredMessage build() {
return new it.auties.whatsapp.model.button.template.highlyStructured.HighlyStructuredMessage(namespace, elementName, params, fallbackLg, fallbackLc, localizableParameters, deterministicLg, deterministicLc, templateMessage);
}
}