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

org.finra.herd.sdk.model.JobSignalRequest Maven / Gradle / Ivy

There is a newer version: 0.160.0
Show newest version
/*
 * herd-external
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * OpenAPI spec version: 0.125.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.finra.herd.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.finra.herd.sdk.model.Parameter;
import org.finra.herd.sdk.model.S3PropertiesLocation;

/**
 * JobSignalRequest
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class JobSignalRequest {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("receiveTaskId")
  private String receiveTaskId = null;

  @JsonProperty("parameters")
  private List parameters = null;

  @JsonProperty("s3PropertiesLocation")
  private S3PropertiesLocation s3PropertiesLocation = null;

  public JobSignalRequest id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The job id that uniquely identifies the previously submitted job
   * @return id
  **/
  @ApiModelProperty(required = true, value = "The job id that uniquely identifies the previously submitted job")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public JobSignalRequest receiveTaskId(String receiveTaskId) {
    this.receiveTaskId = receiveTaskId;
    return this;
  }

   /**
   * The task Id of the receive task in the job workflow to signal. The job must be waiting on this task at the time of this call                
   * @return receiveTaskId
  **/
  @ApiModelProperty(required = true, value = "The task Id of the receive task in the job workflow to signal. The job must be waiting on this task at the time of this call                ")
  public String getReceiveTaskId() {
    return receiveTaskId;
  }

  public void setReceiveTaskId(String receiveTaskId) {
    this.receiveTaskId = receiveTaskId;
  }

  public JobSignalRequest parameters(List parameters) {
    this.parameters = parameters;
    return this;
  }

  public JobSignalRequest addParametersItem(Parameter parametersItem) {
    if (this.parameters == null) {
      this.parameters = new ArrayList();
    }
    this.parameters.add(parametersItem);
    return this;
  }

   /**
   * List of key/value pairs that will be made available to the job
   * @return parameters
  **/
  @ApiModelProperty(value = "List of key/value pairs that will be made available to the job")
  public List getParameters() {
    return parameters;
  }

  public void setParameters(List parameters) {
    this.parameters = parameters;
  }

  public JobSignalRequest s3PropertiesLocation(S3PropertiesLocation s3PropertiesLocation) {
    this.s3PropertiesLocation = s3PropertiesLocation;
    return this;
  }

   /**
   * Get s3PropertiesLocation
   * @return s3PropertiesLocation
  **/
  @ApiModelProperty(value = "")
  public S3PropertiesLocation getS3PropertiesLocation() {
    return s3PropertiesLocation;
  }

  public void setS3PropertiesLocation(S3PropertiesLocation s3PropertiesLocation) {
    this.s3PropertiesLocation = s3PropertiesLocation;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    JobSignalRequest jobSignalRequest = (JobSignalRequest) o;
    return Objects.equals(this.id, jobSignalRequest.id) &&
        Objects.equals(this.receiveTaskId, jobSignalRequest.receiveTaskId) &&
        Objects.equals(this.parameters, jobSignalRequest.parameters) &&
        Objects.equals(this.s3PropertiesLocation, jobSignalRequest.s3PropertiesLocation);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, receiveTaskId, parameters, s3PropertiesLocation);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class JobSignalRequest {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    receiveTaskId: ").append(toIndentedString(receiveTaskId)).append("\n");
    sb.append("    parameters: ").append(toIndentedString(parameters)).append("\n");
    sb.append("    s3PropertiesLocation: ").append(toIndentedString(s3PropertiesLocation)).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