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

name.kevinlocke.appveyor.model.DeploymentProvider Maven / Gradle / Ivy

Go to download

AppVeyor REST API Client generated from the unofficial Swagger API definition in Java.

The newest version!
/*
 * AppVeyor REST API
 * AppVeyor is a hosted continuous integration service which runs on Microsoft Windows.  The AppVeyor REST API provides a RESTful way to interact with the AppVeyor service.  This includes managing projects, builds, deployments, and the teams that build them.  Additional help and discussion of the AppVeyor REST API is available at http://help.appveyor.com/discussions  This Swagger definition is an **unofficial** description of the AppVeyor REST API maintained at https://github.com/kevinoid/appveyor-swagger Please report any issues or suggestions for this Swagger definition at https://github.com/kevinoid/appveyor-swagger/issues/new  #### API Conventions  Fields which are missing from update operations (`PUT` requests) are typically reset to their default values.  So although most fields are not technically required, they should usually be specified in practice. 
 *
 * OpenAPI spec version: 0.20170106.0
 * Contact: [email protected]
 *
 * 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 name.kevinlocke.appveyor.model;

import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import name.kevinlocke.appveyor.model.DeploymentProviderType;
import name.kevinlocke.appveyor.model.StoredNameValue;
import name.kevinlocke.appveyor.model.StringValueObject;
import javax.validation.constraints.*;

/**
 * DeploymentProvider
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-11-23T14:03:51.855-07:00")
public class DeploymentProvider {
  @SerializedName("provider")
  private DeploymentProviderType provider = null;

  @SerializedName("providerSettings")
  private List providerSettings = new ArrayList();

  @SerializedName("onBranch")
  private List onBranch = new ArrayList();

  @SerializedName("onEnvironmentVariables")
  private List onEnvironmentVariables = new ArrayList();

  public DeploymentProvider provider(DeploymentProviderType provider) {
    this.provider = provider;
    return this;
  }

   /**
   * Get provider
   * @return provider
  **/
  @NotNull
  @ApiModelProperty(example = "null", required = true, value = "")
  public DeploymentProviderType getProvider() {
    return provider;
  }

  public void setProvider(DeploymentProviderType provider) {
    this.provider = provider;
  }

  public DeploymentProvider providerSettings(List providerSettings) {
    this.providerSettings = providerSettings;
    return this;
  }

  public DeploymentProvider addProviderSettingsItem(StoredNameValue providerSettingsItem) {
    this.providerSettings.add(providerSettingsItem);
    return this;
  }

   /**
   * Get providerSettings
   * @return providerSettings
  **/
  @ApiModelProperty(example = "null", value = "")
  public List getProviderSettings() {
    return providerSettings;
  }

  public void setProviderSettings(List providerSettings) {
    this.providerSettings = providerSettings;
  }

  public DeploymentProvider onBranch(List onBranch) {
    this.onBranch = onBranch;
    return this;
  }

  public DeploymentProvider addOnBranchItem(StringValueObject onBranchItem) {
    this.onBranch.add(onBranchItem);
    return this;
  }

   /**
   * Get onBranch
   * @return onBranch
  **/
  @ApiModelProperty(example = "null", value = "")
  public List getOnBranch() {
    return onBranch;
  }

  public void setOnBranch(List onBranch) {
    this.onBranch = onBranch;
  }

  public DeploymentProvider onEnvironmentVariables(List onEnvironmentVariables) {
    this.onEnvironmentVariables = onEnvironmentVariables;
    return this;
  }

  public DeploymentProvider addOnEnvironmentVariablesItem(StoredNameValue onEnvironmentVariablesItem) {
    this.onEnvironmentVariables.add(onEnvironmentVariablesItem);
    return this;
  }

   /**
   * Get onEnvironmentVariables
   * @return onEnvironmentVariables
  **/
  @ApiModelProperty(example = "null", value = "")
  public List getOnEnvironmentVariables() {
    return onEnvironmentVariables;
  }

  public void setOnEnvironmentVariables(List onEnvironmentVariables) {
    this.onEnvironmentVariables = onEnvironmentVariables;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DeploymentProvider deploymentProvider = (DeploymentProvider) o;
    return Objects.equals(this.provider, deploymentProvider.provider) &&
        Objects.equals(this.providerSettings, deploymentProvider.providerSettings) &&
        Objects.equals(this.onBranch, deploymentProvider.onBranch) &&
        Objects.equals(this.onEnvironmentVariables, deploymentProvider.onEnvironmentVariables);
  }

  @Override
  public int hashCode() {
    return Objects.hash(provider, providerSettings, onBranch, onEnvironmentVariables);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DeploymentProvider {\n");
    
    sb.append("    provider: ").append(toIndentedString(provider)).append("\n");
    sb.append("    providerSettings: ").append(toIndentedString(providerSettings)).append("\n");
    sb.append("    onBranch: ").append(toIndentedString(onBranch)).append("\n");
    sb.append("    onEnvironmentVariables: ").append(toIndentedString(onEnvironmentVariables)).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