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

com.revinate.sendgrid.resource.IpWhitelabelsResource Maven / Gradle / Ivy

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

import com.revinate.sendgrid.model.IpWhitelabel;
import com.revinate.sendgrid.model.IpWhitelabelCollection;
import com.revinate.sendgrid.model.WhitelabelCollection;
import com.revinate.sendgrid.net.SendGridHttpClient;
import com.revinate.sendgrid.net.auth.Credential;

public class IpWhitelabelsResource extends CollectionResource {

    public static final ApiVersion API_VERSION = ApiVersion.V3;
    public static final String ENDPOINT = "whitelabel/ips";

    public IpWhitelabelsResource(String baseUrl, SendGridHttpClient client, Credential credential) {
        super(baseUrl, client, credential, IpWhitelabel.class, IpWhitelabelCollection.class);
    }

    public IpWhitelabelResource entity(IpWhitelabel ipWhitelabel) {
        return new IpWhitelabelResource(getUrl(), client, credential, ipWhitelabel);
    }

    public IpWhitelabelResource entity(String id) {
        return new IpWhitelabelResource(getUrl(), client, credential, id);
    }

    @Override
    protected String getEndpoint() { return ENDPOINT; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy