All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openstack4j.openstack.sahara.domain.SaharaJobExecutionInfo Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package org.openstack4j.openstack.sahara.domain;

import java.util.Date;
import java.util.List;

import org.openstack4j.model.sahara.JobExecutionAction;
import org.openstack4j.model.sahara.JobExecutionInfo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;

/**
 * For mapping JSON response to/from java objects
 *
 * @author [email protected]
 * @author [email protected]
 */

@JsonIgnoreProperties(ignoreUnknown=true)
public class SaharaJobExecutionInfo implements JobExecutionInfo {

    private static final long serialVersionUID = 1L;

    @JsonProperty("status")
    private String status;
    @JsonProperty("externalId")
    private String externalId;
    @JsonProperty("run")
    private int run; 
    @JsonProperty("startTime")
    @JsonFormat(pattern = "EEE, d MMM yyyy HH:mm:ss")
    private Date startTime; 
    @JsonProperty("appName")
    private String appName;
    @JsonProperty("lastModTime")
    @JsonFormat(pattern = "EEE, d MMM yyyy HH:mm:ss")
    private Date lastModTime;
    @JsonProperty("actions")
    private List actions;
    @JsonProperty("acl")
    private String acl;
    @JsonProperty("consoleUrl")
    private String consoleUrl;
    @JsonProperty("appPath")
    private String appPath;
    @JsonProperty("toString")
    private String toString;
    @JsonProperty("user")
    private String user;
    @JsonProperty("conf")
    private String conf;
    @JsonProperty("parentId")
    private String parentId;
    @JsonProperty("createdTime")
    @JsonFormat(pattern = "EEE, d MMM yyyy HH:mm:ss")
    private Date createdTime;
    @JsonProperty("group")
    private String group;
    @JsonProperty("endTime")
    @JsonFormat(pattern = "EEE, d MMM yyyy HH:mm:ss")
    private Date endTime;
    @JsonProperty("id")
    private String id;

    @Override
    public String getStatus() {
        return status;
    }

    @Override
    public String getExternalId() {
        return externalId;
    }

    @Override
    public int getRun() {
        return run;
    }

    @Override
    public Date getStartTime() {
        return startTime;
    }

    @Override
    public Date getEndTime() {
        return endTime;
    }

    @Override
    public String getAppName() {
        return appName;
    }

    @Override
    public Date getLastModTime() {
        return lastModTime;
    }

    @Override
    public List getActions() {
        return actions;
    }

    @Override
    public String getAcl() {
        return acl;
    }

    @Override
    public String getConsoleUrl() {
        return consoleUrl;
    }

    @Override
    public String getAppPath() {
        return appPath;
    }

    @Override
    public String getToString() {
        return toString;
    }

    @Override
    public String getUser() {
        return user;
    }

    @Override
    public String getConf() {
        return conf;
    }

    @Override
    public String getParentId() {
        return parentId;
    }

    @Override
    public Date getCreatedTime() {
        return createdTime;
    }

    @Override
    public String getGroup() {
        return group;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public String toString() {
        return Objects.toStringHelper(this).omitNullValues()
                   .add("status", status)
                   .add("externalId", externalId)
                   .add("run", run)
                   .add("startTime", startTime)
                   .add("appName", appName)
                   .add("lastModTime", lastModTime)
                   .add("actions", actions)
                   .add("acl", acl)
                   .add("consoleUrl", consoleUrl)
                   .add("appPath", appPath)
                   .add("toString", toString)
                   .add("user", user)
                   .add("conf", conf)
                   .add("parentId", parentId)
                   .add("createdTime", createdTime)
                   .add("group", group)
                   .add("group", group)
                   .add("id", id)
                   .toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy