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 = it.auties.protobuf.builtin.ProtobufOptionalMixin.newOptional();
}
public InteractiveButtonBuilder name(java.lang.String name) {
this.name = name;
return this;
}
public InteractiveButtonBuilder parameters(java.lang.String parameters) {
this.parameters = it.auties.protobuf.builtin.ProtobufOptionalMixin.ofOptional(parameters);
return this;
}
public it.auties.whatsapp.model.button.interactive.InteractiveButton build() {
return new it.auties.whatsapp.model.button.interactive.InteractiveButton(name, parameters);
}
}