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

com.factset.sdk.FactSetFunds.models.ErrorResponse Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
/*
 * FactSet Funds API
 * FactSet Mutual Funds data offers over 50 fund- and share class-specific data points for mutual funds listed in the United States. 

FactSet Mutual Funds Reference provides fund-specific reference information as well as FactSet's proprietary classification system. It includes but is not limited to the following coverage * Fund descriptions * A seven-tier classification system * Leverage information * Fees and expenses * Portfolio managers FactSet Mutual Funds Time Series provides quantitative data items on a historical basis. It includes but is not limited to the following coverage * Net asset value * Fund flows * Assets under management * Total return * * The version of the OpenAPI document: 1.0.0 * Contact: [email protected] * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package com.factset.sdk.FactSetFunds.models; import java.util.Objects; import java.util.Arrays; import java.util.Map; import java.util.HashMap; import com.factset.sdk.FactSetFunds.models.ErrorResponseSubErrors; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.threeten.bp.OffsetDateTime; import java.io.Serializable; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.factset.sdk.FactSetFunds.JSON; /** * ErrorResponse */ @JsonPropertyOrder({ ErrorResponse.JSON_PROPERTY_STATUS, ErrorResponse.JSON_PROPERTY_TIMESTAMP, ErrorResponse.JSON_PROPERTY_PATH, ErrorResponse.JSON_PROPERTY_MESSAGE, ErrorResponse.JSON_PROPERTY_SUB_ERRORS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ErrorResponse implements Serializable { private static final long serialVersionUID = 1L; public static final String JSON_PROPERTY_STATUS = "status"; private String status; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private OffsetDateTime timestamp; public static final String JSON_PROPERTY_PATH = "path"; private String path; public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; public static final String JSON_PROPERTY_SUB_ERRORS = "subErrors"; private ErrorResponseSubErrors subErrors; public ErrorResponse status(String status) { this.status = status; return this; } /** * status * @return status **/ @javax.annotation.Nullable @ApiModelProperty(example = "Bad Request", value = "status") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStatus() { return status; } @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(String status) { this.status = status; } public ErrorResponse timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; return this; } /** * timestamp in YYYY-MM-DD HH:MM:SS.SSS * @return timestamp **/ @javax.annotation.Nullable @ApiModelProperty(value = "timestamp in YYYY-MM-DD HH:MM:SS.SSS") @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getTimestamp() { return timestamp; } @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; } public ErrorResponse path(String path) { this.path = path; return this; } /** * The Endpoint path {package}/version/{endpoint} * @return path **/ @javax.annotation.Nullable @ApiModelProperty(example = "/factset-funds/v1/superRegion", value = "The Endpoint path {package}/version/{endpoint}") @JsonProperty(JSON_PROPERTY_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPath() { return path; } @JsonProperty(JSON_PROPERTY_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPath(String path) { this.path = path; } public ErrorResponse message(String message) { this.message = message; return this; } /** * The plain text error message * @return message **/ @javax.annotation.Nullable @ApiModelProperty(example = "Validation Error", value = "The plain text error message") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } public ErrorResponse subErrors(ErrorResponseSubErrors subErrors) { this.subErrors = subErrors; return this; } /** * Get subErrors * @return subErrors **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ErrorResponseSubErrors getSubErrors() { return subErrors; } @JsonProperty(JSON_PROPERTY_SUB_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubErrors(ErrorResponseSubErrors subErrors) { this.subErrors = subErrors; } /** * Return true if this errorResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ErrorResponse errorResponse = (ErrorResponse) o; return Objects.equals(this.status, errorResponse.status) && Objects.equals(this.timestamp, errorResponse.timestamp) && Objects.equals(this.path, errorResponse.path) && Objects.equals(this.message, errorResponse.message) && Objects.equals(this.subErrors, errorResponse.subErrors); } @Override public int hashCode() { return Objects.hash(status, timestamp, path, message, subErrors); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ErrorResponse {\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" subErrors: ").append(toIndentedString(subErrors)).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(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy