com.microsoft.bingads.v13.bulk.BulkOperationStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microsoft.bingads Show documentation
Show all versions of microsoft.bingads Show documentation
The Bing Ads Java SDK is a library improving developer experience when working with the Bing Ads services by providing high-level access to features such as Bulk API, OAuth Authorization and SOAP API.
package com.microsoft.bingads.v13.bulk;
import java.util.List;
/**
* Contains tracking details about the results and status of the corresponding bulk operation.
*
* @param the type of operation status
*/
public class BulkOperationStatus {
private final TStatus status;
private final int percentComplete;
private final String resultFileUrl;
private final String trackingId;
private final List errors;
public BulkOperationStatus(TStatus status, int percentComplete, String resultFileUrl, String trackingId, List errors) {
this.status = status;
this.percentComplete = percentComplete;
this.resultFileUrl = resultFileUrl;
this.trackingId = trackingId;
this.errors = errors;
}
/**
* Gets current status of the operation.
*/
public TStatus getStatus() {
return status;
}
/**
* Gets progress of the operation in percent.
*/
public int getPercentComplete() {
return percentComplete;
}
/**
* Gets the result file URL for the operation.
*/
public String getResultFileUrl() {
return resultFileUrl;
}
/**
* Gets the tracking Id for the operation.
*/
public String getTrackingId() {
return this.trackingId;
}
/**
* Gets the list of errors for the operation.
*/
public List getErrors() {
return errors;
}
}