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

Model.InlineResponseDefaultResponseStatus Maven / Gradle / Ivy

/*
 * 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.InlineResponseDefaultResponseStatusDetails;
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.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * InlineResponseDefaultResponseStatus
 */

public class InlineResponseDefaultResponseStatus {
  @SerializedName("status")
  private BigDecimal status = null;

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

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

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

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

  public InlineResponseDefaultResponseStatus status(BigDecimal status) {
    this.status = status;
    return this;
  }

   /**
   * HTTP Status code.
   * @return status
  **/
  @ApiModelProperty(value = "HTTP Status code.")
  public BigDecimal getStatus() {
    return status;
  }

  public void setStatus(BigDecimal status) {
    this.status = status;
  }

  public InlineResponseDefaultResponseStatus reason(String reason) {
    this.reason = reason;
    return this;
  }

   /**
   * Error Reason Code.
   * @return reason
  **/
  @ApiModelProperty(value = "Error Reason Code.")
  public String getReason() {
    return reason;
  }

  public void setReason(String reason) {
    this.reason = reason;
  }

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

   /**
   * Error Message.
   * @return message
  **/
  @ApiModelProperty(value = "Error Message.")
  public String getMessage() {
    return message;
  }

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

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

   /**
   * API correlation ID.
   * @return correlationId
  **/
  @ApiModelProperty(value = "API correlation ID.")
  public String getCorrelationId() {
    return correlationId;
  }

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

  public InlineResponseDefaultResponseStatus details(List details) {
    this.details = details;
    return this;
  }

  public InlineResponseDefaultResponseStatus addDetailsItem(InlineResponseDefaultResponseStatusDetails detailsItem) {
    if (this.details == null) {
      this.details = new ArrayList();
    }
    this.details.add(detailsItem);
    return this;
  }

   /**
   * Get details
   * @return details
  **/
  @ApiModelProperty(value = "")
  public List getDetails() {
    return details;
  }

  public void setDetails(List details) {
    this.details = details;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InlineResponseDefaultResponseStatus inlineResponseDefaultResponseStatus = (InlineResponseDefaultResponseStatus) o;
    return Objects.equals(this.status, inlineResponseDefaultResponseStatus.status) &&
        Objects.equals(this.reason, inlineResponseDefaultResponseStatus.reason) &&
        Objects.equals(this.message, inlineResponseDefaultResponseStatus.message) &&
        Objects.equals(this.correlationId, inlineResponseDefaultResponseStatus.correlationId) &&
        Objects.equals(this.details, inlineResponseDefaultResponseStatus.details);
  }

  @Override
  public int hashCode() {
    return Objects.hash(status, reason, message, correlationId, details);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InlineResponseDefaultResponseStatus {\n");
    
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    reason: ").append(toIndentedString(reason)).append("\n");
    sb.append("    message: ").append(toIndentedString(message)).append("\n");
    sb.append("    correlationId: ").append(toIndentedString(correlationId)).append("\n");
    sb.append("    details: ").append(toIndentedString(details)).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