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

com.buyexpressly.api.resource.merchant.EmailStatusListResponse Maven / Gradle / Ivy

Go to download

Expressly Java SDK to integrate e-commerce platforms with the Expressly Network API

There is a newer version: 2.3.1
Show newest version
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);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy