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

com.microsoft.bingads.v13.bulk.BulkOperationStatus Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 13.0.22.1
Show newest version
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;
    }   
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy