com.microsoft.bingads.v13.bulk.EntityUploadParameters Maven / Gradle / Ivy
package com.microsoft.bingads.v13.bulk;
import java.io.File;
import com.microsoft.bingads.v13.bulk.entities.BulkEntity;
/**
* Describes the available parameters when submitting entities for upload, such as the entities that you want to upload.
*/
public class EntityUploadParameters {
private Iterable entities;
private ResponseMode responseMode;
private File resultFileDirectory;
private String resultFileName;
private boolean overwriteResultFile;
private boolean autoDeleteTempFile;
/**
* Initializes a new instance of this class.
*/
public EntityUploadParameters() {
responseMode = ResponseMode.ERRORS_AND_RESULTS;
}
/**
* Gets whether the bulk service should return success and error results or only error results.
*/
public ResponseMode getResponseMode() {
return responseMode;
}
/**
* Sets whether the bulk service should return success and error results or only error results.
*/
public void setResponseMode(ResponseMode responseMode) {
this.responseMode = responseMode;
}
/**
* Gets the list of bulk entities that you want to upload.
*/
public Iterable getEntities() {
return this.entities;
}
/**
* Sets the list of bulk entities that you want to upload.
*/
public void setEntities(Iterable entities) {
this.entities = entities;
}
/**
* Gets the directory where the result file will be downloaded.
*/
public File getResultFileDirectory() {
return resultFileDirectory;
}
/**
* Sets the directory where the result file will be downloaded.
*/
public void setResultFileDirectory(File resultFileDirectory) {
this.resultFileDirectory = resultFileDirectory;
}
/**
* Gets the name of the local result file.
*/
public String getResultFileName() {
return resultFileName;
}
/**
* Sets the name of the local result file.
*/
public void setResultFileName(String resultFileName) {
this.resultFileName = resultFileName;
}
/**
* Gets whether the local result file should be overwritten if it already exists.
*/
public boolean getOverwriteResultFile() {
return overwriteResultFile;
}
/**
* Sets whether the local result file should be overwritten if it already exists.
*/
public void setOverwriteResultFile(boolean overwriteResultFile) {
this.overwriteResultFile = overwriteResultFile;
}
/**
* Gets whether the temporary upload file should be deleted.
*/
public boolean getAutoDeleteTempFile() {
return autoDeleteTempFile;
}
/**
* Sets whether the temporary upload file should be deleted.
*/
public void setAutoDeleteTempFile(boolean autoDeleteTempFile) {
this.autoDeleteTempFile = autoDeleteTempFile;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy