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

br.com.moip.request.NotificationPreferenceRequest Maven / Gradle / Ivy

There is a newer version: 4.7.6
Show newest version
package br.com.moip.request;

import java.util.ArrayList;
import java.util.List;

public class NotificationPreferenceRequest {

    private List events = new ArrayList();
    private String target;
    private final String media = "WEBHOOK";

    public NotificationPreferenceRequest addEvent(String event) {
        events.add(event);

        return this;
    }

    public List getEvents() {
        return events;
    }

    public NotificationPreferenceRequest target(String target) {
        this.target = target;

        return this;
    }

    public String getTarget() {
        return target;
    }

    public String getMedia() {
        return media;
    }

    @Override
    public String toString() {
        return new StringBuilder("NotificationPreferenceRequest{")
            .append("events=").append(events)
            .append("target='").append(target).append('\'')
            .append("media'=").append(media).append('\'')
            .append("}").toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy