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

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

Go to download

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

There is a newer version: 0.2.10
Show 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.NotificationProviderSettings;
import name.kevinlocke.appveyor.model.StoredNameValue;
import javax.validation.constraints.*;

/**
 * DeploymentEnvironmentSettings
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-05-19T00:16:45.908-06:00")
public class DeploymentEnvironmentSettings {
  @SerializedName("providerSettings")
  private List providerSettings = new ArrayList();

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

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

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

  public DeploymentEnvironmentSettings 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 DeploymentEnvironmentSettings environmentVariables(List environmentVariables) {
    this.environmentVariables = environmentVariables;
    return this;
  }

  public DeploymentEnvironmentSettings addEnvironmentVariablesItem(StoredNameValue environmentVariablesItem) {
    this.environmentVariables.add(environmentVariablesItem);
    return this;
  }

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

  public void setEnvironmentVariables(List environmentVariables) {
    this.environmentVariables = environmentVariables;
  }

  public DeploymentEnvironmentSettings notifications(List notifications) {
    this.notifications = notifications;
    return this;
  }

  public DeploymentEnvironmentSettings addNotificationsItem(NotificationProviderSettings notificationsItem) {
    this.notifications.add(notificationsItem);
    return this;
  }

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

  public void setNotifications(List notifications) {
    this.notifications = notifications;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DeploymentEnvironmentSettings deploymentEnvironmentSettings = (DeploymentEnvironmentSettings) o;
    return Objects.equals(this.providerSettings, deploymentEnvironmentSettings.providerSettings) &&
        Objects.equals(this.environmentVariables, deploymentEnvironmentSettings.environmentVariables) &&
        Objects.equals(this.notifications, deploymentEnvironmentSettings.notifications);
  }

  @Override
  public int hashCode() {
    return Objects.hash(providerSettings, environmentVariables, notifications);
  }


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