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

io.swagger.client.model.AppFile 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.Tenant;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.threeten.bp.OffsetDateTime;

/**
 * AppFile
 */

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

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

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

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

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

  @SerializedName("size")
  private Integer size = 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 AppFile originalName(String originalName) {
    this.originalName = originalName;
    return this;
  }

  

  /**
  * Get originalName
  * @return originalName
  **/
  @Schema(description = "")
  public String getOriginalName() {
    return originalName;
  }
  public void setOriginalName(String originalName) {
    this.originalName = originalName;
  }
  public AppFile objectName(String objectName) {
    this.objectName = objectName;
    return this;
  }

  

  /**
  * Get objectName
  * @return objectName
  **/
  @Schema(description = "")
  public String getObjectName() {
    return objectName;
  }
  public void setObjectName(String objectName) {
    this.objectName = objectName;
  }
  public AppFile bucket(String bucket) {
    this.bucket = bucket;
    return this;
  }

  

  /**
  * Get bucket
  * @return bucket
  **/
  @Schema(description = "")
  public String getBucket() {
    return bucket;
  }
  public void setBucket(String bucket) {
    this.bucket = bucket;
  }
  public AppFile metadata(Map metadata) {
    this.metadata = metadata;
    return this;
  }

  
  public AppFile putMetadataItem(String key, Object metadataItem) {
    if (this.metadata == null) {
      this.metadata = new HashMap();
    }
    this.metadata.put(key, metadataItem);
    return this;
  }
  /**
  * Get metadata
  * @return metadata
  **/
  @Schema(description = "")
  public Map getMetadata() {
    return metadata;
  }
  public void setMetadata(Map metadata) {
    this.metadata = metadata;
  }
  public AppFile size(Integer size) {
    this.size = size;
    return this;
  }

  

  /**
  * Get size
  * @return size
  **/
  @Schema(description = "")
  public Integer getSize() {
    return size;
  }
  public void setSize(Integer size) {
    this.size = size;
  }
  public AppFile 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 AppFile 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 AppFile 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 AppFile 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 AppFile 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;
    }
    AppFile appFile = (AppFile) o;
    return Objects.equals(this.originalName, appFile.originalName) &&
        Objects.equals(this.objectName, appFile.objectName) &&
        Objects.equals(this.bucket, appFile.bucket) &&
        Objects.equals(this.metadata, appFile.metadata) &&
        Objects.equals(this.size, appFile.size) &&
        Objects.equals(this.id, appFile.id) &&
        Objects.equals(this.created, appFile.created) &&
        Objects.equals(this.modified, appFile.modified) &&
        Objects.equals(this.tenant, appFile.tenant) &&
        Objects.equals(this.tenantId, appFile.tenantId);
  }

  @Override
  public int hashCode() {
    return java.util.Objects.hash(originalName, objectName, bucket, metadata, size, id, created, modified, tenant, tenantId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AppFile {\n");
    
    sb.append("    originalName: ").append(toIndentedString(originalName)).append("\n");
    sb.append("    objectName: ").append(toIndentedString(objectName)).append("\n");
    sb.append("    bucket: ").append(toIndentedString(bucket)).append("\n");
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
    sb.append("    size: ").append(toIndentedString(size)).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