ConnettoreFileRisposta.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */
  20. package org.openspcoop2.core.config.rs.server.model;

  21. import javax.validation.constraints.*;

  22. import io.swagger.v3.oas.annotations.media.Schema;
  23. import com.fasterxml.jackson.annotation.JsonProperty;
  24. import javax.validation.Valid;

  25. public class ConnettoreFileRisposta  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private String file = null;
  29.  
  30.   @Schema(description = "")
  31.   private String fileHeaders = null;
  32.  
  33.   @Schema(description = "")
  34.   private Boolean deleteAfterRead = false;
  35.  
  36.   @Schema(description = "")
  37.   private Integer waitIfNotExistsMs = null;
  38.  /**
  39.    * Get file
  40.    * @return file
  41.   **/
  42.   @JsonProperty("file")
  43.   @NotNull
  44.   @Valid
  45.  @Size(max=4000)  public String getFile() {
  46.     return this.file;
  47.   }

  48.   public void setFile(String file) {
  49.     this.file = file;
  50.   }

  51.   public ConnettoreFileRisposta file(String file) {
  52.     this.file = file;
  53.     return this;
  54.   }

  55.  /**
  56.    * Get fileHeaders
  57.    * @return fileHeaders
  58.   **/
  59.   @JsonProperty("file_headers")
  60.   @Valid
  61.  @Size(max=4000)  public String getFileHeaders() {
  62.     return this.fileHeaders;
  63.   }

  64.   public void setFileHeaders(String fileHeaders) {
  65.     this.fileHeaders = fileHeaders;
  66.   }

  67.   public ConnettoreFileRisposta fileHeaders(String fileHeaders) {
  68.     this.fileHeaders = fileHeaders;
  69.     return this;
  70.   }

  71.  /**
  72.    * Get deleteAfterRead
  73.    * @return deleteAfterRead
  74.   **/
  75.   @JsonProperty("delete_after_read")
  76.   @Valid
  77.   public Boolean isDeleteAfterRead() {
  78.     return this.deleteAfterRead;
  79.   }

  80.   public void setDeleteAfterRead(Boolean deleteAfterRead) {
  81.     this.deleteAfterRead = deleteAfterRead;
  82.   }

  83.   public ConnettoreFileRisposta deleteAfterRead(Boolean deleteAfterRead) {
  84.     this.deleteAfterRead = deleteAfterRead;
  85.     return this;
  86.   }

  87.  /**
  88.    * Get waitIfNotExistsMs
  89.    * @return waitIfNotExistsMs
  90.   **/
  91.   @JsonProperty("wait_if_not_exists_ms")
  92.   @Valid
  93.   public Integer getWaitIfNotExistsMs() {
  94.     return this.waitIfNotExistsMs;
  95.   }

  96.   public void setWaitIfNotExistsMs(Integer waitIfNotExistsMs) {
  97.     this.waitIfNotExistsMs = waitIfNotExistsMs;
  98.   }

  99.   public ConnettoreFileRisposta waitIfNotExistsMs(Integer waitIfNotExistsMs) {
  100.     this.waitIfNotExistsMs = waitIfNotExistsMs;
  101.     return this;
  102.   }


  103.   @Override
  104.   public String toString() {
  105.     StringBuilder sb = new StringBuilder();
  106.     sb.append("class ConnettoreFileRisposta {\n");
  107.    
  108.     sb.append("    file: ").append(ConnettoreFileRisposta.toIndentedString(this.file)).append("\n");
  109.     sb.append("    fileHeaders: ").append(ConnettoreFileRisposta.toIndentedString(this.fileHeaders)).append("\n");
  110.     sb.append("    deleteAfterRead: ").append(ConnettoreFileRisposta.toIndentedString(this.deleteAfterRead)).append("\n");
  111.     sb.append("    waitIfNotExistsMs: ").append(ConnettoreFileRisposta.toIndentedString(this.waitIfNotExistsMs)).append("\n");
  112.     sb.append("}");
  113.     return sb.toString();
  114.   }

  115.   /**
  116.    * Convert the given object to string with each line indented by 4 spaces
  117.    * (except the first line).
  118.    */
  119.   private static String toIndentedString(java.lang.Object o) {
  120.     if (o == null) {
  121.       return "null";
  122.     }
  123.     return o.toString().replace("\n", "\n    ");
  124.   }
  125. }