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

com.podio.item.FieldValuesUpdate Maven / Gradle / Ivy

There is a newer version: 0.7.9
Show newest version
package com.podio.item;

import java.util.Collections;
import java.util.List;
import java.util.Map;

import org.codehaus.jackson.annotate.JsonProperty;

public class FieldValuesUpdate {

	/**
	 * The id of the field
	 */
	private Integer id;

	/**
	 * The external id of the field
	 */
	private String externalId;

	/**
	 * The values
	 */
	private List> values;

	public FieldValuesUpdate() {
		super();
	}

	public FieldValuesUpdate(int id, List> values) {
		super();
		this.id = id;
		this.values = values;
	}

	public FieldValuesUpdate(int id, Map value) {
		super();
		this.id = id;
		this.values = Collections.> singletonList(value);
	}

	public FieldValuesUpdate(int id, String subId, Object value) {
		super();
		this.id = id;
		this.values = Collections.> singletonList(Collections
				.singletonMap(subId, value));
	}

	public FieldValuesUpdate(String externalId, List> values) {
		super();
		this.externalId = externalId;
		this.values = values;
	}

	public FieldValuesUpdate(String externalId, Map value) {
		super();
		this.externalId = externalId;
		this.values = Collections.> singletonList(value);
	}

	public FieldValuesUpdate(String externalId, String subId, Object value) {
		super();
		this.externalId = externalId;
		this.values = Collections.> singletonList(Collections
				.singletonMap(subId, value));
	}

	@JsonProperty("field_id")
	public Integer getId() {
		return id;
	}

	@JsonProperty("field_id")
	public void setId(Integer fieldId) {
		this.id = fieldId;
	}

	@JsonProperty("external_id")
	public String getExternalId() {
		return externalId;
	}

	@JsonProperty("external_id")
	public void setExternalId(String externalId) {
		this.externalId = externalId;
	}

	public List> getValues() {
		return values;
	}

	public void setValues(List> values) {
		this.values = values;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy