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

com.revinate.sendgrid.model.IpPool Maven / Gradle / Ivy

The newest version!
package com.revinate.sendgrid.model;

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

public class IpPool extends SendGridModel implements SendGridEntity {

    private String name;
    private List ips;

    public IpPool() {
        // no args constructor for Jackson
    }

    public IpPool(String name) {
        this.name = name;
    }

    @Override
    public String getEntityId() {
        return name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPoolName(String name) {
        this.name = name;
    }

    public List getIps() {
        return ips;
    }

    public void setIps(List ips) {
        this.ips = ips;
    }

    public void addIp(Ip ip) {
        if (ips == null) {
            ips = new ArrayList();
        }
        ips.add(ip);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy