com.easypost.model.SmartrateCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easypost-api-client Show documentation
Show all versions of easypost-api-client Show documentation
EasyPost Java Client Library for the EasyPost Shipping API
The newest version!
package com.easypost.model;
import java.util.ArrayList;
import java.util.List;
public final class SmartrateCollection {
private List smartrates;
/**
* Get this SmartrateCollection's Smartrate objects.
*
* @return List of Smartrate objects.
*/
public List getSmartrates() {
return this.smartrates;
}
/**
* Set this SmartrateCollection's Smartrate objects.
*
* @param smartrates List of Smartrate objects.
*/
public void setSmartrates(final List smartrates) {
this.smartrates = smartrates;
}
/**
* Constructor.
*/
public SmartrateCollection() {
this.smartrates = new ArrayList();
}
/**
* Create a SmartrateCollection from a list of rates.
*
* @param smartrates List of Smartrate objects
*/
public SmartrateCollection(final List smartrates) {
setSmartrates(smartrates);
}
/**
* Add a SmartRate object to this SmartrateCollection.
*
* @param rate Rate object
*/
public void addRate(final Smartrate rate) {
smartrates.add(rate);
}
}