it.auties.whatsapp.model.button.interactive.InteractiveButtonBuilder Maven / Gradle / Ivy
package it.auties.whatsapp.model.button.interactive;
public class InteractiveButtonBuilder {
private java.lang.String name;
private java.util.Optional parameters;
public InteractiveButtonBuilder() {
name = null;
parameters = java.util.Optional.empty();
}
public InteractiveButtonBuilder name(java.lang.String name) {
this.name = name;
return this;
}
public InteractiveButtonBuilder parameters(java.util.Optional parameters) {
this.parameters = parameters;
return this;
}
public InteractiveButtonBuilder parameters(java.lang.String parameters) {
this.parameters = java.util.Optional.ofNullable(parameters);
return this;
}
public it.auties.whatsapp.model.button.interactive.InteractiveButton build() {
return new it.auties.whatsapp.model.button.interactive.InteractiveButton(name, parameters);
}
}