com.microsoft.bingads.v13.bulk.entities.EntityInfo 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.entities;
import com.microsoft.bingads.v13.internal.bulk.Creator;
import com.microsoft.bingads.v13.internal.bulk.entities.BulkEntityIdentifier;
import com.microsoft.bingads.v13.internal.bulk.entities.SingleRecordBulkEntity;
/**
* Encapsulates the information and creators required for instantiation of blank
* entities of various types
*
*/
class EntityInfo {
private Creator creator;
private String deleteAllColumnName;
private Creator identifierCreator;
/**
* Initializes a new instance of the EntityInfo class.
*
* @param creator A function which creates a instance of the encapsulated
* object
*/
public EntityInfo(Creator creator) {
this(creator, null, null);
}
/**
* Initializes a new instance of the EntityInfo class.
*
* @param creator A function which creates a instance of the encapsulated
* object
* @param deleteAllColumnName The name of the column which indicates whether
* to delete all
*/
public EntityInfo(Creator creator, String deleteAllColumnName) {
this(creator, deleteAllColumnName, null);
}
/**
* Initializes a new instance of the EntityInfo class.
*
* @param creator A function which creates a instance of the encapsulated
* object
* @param deleteAllColumnName The name of the column which indicates whether
* to delete all
* @param identifierCreator A function which creates a instance of an
* identifier for the encapsulated object
*/
public EntityInfo(Creator creator, String deleteAllColumnName, Creator identifierCreator) {
this.creator = creator;
this.deleteAllColumnName = deleteAllColumnName;
this.identifierCreator = identifierCreator;
}
public Creator getCreator() {
return creator;
}
public void setCreator(Creator creator) {
this.creator = creator;
}
public String getDeleteAllColumnName() {
return deleteAllColumnName;
}
public void setDeleteAllColumnName(String deleteAllColumnName) {
this.deleteAllColumnName = deleteAllColumnName;
}
public Creator getIdentifierCreator() {
return identifierCreator;
}
public void setIdentifierCreator(Creator identifierCreator) {
this.identifierCreator = identifierCreator;
}
}