com.upstox.api.MultiOrderError Maven / Gradle / Ivy
/*
* OpenAPI definition
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v0
*
*
* 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 com.upstox.api;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
/**
* Error details for multi order request
*/
@Schema(description = "Error details for multi order request")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2024-10-09T09:11:10.678079+05:30[Asia/Kolkata]")
public class MultiOrderError {
@SerializedName("message")
private String message = null;
@SerializedName("error_code")
private String errorCode = null;
@SerializedName("property_path")
private String propertyPath = null;
@SerializedName("invalid_value")
private Object invalidValue = null;
@SerializedName("correlation_id")
private String correlationId = null;
public MultiOrderError message(String message) {
this.message = message;
return this;
}
/**
* Verbose message for the error state
* @return message
**/
@Schema(description = "Verbose message for the error state")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public MultiOrderError errorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* Get errorCode
* @return errorCode
**/
@Schema(description = "")
public String getErrorCode() {
return errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public MultiOrderError propertyPath(String propertyPath) {
this.propertyPath = propertyPath;
return this;
}
/**
* Get propertyPath
* @return propertyPath
**/
@Schema(description = "")
public String getPropertyPath() {
return propertyPath;
}
public void setPropertyPath(String propertyPath) {
this.propertyPath = propertyPath;
}
public MultiOrderError invalidValue(Object invalidValue) {
this.invalidValue = invalidValue;
return this;
}
/**
* Get invalidValue
* @return invalidValue
**/
@Schema(description = "")
public Object getInvalidValue() {
return invalidValue;
}
public void setInvalidValue(Object invalidValue) {
this.invalidValue = invalidValue;
}
/**
* A unique identifier for tracking individual orders within the batch
* @return correlationId
**/
@Schema(example = "213fsf2324", description = "A unique identifier for tracking individual orders within the batch")
public String getCorrelationId() {
return correlationId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MultiOrderError multiOrderError = (MultiOrderError) o;
return Objects.equals(this.errorCode, multiOrderError.errorCode) &&
Objects.equals(this.message, multiOrderError.message) &&
Objects.equals(this.propertyPath, multiOrderError.propertyPath) &&
Objects.equals(this.invalidValue, multiOrderError.invalidValue) &&
Objects.equals(this.errorCode, multiOrderError.errorCode) &&
Objects.equals(this.propertyPath, multiOrderError.propertyPath) &&
Objects.equals(this.invalidValue, multiOrderError.invalidValue) &&
Objects.equals(this.correlationId, multiOrderError.correlationId);
}
@Override
public int hashCode() {
return Objects.hash(errorCode, message, propertyPath, invalidValue, errorCode, propertyPath, invalidValue, correlationId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MultiOrderError {\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" propertyPath: ").append(toIndentedString(propertyPath)).append("\n");
sb.append(" invalidValue: ").append(toIndentedString(invalidValue)).append("\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" propertyPath: ").append(toIndentedString(propertyPath)).append("\n");
sb.append(" invalidValue: ").append(toIndentedString(invalidValue)).append("\n");
sb.append(" correlationId: ").append(toIndentedString(correlationId)).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 ");
}
}