/*
 * Cloudera Manager API
 * <h1>Cloudera Manager API v57</h1>       <p>Introduced in Cloudera Manager 7.13.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>
 *
 * OpenAPI spec version: 7.13.1
 * 
 *
 * 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 com.cloudera.api.swagger.model;

import java.util.Objects;
import java.util.Arrays;
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.v3.oas.annotations.media.Schema;
import java.io.IOException;
/**
 * Represents arguments for downloading and distributing a file from ECS parcel. This class encapsulates parameters needed for the download and distribution process.
 */
@Schema(description = "Represents arguments for downloading and distributing a file from ECS parcel. This class encapsulates parameters needed for the download and distribution process.")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiEcsDownloadAndDistributeArgs {
  @SerializedName("workDir")
  private String workDir = null;

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

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

  public ApiEcsDownloadAndDistributeArgs workDir(String workDir) {
    this.workDir = workDir;
    return this;
  }

   /**
   * Gets the working directory for the download and distribution process.
   * @return workDir
  **/
  @Schema(description = "Gets the working directory for the download and distribution process.")
  public String getWorkDir() {
    return workDir;
  }

  public void setWorkDir(String workDir) {
    this.workDir = workDir;
  }

  public ApiEcsDownloadAndDistributeArgs packageName(String packageName) {
    this.packageName = packageName;
    return this;
  }

   /**
   * Gets the name of the file to be downloaded and distributed.
   * @return packageName
  **/
  @Schema(description = "Gets the name of the file to be downloaded and distributed.")
  public String getPackageName() {
    return packageName;
  }

  public void setPackageName(String packageName) {
    this.packageName = packageName;
  }

  public ApiEcsDownloadAndDistributeArgs remoteRepoUrl(String remoteRepoUrl) {
    this.remoteRepoUrl = remoteRepoUrl;
    return this;
  }

   /**
   * Gets the URL of the remote repository from which to download the file.
   * @return remoteRepoUrl
  **/
  @Schema(description = "Gets the URL of the remote repository from which to download the file.")
  public String getRemoteRepoUrl() {
    return remoteRepoUrl;
  }

  public void setRemoteRepoUrl(String remoteRepoUrl) {
    this.remoteRepoUrl = remoteRepoUrl;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiEcsDownloadAndDistributeArgs apiEcsDownloadAndDistributeArgs = (ApiEcsDownloadAndDistributeArgs) o;
    return Objects.equals(this.workDir, apiEcsDownloadAndDistributeArgs.workDir) &&
        Objects.equals(this.packageName, apiEcsDownloadAndDistributeArgs.packageName) &&
        Objects.equals(this.remoteRepoUrl, apiEcsDownloadAndDistributeArgs.remoteRepoUrl);
  }

  @Override
  public int hashCode() {
    return Objects.hash(workDir, packageName, remoteRepoUrl);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiEcsDownloadAndDistributeArgs {\n");
    
    sb.append("    workDir: ").append(toIndentedString(workDir)).append("\n");
    sb.append("    packageName: ").append(toIndentedString(packageName)).append("\n");
    sb.append("    remoteRepoUrl: ").append(toIndentedString(remoteRepoUrl)).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    ");
  }

}
