it.auties.whatsapp.model.newsletter.NewsletterReactionSettingsBuilder Maven / Gradle / Ivy
package it.auties.whatsapp.model.newsletter;
public class NewsletterReactionSettingsBuilder {
private it.auties.whatsapp.model.newsletter.NewsletterReactionSettings.Type value;
private java.util.List blockedCodes;
private java.util.OptionalLong enabledTimestampSeconds;
public NewsletterReactionSettingsBuilder() {
value = null;
blockedCodes = new java.util.ArrayList();
enabledTimestampSeconds = java.util.OptionalLong.empty();
}
public NewsletterReactionSettingsBuilder value(it.auties.whatsapp.model.newsletter.NewsletterReactionSettings.Type value) {
this.value = value;
return this;
}
public NewsletterReactionSettingsBuilder blockedCodes(java.util.List blockedCodes) {
this.blockedCodes = blockedCodes;
return this;
}
public NewsletterReactionSettingsBuilder enabledTimestampSeconds(java.util.OptionalLong enabledTimestampSeconds) {
this.enabledTimestampSeconds = enabledTimestampSeconds;
return this;
}
public NewsletterReactionSettingsBuilder enabledTimestampSeconds(java.lang.Long enabledTimestampSeconds) {
this.enabledTimestampSeconds = it.auties.protobuf.extension.OptionalExtension.ofNullableLong(enabledTimestampSeconds);
return this;
}
public it.auties.whatsapp.model.newsletter.NewsletterReactionSettings build() {
return new it.auties.whatsapp.model.newsletter.NewsletterReactionSettings(value, blockedCodes, enabledTimestampSeconds);
}
}