Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Corrected status field name, and added JsonIgnore for all other fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrell committed Apr 25, 2018
1 parent 8f11d74 commit 6e549dd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.EqualsBuilder;
Expand All @@ -25,6 +26,7 @@
/**
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
public class Activity implements Serializable {

Expand Down Expand Up @@ -67,7 +69,7 @@ public class Activity implements Serializable {
/// * COMPLETE - the activity has completed without errors
/// * CANCELLED - the activity was cancelled; activities can be cancelled using the product UI only.
/// * ERROR - errors occurred when the job was run
@JsonProperty("activity_status")
@JsonProperty("status")
protected Status _status;

/// Type of activity, valid values are:
Expand Down

0 comments on commit 6e549dd

Please sign in to comment.