com.bandwidth.iris.sdk.model.LineOptionOrder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-java-iris-sdk Show documentation
Show all versions of bandwidth-java-iris-sdk Show documentation
Java SDK for use with the IRIS API.
package com.bandwidth.iris.sdk.model;
import com.bandwidth.iris.sdk.IrisClient;
import com.bandwidth.iris.sdk.IrisPath;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;
@XmlRootElement(name = "LineOptionOrder")
@XmlAccessorType(XmlAccessType.FIELD)
public class LineOptionOrder extends BaseModel {
@XmlElement(name = "TnLineOptions")
private List lineOptions = new ArrayList();
public static LineOptionOrderResponse create(IrisClient client, LineOptionOrder order) throws Exception {
LineOptionOrderResponse orderResponse = client
.post(client.buildAccountModelUri(new String[] { IrisPath.LINE_OPTION_ORDER_URI_PATH }), order,
LineOptionOrderResponse.class);
return orderResponse;
}
public List getLineOptions() {
return lineOptions;
}
public void setLineOptions(List lineOptions) {
this.lineOptions = lineOptions;
}
}