package com.auth0.json.mgmt.jobs;

import com.fasterxml.jackson.annotation.*;

import java.util.Date;

/**
 * Class that represents an Auth0 Job object. Related to the {@link com.auth0.client.mgmt.JobsEntity} entity.
 */
@SuppressWarnings({"unused", "WeakerAccess"})
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Job {

    @JsonProperty("status")
    private String status;
    @JsonProperty("type")
    private String type;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @JsonProperty("created_at")
    private Date createdAt;
    @JsonProperty("id")
    private String id;

    @JsonCreator
    private Job(@JsonProperty("status") String status, @JsonProperty("type") String type, @JsonProperty("id") String id) {
        this.status = status;
        this.type = type;
        this.id = id;
    }

    @JsonProperty("status")
    public String getStatus() {
        return status;
    }

    @JsonProperty("type")
    public String getType() {
        return type;
    }

    @JsonProperty("created_at")
    public Date getCreatedAt() {
        return createdAt;
    }

    @JsonProperty("id")
    public String getId() {
        return id;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @JsonProperty("created_at")
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
}

@@ -1063,32 +1063,123 @@
 rn type;%0A    %7D%0A%0A
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = %22yyyy-MM-dd'T'HH:mm:ss.SSS'Z'%22)%0A
     @JsonPropert
@@ -1186,32 +1186,32 @@
 y(%22created_at%22)%0A
-
     public Date 
@@ -1308,24 +1308,24 @@
 g getId() %7B%0A
+
         retu
@@ -1340,220 +1340,7 @@
    %7D
-%0A%0A    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = %22yyyy-MM-dd'T'HH:mm:ss.SSS'Z'%22)%0A    @JsonProperty(%22created_at%22)%0A    public void setCreatedAt(Date createdAt) %7B%0A        this.createdAt = createdAt;%0A    %7D
 %0A%7D%0A

Remove create_at setter