org.finra.herd.sdk.model.JdbcExecutionRequest Maven / Gradle / Ivy
/*
* 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.JdbcConnection;
import org.finra.herd.sdk.model.JdbcStatement;
import org.finra.herd.sdk.model.S3PropertiesLocation;
/**
* JdbcExecutionRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class JdbcExecutionRequest {
@JsonProperty("connection")
private JdbcConnection connection = null;
@JsonProperty("statements")
private List statements = null;
@JsonProperty("s3PropertiesLocation")
private S3PropertiesLocation s3PropertiesLocation = null;
public JdbcExecutionRequest connection(JdbcConnection connection) {
this.connection = connection;
return this;
}
/**
* Get connection
* @return connection
**/
@ApiModelProperty(required = true, value = "")
public JdbcConnection getConnection() {
return connection;
}
public void setConnection(JdbcConnection connection) {
this.connection = connection;
}
public JdbcExecutionRequest statements(List statements) {
this.statements = statements;
return this;
}
public JdbcExecutionRequest addStatementsItem(JdbcStatement statementsItem) {
if (this.statements == null) {
this.statements = new ArrayList();
}
this.statements.add(statementsItem);
return this;
}
/**
* Get statements
* @return statements
**/
@ApiModelProperty(value = "")
public List getStatements() {
return statements;
}
public void setStatements(List statements) {
this.statements = statements;
}
public JdbcExecutionRequest 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;
}
JdbcExecutionRequest jdbcExecutionRequest = (JdbcExecutionRequest) o;
return Objects.equals(this.connection, jdbcExecutionRequest.connection) &&
Objects.equals(this.statements, jdbcExecutionRequest.statements) &&
Objects.equals(this.s3PropertiesLocation, jdbcExecutionRequest.s3PropertiesLocation);
}
@Override
public int hashCode() {
return Objects.hash(connection, statements, s3PropertiesLocation);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class JdbcExecutionRequest {\n");
sb.append(" connection: ").append(toIndentedString(connection)).append("\n");
sb.append(" statements: ").append(toIndentedString(statements)).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 ");
}
}