package com.datasift.client.pylon;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

public class PylonParametersData {
    @JsonProperty
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    protected String interval;
    @JsonProperty
    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
    protected float span;
    @JsonProperty
    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
    protected int threshold;
    @JsonProperty
    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
    protected String target;

    public PylonParametersData() { }

    public PylonParametersData(String interval, Float span, Integer threshold, String target) {
        this.interval = interval;
        this.span = span;
        this.threshold = threshold;
        this.target = target;
    }

    public Float getSpan() {
        return this.span;
    }

    public Integer getThreshold() {
        return this.threshold;
    }

    public String getTarget() {
        return this.target;
    }

    public void setInterval(String interval) {
        this.interval = interval;
    }

    public void setSpan(Float span) {
        this.span = span;
    }

    public void setThreshold(Integer threshold) {
        this.threshold = threshold;
    }

    public void setTarget(String target) {
        this.target = target;
    }
}

package com.datasift.client.pylon;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

public class PylonParametersData {
    @JsonProperty
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    protected String interval;
    @JsonProperty
    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
    protected float span;
    @JsonProperty
    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
    protected int threshold;
    @JsonProperty
    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
    protected String target;

    public PylonParametersData() { }

    public PylonParametersData(String interval, Float span, Integer threshold, String target) {
        this.interval = interval;
        this.target = target;
        if (span != null) this.span = span;
        if (threshold != null) this.threshold = threshold;
    }

    public Float getSpan() {
        return this.span;
    }

    public Integer getThreshold() {
        return this.threshold;
    }

    public String getTarget() {
        return this.target;
    }

    public void setInterval(String interval) {
        this.interval = interval;
    }

    public void setSpan(Float span) {
        this.span = span;
    }

    public void setThreshold(Integer threshold) {
        this.threshold = threshold;
    }

    public void setTarget(String target) {
        this.target = target;
    }
}

Check for null values when setting primitives.
Check for null values when setting primitives.
