package org.gitlab4j.api.webhook;

import org.gitlab4j.api.models.User;
import org.gitlab4j.api.utils.JacksonJson;

public class DeploymentEvent extends AbstractEvent {

    public static final String JOB_HOOK_X_GITLAB_EVENT = "Deployment Hook";
    public static final String OBJECT_KIND = "deployment";

    private String status;
    private String statusChanged_at;
    private Integer deployableId;
    private String deployableUrl;
    private String environment;
    private EventProject project;
    private String shortSha;
    private User user;
    private String userUrl;
    private String commitUrl;
    private String commitTitle;

    public String getObjectKind() {
        return (OBJECT_KIND);
    }

    public void setObjectKind(String objectKind) {
        if (!OBJECT_KIND.equals(objectKind))
            throw new RuntimeException("Invalid object_kind (" + objectKind + "), must be '" + OBJECT_KIND + "'");
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatusChanged_at() {
        return statusChanged_at;
    }

    public void setStatusChanged_at(String statusChanged_at) {
        this.statusChanged_at = statusChanged_at;
    }

    public Integer getDeployableId() {
        return deployableId;
    }

    public void setDeployableId(Integer deployableId) {
        this.deployableId = deployableId;
    }

    public String getDeployableUrl() {
        return deployableUrl;
    }

    public void setDeployableUrl(String deployableUrl) {
        this.deployableUrl = deployableUrl;
    }

    public String getEnvironment() {
        return environment;
    }

    public void setEnvironment(String environment) {
        this.environment = environment;
    }

    public EventProject getProject() {
        return project;
    }

    public void setProject(EventProject project) {
        this.project = project;
    }

    public String getShortSha() {
        return shortSha;
    }

    public void setShortSha(String shortSha) {
        this.shortSha = shortSha;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getUserUrl() {
        return userUrl;
    }

    public void setUserUrl(String userUrl) {
        this.userUrl = userUrl;
    }

    public String getCommitUrl() {
        return commitUrl;
    }

    public void setCommitUrl(String commitUrl) {
        this.commitUrl = commitUrl;
    }

    public String getCommitTitle() {
        return commitTitle;
    }

    public void setCommitTitle(String commitTitle) {
        this.commitTitle = commitTitle;
    }

    @Override
    public String toString() {
        return (JacksonJson.toJsonString(this));
    }
}

@@ -354,26 +354,25 @@
 tatusChanged
-_a
+A
 t;%0A    priva
@@ -1106,18 +1106,17 @@
 sChanged
-_a
+A
 t() %7B%0A  
@@ -1133,34 +1133,33 @@
 rn statusChanged
-_a
+A
 t;%0A    %7D%0A%0A    pu
@@ -1184,18 +1184,17 @@
 sChanged
-_a
+A
 t(String
@@ -1207,18 +1207,17 @@
 sChanged
-_a
+A
 t) %7B%0A   
@@ -1239,18 +1239,17 @@
 sChanged
-_a
+A
 t = stat
@@ -1261,10 +1261,9 @@
 nged
-_a
+A
 t;%0A 

rename statusChanged_at to statusChangedAt