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

name.kevinlocke.appveyor.model.UserAccountSettings 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 name.kevinlocke.appveyor.model.BuildNotificationFrequency;
import name.kevinlocke.appveyor.model.DeploymentNotificationFrequency;
import javax.validation.constraints.*;

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

  @SerializedName("failedBuildNotification")
  private BuildNotificationFrequency failedBuildNotification = null;

  @SerializedName("notifyWhenBuildStatusChangedOnly")
  private Boolean notifyWhenBuildStatusChangedOnly = false;

  @SerializedName("successfulDeploymentNotification")
  private DeploymentNotificationFrequency successfulDeploymentNotification = null;

  @SerializedName("failedDeploymentNotification")
  private DeploymentNotificationFrequency failedDeploymentNotification = null;

  @SerializedName("notifyWhenDeploymentStatusChangedOnly")
  private Boolean notifyWhenDeploymentStatusChangedOnly = false;

  public UserAccountSettings successfulBuildNotification(BuildNotificationFrequency successfulBuildNotification) {
    this.successfulBuildNotification = successfulBuildNotification;
    return this;
  }

   /**
   * Get successfulBuildNotification
   * @return successfulBuildNotification
  **/
  @NotNull
  @ApiModelProperty(example = "null", required = true, value = "")
  public BuildNotificationFrequency getSuccessfulBuildNotification() {
    return successfulBuildNotification;
  }

  public void setSuccessfulBuildNotification(BuildNotificationFrequency successfulBuildNotification) {
    this.successfulBuildNotification = successfulBuildNotification;
  }

  public UserAccountSettings failedBuildNotification(BuildNotificationFrequency failedBuildNotification) {
    this.failedBuildNotification = failedBuildNotification;
    return this;
  }

   /**
   * Get failedBuildNotification
   * @return failedBuildNotification
  **/
  @NotNull
  @ApiModelProperty(example = "null", required = true, value = "")
  public BuildNotificationFrequency getFailedBuildNotification() {
    return failedBuildNotification;
  }

  public void setFailedBuildNotification(BuildNotificationFrequency failedBuildNotification) {
    this.failedBuildNotification = failedBuildNotification;
  }

  public UserAccountSettings notifyWhenBuildStatusChangedOnly(Boolean notifyWhenBuildStatusChangedOnly) {
    this.notifyWhenBuildStatusChangedOnly = notifyWhenBuildStatusChangedOnly;
    return this;
  }

   /**
   * Note that this value is `true` on user creation, but behaves as `false` when not specified on update. 
   * @return notifyWhenBuildStatusChangedOnly
  **/
  @ApiModelProperty(example = "null", value = "Note that this value is `true` on user creation, but behaves as `false` when not specified on update. ")
  public Boolean getNotifyWhenBuildStatusChangedOnly() {
    return notifyWhenBuildStatusChangedOnly;
  }

  public void setNotifyWhenBuildStatusChangedOnly(Boolean notifyWhenBuildStatusChangedOnly) {
    this.notifyWhenBuildStatusChangedOnly = notifyWhenBuildStatusChangedOnly;
  }

  public UserAccountSettings successfulDeploymentNotification(DeploymentNotificationFrequency successfulDeploymentNotification) {
    this.successfulDeploymentNotification = successfulDeploymentNotification;
    return this;
  }

   /**
   * Get successfulDeploymentNotification
   * @return successfulDeploymentNotification
  **/
  @NotNull
  @ApiModelProperty(example = "null", required = true, value = "")
  public DeploymentNotificationFrequency getSuccessfulDeploymentNotification() {
    return successfulDeploymentNotification;
  }

  public void setSuccessfulDeploymentNotification(DeploymentNotificationFrequency successfulDeploymentNotification) {
    this.successfulDeploymentNotification = successfulDeploymentNotification;
  }

  public UserAccountSettings failedDeploymentNotification(DeploymentNotificationFrequency failedDeploymentNotification) {
    this.failedDeploymentNotification = failedDeploymentNotification;
    return this;
  }

   /**
   * Get failedDeploymentNotification
   * @return failedDeploymentNotification
  **/
  @NotNull
  @ApiModelProperty(example = "null", required = true, value = "")
  public DeploymentNotificationFrequency getFailedDeploymentNotification() {
    return failedDeploymentNotification;
  }

  public void setFailedDeploymentNotification(DeploymentNotificationFrequency failedDeploymentNotification) {
    this.failedDeploymentNotification = failedDeploymentNotification;
  }

  public UserAccountSettings notifyWhenDeploymentStatusChangedOnly(Boolean notifyWhenDeploymentStatusChangedOnly) {
    this.notifyWhenDeploymentStatusChangedOnly = notifyWhenDeploymentStatusChangedOnly;
    return this;
  }

   /**
   * Note that this value is `true` on user creation, but behaves as `false` when not specified on update. 
   * @return notifyWhenDeploymentStatusChangedOnly
  **/
  @ApiModelProperty(example = "null", value = "Note that this value is `true` on user creation, but behaves as `false` when not specified on update. ")
  public Boolean getNotifyWhenDeploymentStatusChangedOnly() {
    return notifyWhenDeploymentStatusChangedOnly;
  }

  public void setNotifyWhenDeploymentStatusChangedOnly(Boolean notifyWhenDeploymentStatusChangedOnly) {
    this.notifyWhenDeploymentStatusChangedOnly = notifyWhenDeploymentStatusChangedOnly;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UserAccountSettings userAccountSettings = (UserAccountSettings) o;
    return Objects.equals(this.successfulBuildNotification, userAccountSettings.successfulBuildNotification) &&
        Objects.equals(this.failedBuildNotification, userAccountSettings.failedBuildNotification) &&
        Objects.equals(this.notifyWhenBuildStatusChangedOnly, userAccountSettings.notifyWhenBuildStatusChangedOnly) &&
        Objects.equals(this.successfulDeploymentNotification, userAccountSettings.successfulDeploymentNotification) &&
        Objects.equals(this.failedDeploymentNotification, userAccountSettings.failedDeploymentNotification) &&
        Objects.equals(this.notifyWhenDeploymentStatusChangedOnly, userAccountSettings.notifyWhenDeploymentStatusChangedOnly);
  }

  @Override
  public int hashCode() {
    return Objects.hash(successfulBuildNotification, failedBuildNotification, notifyWhenBuildStatusChangedOnly, successfulDeploymentNotification, failedDeploymentNotification, notifyWhenDeploymentStatusChangedOnly);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserAccountSettings {\n");
    
    sb.append("    successfulBuildNotification: ").append(toIndentedString(successfulBuildNotification)).append("\n");
    sb.append("    failedBuildNotification: ").append(toIndentedString(failedBuildNotification)).append("\n");
    sb.append("    notifyWhenBuildStatusChangedOnly: ").append(toIndentedString(notifyWhenBuildStatusChangedOnly)).append("\n");
    sb.append("    successfulDeploymentNotification: ").append(toIndentedString(successfulDeploymentNotification)).append("\n");
    sb.append("    failedDeploymentNotification: ").append(toIndentedString(failedDeploymentNotification)).append("\n");
    sb.append("    notifyWhenDeploymentStatusChangedOnly: ").append(toIndentedString(notifyWhenDeploymentStatusChangedOnly)).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