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

com.bitmovin.api.sdk.model.FtpOutput Maven / Gradle / Ivy

There is a newer version: 1.205.0
Show newest version
package com.bitmovin.api.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.bitmovin.api.sdk.model.AclEntry;
import com.bitmovin.api.sdk.model.Output;
import com.bitmovin.api.sdk.model.TransferVersion;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

/**
 * FtpOutput
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = false, defaultImpl = FtpOutput.class)
public class FtpOutput extends Output {
  @JsonProperty("host")
  private String host;

  @JsonProperty("port")
  private Integer port;

  @JsonProperty("passive")
  private Boolean passive;

  @JsonProperty("username")
  private String username;

  @JsonProperty("password")
  private String password;

  @JsonProperty("transferVersion")
  private TransferVersion transferVersion;

  @JsonProperty("maxConcurrentConnections")
  private Integer maxConcurrentConnections;


  /**
   * Host URL or IP of the FTP server (required)
   * @return host
   */
  public String getHost() {
    return host;
  }

  /**
   * Host URL or IP of the FTP server (required)
   *
   * @param host
   *        Host URL or IP of the FTP server (required)
   */
  public void setHost(String host) {
    this.host = host;
  }


  /**
   * Port to use, standard for FTP: 21
   * @return port
   */
  public Integer getPort() {
    return port;
  }

  /**
   * Port to use, standard for FTP: 21
   *
   * @param port
   *        Port to use, standard for FTP: 21
   */
  public void setPort(Integer port) {
    this.port = port;
  }


  /**
   * Use passive mode. Default is true.
   * @return passive
   */
  public Boolean getPassive() {
    return passive;
  }

  /**
   * Use passive mode. Default is true.
   *
   * @param passive
   *        Use passive mode. Default is true.
   */
  public void setPassive(Boolean passive) {
    this.passive = passive;
  }


  /**
   * Your FTP Username
   * @return username
   */
  public String getUsername() {
    return username;
  }

  /**
   * Your FTP Username
   *
   * @param username
   *        Your FTP Username
   */
  public void setUsername(String username) {
    this.username = username;
  }


  /**
   * Your FTP password
   * @return password
   */
  public String getPassword() {
    return password;
  }

  /**
   * Your FTP password
   *
   * @param password
   *        Your FTP password
   */
  public void setPassword(String password) {
    this.password = password;
  }


  /**
   * Controls which transfer version should be used
   * @return transferVersion
   */
  public TransferVersion getTransferVersion() {
    return transferVersion;
  }

  /**
   * Controls which transfer version should be used
   *
   * @param transferVersion
   *        Controls which transfer version should be used
   */
  public void setTransferVersion(TransferVersion transferVersion) {
    this.transferVersion = transferVersion;
  }


  /**
   * Restrict maximum concurrent connections. Requires at least version 1.1.0.
   * @return maxConcurrentConnections
   */
  public Integer getMaxConcurrentConnections() {
    return maxConcurrentConnections;
  }

  /**
   * Restrict maximum concurrent connections. Requires at least version 1.1.0.
   *
   * @param maxConcurrentConnections
   *        Restrict maximum concurrent connections. Requires at least version 1.1.0.
   */
  public void setMaxConcurrentConnections(Integer maxConcurrentConnections) {
    this.maxConcurrentConnections = maxConcurrentConnections;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FtpOutput ftpOutput = (FtpOutput) o;
    return Objects.equals(this.host, ftpOutput.host) &&
        Objects.equals(this.port, ftpOutput.port) &&
        Objects.equals(this.passive, ftpOutput.passive) &&
        Objects.equals(this.username, ftpOutput.username) &&
        Objects.equals(this.password, ftpOutput.password) &&
        Objects.equals(this.transferVersion, ftpOutput.transferVersion) &&
        Objects.equals(this.maxConcurrentConnections, ftpOutput.maxConcurrentConnections) &&
        super.equals(o);
  }

  @Override
  public int hashCode() {
    return Objects.hash(host, port, passive, username, password, transferVersion, maxConcurrentConnections, super.hashCode());
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FtpOutput {\n");
    sb.append("    ").append(toIndentedString(super.toString())).append("\n");
    sb.append("    host: ").append(toIndentedString(host)).append("\n");
    sb.append("    port: ").append(toIndentedString(port)).append("\n");
    sb.append("    passive: ").append(toIndentedString(passive)).append("\n");
    sb.append("    username: ").append(toIndentedString(username)).append("\n");
    sb.append("    password: ").append(toIndentedString(password)).append("\n");
    sb.append("    transferVersion: ").append(toIndentedString(transferVersion)).append("\n");
    sb.append("    maxConcurrentConnections: ").append(toIndentedString(maxConcurrentConnections)).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 - 2024 Weber Informatics LLC | Privacy Policy