it.auties.whatsapp.model.button.template.highlyStructured.HighlyStructuredDateTimeBuilder Maven / Gradle / Ivy
package it.auties.whatsapp.model.button.template.highlyStructured;
public class HighlyStructuredDateTimeBuilder {
private java.util.Optional dateComponent;
private java.util.Optional dateUnixEpoch;
public HighlyStructuredDateTimeBuilder() {
dateComponent = java.util.Optional.empty();
dateUnixEpoch = java.util.Optional.empty();
}
public HighlyStructuredDateTimeBuilder dateComponent(java.util.Optional dateComponent) {
this.dateComponent = dateComponent;
return this;
}
public HighlyStructuredDateTimeBuilder dateComponent(it.auties.whatsapp.model.button.template.highlyStructured.HighlyStructuredDateTimeComponent dateComponent) {
this.dateComponent = java.util.Optional.ofNullable(dateComponent);
return this;
}
public HighlyStructuredDateTimeBuilder dateUnixEpoch(java.util.Optional dateUnixEpoch) {
this.dateUnixEpoch = dateUnixEpoch;
return this;
}
public HighlyStructuredDateTimeBuilder dateUnixEpoch(it.auties.whatsapp.model.button.template.highlyStructured.HighlyStructuredDateTimeUnixEpoch dateUnixEpoch) {
this.dateUnixEpoch = java.util.Optional.ofNullable(dateUnixEpoch);
return this;
}
public it.auties.whatsapp.model.button.template.highlyStructured.HighlyStructuredDateTime build() {
return new it.auties.whatsapp.model.button.template.highlyStructured.HighlyStructuredDateTime(dateComponent, dateUnixEpoch);
}
}