br.com.moip.request.NotificationPreferenceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Moip v2 APIs
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();
}
}