ConnettoreFileRichiesta.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 ConnettoreFileRichiesta  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private String file = null;
  29.  
  30.   @Schema(description = "")
  31.   private String filePermissions = null;
  32.  
  33.   @Schema(description = "")
  34.   private String fileHeaders = null;
  35.  
  36.   @Schema(description = "")
  37.   private String fileHeadersPermissions = null;
  38.  
  39.   @Schema(description = "")
  40.   private Boolean createParentDir = false;
  41.  
  42.   @Schema(description = "")
  43.   private Boolean overwriteIfExists = false;
  44.  /**
  45.    * Get file
  46.    * @return file
  47.   **/
  48.   @JsonProperty("file")
  49.   @NotNull
  50.   @Valid
  51.  @Size(max=4000)  public String getFile() {
  52.     return this.file;
  53.   }

  54.   public void setFile(String file) {
  55.     this.file = file;
  56.   }

  57.   public ConnettoreFileRichiesta file(String file) {
  58.     this.file = file;
  59.     return this;
  60.   }

  61.  /**
  62.    * Get filePermissions
  63.    * @return filePermissions
  64.   **/
  65.   @JsonProperty("file_permissions")
  66.   @Valid
  67.  @Size(max=255)  public String getFilePermissions() {
  68.     return this.filePermissions;
  69.   }

  70.   public void setFilePermissions(String filePermissions) {
  71.     this.filePermissions = filePermissions;
  72.   }

  73.   public ConnettoreFileRichiesta filePermissions(String filePermissions) {
  74.     this.filePermissions = filePermissions;
  75.     return this;
  76.   }

  77.  /**
  78.    * Get fileHeaders
  79.    * @return fileHeaders
  80.   **/
  81.   @JsonProperty("file_headers")
  82.   @Valid
  83.  @Size(max=4000)  public String getFileHeaders() {
  84.     return this.fileHeaders;
  85.   }

  86.   public void setFileHeaders(String fileHeaders) {
  87.     this.fileHeaders = fileHeaders;
  88.   }

  89.   public ConnettoreFileRichiesta fileHeaders(String fileHeaders) {
  90.     this.fileHeaders = fileHeaders;
  91.     return this;
  92.   }

  93.  /**
  94.    * Get fileHeadersPermissions
  95.    * @return fileHeadersPermissions
  96.   **/
  97.   @JsonProperty("file_headers_permissions")
  98.   @Valid
  99.  @Size(max=255)  public String getFileHeadersPermissions() {
  100.     return this.fileHeadersPermissions;
  101.   }

  102.   public void setFileHeadersPermissions(String fileHeadersPermissions) {
  103.     this.fileHeadersPermissions = fileHeadersPermissions;
  104.   }

  105.   public ConnettoreFileRichiesta fileHeadersPermissions(String fileHeadersPermissions) {
  106.     this.fileHeadersPermissions = fileHeadersPermissions;
  107.     return this;
  108.   }

  109.  /**
  110.    * Get createParentDir
  111.    * @return createParentDir
  112.   **/
  113.   @JsonProperty("create_parent_dir")
  114.   @Valid
  115.   public Boolean isCreateParentDir() {
  116.     return this.createParentDir;
  117.   }

  118.   public void setCreateParentDir(Boolean createParentDir) {
  119.     this.createParentDir = createParentDir;
  120.   }

  121.   public ConnettoreFileRichiesta createParentDir(Boolean createParentDir) {
  122.     this.createParentDir = createParentDir;
  123.     return this;
  124.   }

  125.  /**
  126.    * Get overwriteIfExists
  127.    * @return overwriteIfExists
  128.   **/
  129.   @JsonProperty("overwrite_if_exists")
  130.   @Valid
  131.   public Boolean isOverwriteIfExists() {
  132.     return this.overwriteIfExists;
  133.   }

  134.   public void setOverwriteIfExists(Boolean overwriteIfExists) {
  135.     this.overwriteIfExists = overwriteIfExists;
  136.   }

  137.   public ConnettoreFileRichiesta overwriteIfExists(Boolean overwriteIfExists) {
  138.     this.overwriteIfExists = overwriteIfExists;
  139.     return this;
  140.   }


  141.   @Override
  142.   public String toString() {
  143.     StringBuilder sb = new StringBuilder();
  144.     sb.append("class ConnettoreFileRichiesta {\n");
  145.    
  146.     sb.append("    file: ").append(ConnettoreFileRichiesta.toIndentedString(this.file)).append("\n");
  147.     sb.append("    filePermissions: ").append(ConnettoreFileRichiesta.toIndentedString(this.filePermissions)).append("\n");
  148.     sb.append("    fileHeaders: ").append(ConnettoreFileRichiesta.toIndentedString(this.fileHeaders)).append("\n");
  149.     sb.append("    fileHeadersPermissions: ").append(ConnettoreFileRichiesta.toIndentedString(this.fileHeadersPermissions)).append("\n");
  150.     sb.append("    createParentDir: ").append(ConnettoreFileRichiesta.toIndentedString(this.createParentDir)).append("\n");
  151.     sb.append("    overwriteIfExists: ").append(ConnettoreFileRichiesta.toIndentedString(this.overwriteIfExists)).append("\n");
  152.     sb.append("}");
  153.     return sb.toString();
  154.   }

  155.   /**
  156.    * Convert the given object to string with each line indented by 4 spaces
  157.    * (except the first line).
  158.    */
  159.   private static String toIndentedString(java.lang.Object o) {
  160.     if (o == null) {
  161.       return "null";
  162.     }
  163.     return o.toString().replace("\n", "\n    ");
  164.   }
  165. }