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

org.zendesk.client.v2.model.CustomFieldValue Maven / Gradle / Ivy

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