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

io.swagger.client.model.TemplateVersionFile Maven / Gradle / Ivy

/*
 * DocxMerge
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: v1
 * 
 *
 * 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.
 */

package io.swagger.client.model;

import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.client.model.AppFile;
import io.swagger.client.model.Report;
import io.swagger.client.model.Template;
import io.swagger.client.model.Tenant;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.threeten.bp.OffsetDateTime;

/**
 * TemplateVersionFile
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2018-12-11T02:42:35.962+01:00[Europe/Madrid]")public class TemplateVersionFile {

  @SerializedName("template")
  private Template template = null;

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

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

  @SerializedName("appFile")
  private AppFile appFile = null;
  /**
   * Gets or Sets status
   */
  @JsonAdapter(StatusEnum.Adapter.class)
  public enum StatusEnum {
    DRAFT("DRAFT"),
    TESTING("TESTING"),
    PRODUCTION("PRODUCTION");

    private String value;

    StatusEnum(String value) {
      this.value = value;
    }
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    public static StatusEnum fromValue(String text) {
      for (StatusEnum b : StatusEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
    public static class Adapter extends TypeAdapter {
      @Override
      public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
        jsonWriter.value(enumeration.getValue());
      }

      @Override
      public StatusEnum read(final JsonReader jsonReader) throws IOException {
        String value = jsonReader.nextString();
        return StatusEnum.fromValue(String.valueOf(value));
      }
    }
  }
  @SerializedName("status")
  private StatusEnum status = null;

  @SerializedName("version")
  private Integer version = null;

  @SerializedName("attributes")
  private List attributes = null;

  @SerializedName("example")
  private Map example = null;

  @SerializedName("reports")
  private List reports = null;

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

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

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

  @SerializedName("tenant")
  private Tenant tenant = null;

  @SerializedName("tenantId")
  private String tenantId = null;
  public TemplateVersionFile template(Template template) {
    this.template = template;
    return this;
  }

  

  /**
  * Get template
  * @return template
  **/
  @Schema(description = "")
  public Template getTemplate() {
    return template;
  }
  public void setTemplate(Template template) {
    this.template = template;
  }
  public TemplateVersionFile templateId(String templateId) {
    this.templateId = templateId;
    return this;
  }

  

  /**
  * Get templateId
  * @return templateId
  **/
  @Schema(description = "")
  public String getTemplateId() {
    return templateId;
  }
  public void setTemplateId(String templateId) {
    this.templateId = templateId;
  }
  public TemplateVersionFile appFileId(String appFileId) {
    this.appFileId = appFileId;
    return this;
  }

  

  /**
  * Get appFileId
  * @return appFileId
  **/
  @Schema(description = "")
  public String getAppFileId() {
    return appFileId;
  }
  public void setAppFileId(String appFileId) {
    this.appFileId = appFileId;
  }
  public TemplateVersionFile appFile(AppFile appFile) {
    this.appFile = appFile;
    return this;
  }

  

  /**
  * Get appFile
  * @return appFile
  **/
  @Schema(description = "")
  public AppFile getAppFile() {
    return appFile;
  }
  public void setAppFile(AppFile appFile) {
    this.appFile = appFile;
  }
  public TemplateVersionFile status(StatusEnum status) {
    this.status = status;
    return this;
  }

  

  /**
  * Get status
  * @return status
  **/
  @Schema(description = "")
  public StatusEnum getStatus() {
    return status;
  }
  public void setStatus(StatusEnum status) {
    this.status = status;
  }
  public TemplateVersionFile version(Integer version) {
    this.version = version;
    return this;
  }

  

  /**
  * Get version
  * @return version
  **/
  @Schema(description = "")
  public Integer getVersion() {
    return version;
  }
  public void setVersion(Integer version) {
    this.version = version;
  }
  public TemplateVersionFile attributes(List attributes) {
    this.attributes = attributes;
    return this;
  }

  public TemplateVersionFile addAttributesItem(String attributesItem) {
    if (this.attributes == null) {
      this.attributes = new ArrayList();
    }
    this.attributes.add(attributesItem);
    return this;
  }

  /**
  * Get attributes
  * @return attributes
  **/
  @Schema(description = "")
  public List getAttributes() {
    return attributes;
  }
  public void setAttributes(List attributes) {
    this.attributes = attributes;
  }
  public TemplateVersionFile example(Map example) {
    this.example = example;
    return this;
  }

  
  public TemplateVersionFile putExampleItem(String key, Object exampleItem) {
    if (this.example == null) {
      this.example = new HashMap();
    }
    this.example.put(key, exampleItem);
    return this;
  }
  /**
  * Get example
  * @return example
  **/
  @Schema(description = "")
  public Map getExample() {
    return example;
  }
  public void setExample(Map example) {
    this.example = example;
  }
  public TemplateVersionFile reports(List reports) {
    this.reports = reports;
    return this;
  }

  public TemplateVersionFile addReportsItem(Report reportsItem) {
    if (this.reports == null) {
      this.reports = new ArrayList();
    }
    this.reports.add(reportsItem);
    return this;
  }

  /**
  * Get reports
  * @return reports
  **/
  @Schema(description = "")
  public List getReports() {
    return reports;
  }
  public void setReports(List reports) {
    this.reports = reports;
  }
  public TemplateVersionFile id(String id) {
    this.id = id;
    return this;
  }

  

  /**
  * Get id
  * @return id
  **/
  @Schema(description = "")
  public String getId() {
    return id;
  }
  public void setId(String id) {
    this.id = id;
  }
  public TemplateVersionFile created(OffsetDateTime created) {
    this.created = created;
    return this;
  }

  

  /**
  * Get created
  * @return created
  **/
  @Schema(description = "")
  public OffsetDateTime getCreated() {
    return created;
  }
  public void setCreated(OffsetDateTime created) {
    this.created = created;
  }
  public TemplateVersionFile modified(OffsetDateTime modified) {
    this.modified = modified;
    return this;
  }

  

  /**
  * Get modified
  * @return modified
  **/
  @Schema(description = "")
  public OffsetDateTime getModified() {
    return modified;
  }
  public void setModified(OffsetDateTime modified) {
    this.modified = modified;
  }
  public TemplateVersionFile tenant(Tenant tenant) {
    this.tenant = tenant;
    return this;
  }

  

  /**
  * Get tenant
  * @return tenant
  **/
  @Schema(description = "")
  public Tenant getTenant() {
    return tenant;
  }
  public void setTenant(Tenant tenant) {
    this.tenant = tenant;
  }
  public TemplateVersionFile tenantId(String tenantId) {
    this.tenantId = tenantId;
    return this;
  }

  

  /**
  * Get tenantId
  * @return tenantId
  **/
  @Schema(required = true, description = "")
  public String getTenantId() {
    return tenantId;
  }
  public void setTenantId(String tenantId) {
    this.tenantId = tenantId;
  }
  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TemplateVersionFile templateVersionFile = (TemplateVersionFile) o;
    return Objects.equals(this.template, templateVersionFile.template) &&
        Objects.equals(this.templateId, templateVersionFile.templateId) &&
        Objects.equals(this.appFileId, templateVersionFile.appFileId) &&
        Objects.equals(this.appFile, templateVersionFile.appFile) &&
        Objects.equals(this.status, templateVersionFile.status) &&
        Objects.equals(this.version, templateVersionFile.version) &&
        Objects.equals(this.attributes, templateVersionFile.attributes) &&
        Objects.equals(this.example, templateVersionFile.example) &&
        Objects.equals(this.reports, templateVersionFile.reports) &&
        Objects.equals(this.id, templateVersionFile.id) &&
        Objects.equals(this.created, templateVersionFile.created) &&
        Objects.equals(this.modified, templateVersionFile.modified) &&
        Objects.equals(this.tenant, templateVersionFile.tenant) &&
        Objects.equals(this.tenantId, templateVersionFile.tenantId);
  }

  @Override
  public int hashCode() {
    return java.util.Objects.hash(template, templateId, appFileId, appFile, status, version, attributes, example, reports, id, created, modified, tenant, tenantId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TemplateVersionFile {\n");
    
    sb.append("    template: ").append(toIndentedString(template)).append("\n");
    sb.append("    templateId: ").append(toIndentedString(templateId)).append("\n");
    sb.append("    appFileId: ").append(toIndentedString(appFileId)).append("\n");
    sb.append("    appFile: ").append(toIndentedString(appFile)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).append("\n");
    sb.append("    attributes: ").append(toIndentedString(attributes)).append("\n");
    sb.append("    example: ").append(toIndentedString(example)).append("\n");
    sb.append("    reports: ").append(toIndentedString(reports)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    created: ").append(toIndentedString(created)).append("\n");
    sb.append("    modified: ").append(toIndentedString(modified)).append("\n");
    sb.append("    tenant: ").append(toIndentedString(tenant)).append("\n");
    sb.append("    tenantId: ").append(toIndentedString(tenantId)).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 - 2025 Weber Informatics LLC | Privacy Policy