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;
    }
}

@@ -725,32 +725,80 @@
 nterval;%0A       
+ this.target = target;%0A        if (span != null)
  this.span = spa
@@ -800,37 +800,36 @@
 = span;%0A        
-this.
+if (
 threshold = thre
@@ -826,49 +826,43 @@
 old 
+!
 = 
-threshold;%0A        this.target = target
+null) this.threshold = threshold
 ;%0A  

Check for null values when setting primitives.