com.buyexpressly.api.resource.merchant.EmailStatusListResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-sdk Show documentation
Show all versions of plugin-sdk Show documentation
Expressly Java SDK to integrate e-commerce platforms with the Expressly Network API
package com.buyexpressly.api.resource.merchant;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonMethod;
import java.util.Collections;
import java.util.List;
@JsonAutoDetect(value = JsonMethod.FIELD, fieldVisibility = JsonAutoDetect.Visibility.ANY)
public final class EmailStatusListResponse {
private final List existing;
private final List pending;
private final List deleted;
private EmailStatusListResponse(Builder builder) {
this.existing = Collections.unmodifiableList(builder.existing);
this.pending = Collections.unmodifiableList(builder.pending);
this.deleted = Collections.unmodifiableList(builder.deleted);
}
public static Builder builder() {
return new Builder();
}
public static final class Builder {
private List existing;
private List pending;
private List deleted;
public Builder addExisting(List existing) {
this.existing = existing;
return this;
}
public Builder addPending(List pending) {
this.pending = pending;
return this;
}
public Builder addDeleted(List deleted) {
this.deleted = deleted;
return this;
}
public EmailStatusListResponse build() {
return new EmailStatusListResponse(this);
}
}
}