
org.zendesk.client.v2.model.CustomFieldValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zendesk-java-client Show documentation
Show all versions of zendesk-java-client Show documentation
Java client for the Zendesk API
The newest version!
package org.zendesk.client.v2.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.io.Serializable;
import java.util.Arrays;
/**
* @author stephenc
* @since 04/04/2013 14:53
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class CustomFieldValue implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
@JsonFormat(
with = {
JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY,
JsonFormat.Feature.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED
})
private String[] value;
public CustomFieldValue() {}
public CustomFieldValue(Long id, String[] value) {
this.id = id;
this.value = value;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String[] getValue() {
return value;
}
public void setValue(String[] value) {
this.value = value;
}
@Override
public String toString() {
return "CustomFieldValue{" + "id=" + id + ", value=" + Arrays.toString(value) + '}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy