All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.auties.whatsapp.model.action.AgentActionBuilder Maven / Gradle / Ivy

package it.auties.whatsapp.model.action;

public class AgentActionBuilder {
    private java.util.Optional name;
    private int deviceId;
    private boolean deleted;

    public AgentActionBuilder() {
        name = java.util.Optional.empty();
        deviceId = 0;
        deleted = false;
    }

    public AgentActionBuilder name(java.util.Optional name) {
        this.name = name;
        return this;
    }
    public AgentActionBuilder name(java.lang.String name) {
        this.name = java.util.Optional.ofNullable(name);
        return this;
    }
    public AgentActionBuilder deviceId(int deviceId) {
        this.deviceId = deviceId;
        return this;
    }
    public AgentActionBuilder deleted(boolean deleted) {
        this.deleted = deleted;
        return this;
    }

    public it.auties.whatsapp.model.action.AgentAction build() {
        return new it.auties.whatsapp.model.action.AgentAction(name, deviceId, deleted);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy