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

com.microsoft.bingads.v13.internal.bulk.FormatVersion 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.internal.bulk;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer;
import com.microsoft.bingads.internal.functionalinterfaces.Function;


public class FormatVersion extends BulkObject{
	
	private String value;
	
	private static final List> MAPPINGS;
	
	static {
		List> m = new ArrayList>();

        m.add(new SimpleBulkMapping(StringTable.Name,
                new Function() {
                    @Override
                    public String apply(FormatVersion c) {
                        return c.getValue();
                    }
                },
                new BiConsumer() {
                    @Override
                    public void accept(String v, FormatVersion c) {
                        c.setValue(v);
                    }
                }
        ));
        
        MAPPINGS = Collections.unmodifiableList(m);
	}
	
	@Override
    public void readFromRowValues(RowValues values) {
        MappingHelpers.convertToEntity(values, MAPPINGS, this);
    }

	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy