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

io.deepsense.neptune.apiclient.model.JobSimpleView Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
/**
 * Neptune API
 * Neptune API
 *
 * OpenAPI spec version: 1.4_c9e4693-SNAPSHOT
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


package io.deepsense.neptune.apiclient.model;

import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import io.deepsense.neptune.apiclient.model.ChannelWithValue;
import io.deepsense.neptune.apiclient.model.JobState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;


/**
 * JobSimpleView
 */
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T18:25:08.092+01:00")
public class JobSimpleView   {
  @SerializedName("id")
  private String id = null;

  @SerializedName("name")
  private String name = null;

  @SerializedName("description")
  private String description = "";

  @SerializedName("project")
  private String project = "";

  @SerializedName("owner")
  private String owner = null;

  @SerializedName("timeOfCreation")
  private OffsetDateTime timeOfCreation = null;

  @SerializedName("timeOfCompletion")
  private OffsetDateTime timeOfCompletion = null;

  @SerializedName("state")
  private JobState state = null;

  @SerializedName("responding")
  private Boolean responding = null;

  @SerializedName("tags")
  private List tags = new ArrayList();

  @SerializedName("channelsLastValues")
  private List channelsLastValues = new ArrayList();

  @SerializedName("archived")
  private Boolean archived = null;

  @SerializedName("trashed")
  private Boolean trashed = null;

  @SerializedName("size")
  private Long size = null;

  public JobSimpleView id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public JobSimpleView name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public JobSimpleView description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Get description
   * @return description
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public JobSimpleView project(String project) {
    this.project = project;
    return this;
  }

   /**
   * Get project
   * @return project
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getProject() {
    return project;
  }

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

  public JobSimpleView owner(String owner) {
    this.owner = owner;
    return this;
  }

   /**
   * Get owner
   * @return owner
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getOwner() {
    return owner;
  }

  public void setOwner(String owner) {
    this.owner = owner;
  }

  public JobSimpleView timeOfCreation(OffsetDateTime timeOfCreation) {
    this.timeOfCreation = timeOfCreation;
    return this;
  }

   /**
   * Get timeOfCreation
   * @return timeOfCreation
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public OffsetDateTime getTimeOfCreation() {
    return timeOfCreation;
  }

  public void setTimeOfCreation(OffsetDateTime timeOfCreation) {
    this.timeOfCreation = timeOfCreation;
  }

  public JobSimpleView timeOfCompletion(OffsetDateTime timeOfCompletion) {
    this.timeOfCompletion = timeOfCompletion;
    return this;
  }

   /**
   * Present only when the job is completed
   * @return timeOfCompletion
  **/
  @ApiModelProperty(example = "null", value = "Present only when the job is completed")
  public OffsetDateTime getTimeOfCompletion() {
    return timeOfCompletion;
  }

  public void setTimeOfCompletion(OffsetDateTime timeOfCompletion) {
    this.timeOfCompletion = timeOfCompletion;
  }

  public JobSimpleView state(JobState state) {
    this.state = state;
    return this;
  }

   /**
   * Get state
   * @return state
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public JobState getState() {
    return state;
  }

  public void setState(JobState state) {
    this.state = state;
  }

  public JobSimpleView responding(Boolean responding) {
    this.responding = responding;
    return this;
  }

   /**
   * Whether the connection between the job and the server is working.
   * @return responding
  **/
  @ApiModelProperty(example = "null", required = true, value = "Whether the connection between the job and the server is working.")
  public Boolean getResponding() {
    return responding;
  }

  public void setResponding(Boolean responding) {
    this.responding = responding;
  }

  public JobSimpleView tags(List tags) {
    this.tags = tags;
    return this;
  }

   /**
   * Get tags
   * @return tags
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public List getTags() {
    return tags;
  }

  public void setTags(List tags) {
    this.tags = tags;
  }

  public JobSimpleView channelsLastValues(List channelsLastValues) {
    this.channelsLastValues = channelsLastValues;
    return this;
  }

   /**
   * Get channelsLastValues
   * @return channelsLastValues
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public List getChannelsLastValues() {
    return channelsLastValues;
  }

  public void setChannelsLastValues(List channelsLastValues) {
    this.channelsLastValues = channelsLastValues;
  }

  public JobSimpleView archived(Boolean archived) {
    this.archived = archived;
    return this;
  }

   /**
   * Whether the job is archived.
   * @return archived
  **/
  @ApiModelProperty(example = "null", required = true, value = "Whether the job is archived.")
  public Boolean getArchived() {
    return archived;
  }

  public void setArchived(Boolean archived) {
    this.archived = archived;
  }

  public JobSimpleView trashed(Boolean trashed) {
    this.trashed = trashed;
    return this;
  }

   /**
   * Whether the job is trashed.
   * @return trashed
  **/
  @ApiModelProperty(example = "null", required = true, value = "Whether the job is trashed.")
  public Boolean getTrashed() {
    return trashed;
  }

  public void setTrashed(Boolean trashed) {
    this.trashed = trashed;
  }

  public JobSimpleView size(Long size) {
    this.size = size;
    return this;
  }

   /**
   * The size of all images from image channels in bytes.
   * @return size
  **/
  @ApiModelProperty(example = "null", required = true, value = "The size of all images from image channels in bytes.")
  public Long getSize() {
    return size;
  }

  public void setSize(Long size) {
    this.size = size;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    JobSimpleView jobSimpleView = (JobSimpleView) o;
    return Objects.equals(this.id, jobSimpleView.id) &&
        Objects.equals(this.name, jobSimpleView.name) &&
        Objects.equals(this.description, jobSimpleView.description) &&
        Objects.equals(this.project, jobSimpleView.project) &&
        Objects.equals(this.owner, jobSimpleView.owner) &&
        Objects.equals(this.timeOfCreation, jobSimpleView.timeOfCreation) &&
        Objects.equals(this.timeOfCompletion, jobSimpleView.timeOfCompletion) &&
        Objects.equals(this.state, jobSimpleView.state) &&
        Objects.equals(this.responding, jobSimpleView.responding) &&
        Objects.equals(this.tags, jobSimpleView.tags) &&
        Objects.equals(this.channelsLastValues, jobSimpleView.channelsLastValues) &&
        Objects.equals(this.archived, jobSimpleView.archived) &&
        Objects.equals(this.trashed, jobSimpleView.trashed) &&
        Objects.equals(this.size, jobSimpleView.size);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, description, project, owner, timeOfCreation, timeOfCompletion, state, responding, tags, channelsLastValues, archived, trashed, size);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class JobSimpleView {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    project: ").append(toIndentedString(project)).append("\n");
    sb.append("    owner: ").append(toIndentedString(owner)).append("\n");
    sb.append("    timeOfCreation: ").append(toIndentedString(timeOfCreation)).append("\n");
    sb.append("    timeOfCompletion: ").append(toIndentedString(timeOfCompletion)).append("\n");
    sb.append("    state: ").append(toIndentedString(state)).append("\n");
    sb.append("    responding: ").append(toIndentedString(responding)).append("\n");
    sb.append("    tags: ").append(toIndentedString(tags)).append("\n");
    sb.append("    channelsLastValues: ").append(toIndentedString(channelsLastValues)).append("\n");
    sb.append("    archived: ").append(toIndentedString(archived)).append("\n");
    sb.append("    trashed: ").append(toIndentedString(trashed)).append("\n");
    sb.append("    size: ").append(toIndentedString(size)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy