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

io.swagger.client.model.Template 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.TemplateGroup;
import io.swagger.client.model.TemplateVersionFile;
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.List;
import org.threeten.bp.OffsetDateTime;

/**
 * Template
 */

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

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

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

  @SerializedName("templateVersionFiles")
  private List templateVersionFiles = 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 Template name(String name) {
    this.name = name;
    return this;
  }

  

  /**
  * Get name
  * @return name
  **/
  @Schema(description = "")
  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }
  public Template templateGroups(List templateGroups) {
    this.templateGroups = templateGroups;
    return this;
  }

  public Template addTemplateGroupsItem(TemplateGroup templateGroupsItem) {
    if (this.templateGroups == null) {
      this.templateGroups = new ArrayList();
    }
    this.templateGroups.add(templateGroupsItem);
    return this;
  }

  /**
  * Get templateGroups
  * @return templateGroups
  **/
  @Schema(description = "")
  public List getTemplateGroups() {
    return templateGroups;
  }
  public void setTemplateGroups(List templateGroups) {
    this.templateGroups = templateGroups;
  }
  public Template templateVersionFiles(List templateVersionFiles) {
    this.templateVersionFiles = templateVersionFiles;
    return this;
  }

  public Template addTemplateVersionFilesItem(TemplateVersionFile templateVersionFilesItem) {
    if (this.templateVersionFiles == null) {
      this.templateVersionFiles = new ArrayList();
    }
    this.templateVersionFiles.add(templateVersionFilesItem);
    return this;
  }

  /**
  * Get templateVersionFiles
  * @return templateVersionFiles
  **/
  @Schema(description = "")
  public List getTemplateVersionFiles() {
    return templateVersionFiles;
  }
  public void setTemplateVersionFiles(List templateVersionFiles) {
    this.templateVersionFiles = templateVersionFiles;
  }
  public Template 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 Template 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 Template 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 Template 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 Template 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;
    }
    Template template = (Template) o;
    return Objects.equals(this.name, template.name) &&
        Objects.equals(this.templateGroups, template.templateGroups) &&
        Objects.equals(this.templateVersionFiles, template.templateVersionFiles) &&
        Objects.equals(this.id, template.id) &&
        Objects.equals(this.created, template.created) &&
        Objects.equals(this.modified, template.modified) &&
        Objects.equals(this.tenant, template.tenant) &&
        Objects.equals(this.tenantId, template.tenantId);
  }

  @Override
  public int hashCode() {
    return java.util.Objects.hash(name, templateGroups, templateVersionFiles, id, created, modified, tenant, tenantId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Template {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    templateGroups: ").append(toIndentedString(templateGroups)).append("\n");
    sb.append("    templateVersionFiles: ").append(toIndentedString(templateVersionFiles)).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