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

Model.InlineResponse4006 Maven / Gradle / Ivy

There is a newer version: 0.0.8
Show newest version
/*
 * CyberSource Merged Spec
 * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
 *
 * OpenAPI spec version: 0.0.1
 * 
 *
 * 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 Model;

import java.util.Objects;
import java.util.Arrays;
import Model.InlineResponse4006Fields;
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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * Error Bean
 */
@ApiModel(description = "Error Bean")

public class InlineResponse4006 {
  @SerializedName("code")
  private String code = null;

  @SerializedName("message")
  private String message = null;

  @SerializedName("localizationKey")
  private String localizationKey = null;

  @SerializedName("correlationId")
  private String correlationId = null;

  @SerializedName("detail")
  private String detail = null;

  @SerializedName("fields")
  private List fields = null;

  public InlineResponse4006 code(String code) {
    this.code = code;
    return this;
  }

   /**
   * Error code
   * @return code
  **/
  @ApiModelProperty(required = true, value = "Error code")
  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public InlineResponse4006 message(String message) {
    this.message = message;
    return this;
  }

   /**
   * Error message
   * @return message
  **/
  @ApiModelProperty(required = true, value = "Error message")
  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public InlineResponse4006 localizationKey(String localizationKey) {
    this.localizationKey = localizationKey;
    return this;
  }

   /**
   * Localization Key Name
   * @return localizationKey
  **/
  @ApiModelProperty(value = "Localization Key Name")
  public String getLocalizationKey() {
    return localizationKey;
  }

  public void setLocalizationKey(String localizationKey) {
    this.localizationKey = localizationKey;
  }

  public InlineResponse4006 correlationId(String correlationId) {
    this.correlationId = correlationId;
    return this;
  }

   /**
   * Correlation Id
   * @return correlationId
  **/
  @ApiModelProperty(value = "Correlation Id")
  public String getCorrelationId() {
    return correlationId;
  }

  public void setCorrelationId(String correlationId) {
    this.correlationId = correlationId;
  }

  public InlineResponse4006 detail(String detail) {
    this.detail = detail;
    return this;
  }

   /**
   * Error Detail
   * @return detail
  **/
  @ApiModelProperty(value = "Error Detail")
  public String getDetail() {
    return detail;
  }

  public void setDetail(String detail) {
    this.detail = detail;
  }

  public InlineResponse4006 fields(List fields) {
    this.fields = fields;
    return this;
  }

  public InlineResponse4006 addFieldsItem(InlineResponse4006Fields fieldsItem) {
    if (this.fields == null) {
      this.fields = new ArrayList();
    }
    this.fields.add(fieldsItem);
    return this;
  }

   /**
   * Error fields List
   * @return fields
  **/
  @ApiModelProperty(value = "Error fields List")
  public List getFields() {
    return fields;
  }

  public void setFields(List fields) {
    this.fields = fields;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InlineResponse4006 inlineResponse4006 = (InlineResponse4006) o;
    return Objects.equals(this.code, inlineResponse4006.code) &&
        Objects.equals(this.message, inlineResponse4006.message) &&
        Objects.equals(this.localizationKey, inlineResponse4006.localizationKey) &&
        Objects.equals(this.correlationId, inlineResponse4006.correlationId) &&
        Objects.equals(this.detail, inlineResponse4006.detail) &&
        Objects.equals(this.fields, inlineResponse4006.fields);
  }

  @Override
  public int hashCode() {
    return Objects.hash(code, message, localizationKey, correlationId, detail, fields);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InlineResponse4006 {\n");
    
    if (code != null) sb.append("    code: ").append(toIndentedString(code)).append("\n");
    if (message != null) sb.append("    message: ").append(toIndentedString(message)).append("\n");
    if (localizationKey != null) sb.append("    localizationKey: ").append(toIndentedString(localizationKey)).append("\n");
    if (correlationId != null) sb.append("    correlationId: ").append(toIndentedString(correlationId)).append("\n");
    if (detail != null) sb.append("    detail: ").append(toIndentedString(detail)).append("\n");
    if (fields != null) sb.append("    fields: ").append(toIndentedString(fields)).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