All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.vertexvis.model.ApiError Maven / Gradle / Ivy
/*
* Vertex Platform API
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples, - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
*
* The version of the OpenAPI document: 1.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.vertexvis.model;
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 com.vertexvis.model.ApiErrorSource;
import com.vertexvis.model.Link;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* ApiError
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiError {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_LINKS = "links";
@SerializedName(SERIALIZED_NAME_LINKS)
private Map links = null;
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
private String status;
public static final String SERIALIZED_NAME_CODE = "code";
@SerializedName(SERIALIZED_NAME_CODE)
private String code;
public static final String SERIALIZED_NAME_TITLE = "title";
@SerializedName(SERIALIZED_NAME_TITLE)
private String title;
public static final String SERIALIZED_NAME_DETAIL = "detail";
@SerializedName(SERIALIZED_NAME_DETAIL)
private String detail;
public static final String SERIALIZED_NAME_SOURCE = "source";
@SerializedName(SERIALIZED_NAME_SOURCE)
private ApiErrorSource source;
public static final String SERIALIZED_NAME_META = "meta";
@SerializedName(SERIALIZED_NAME_META)
private Map meta = null;
public ApiError id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "7c46d4c3-e065-4eae-87ec-08233cf8743b", value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ApiError links(Map links) {
this.links = links;
return this;
}
public ApiError putLinksItem(String key, Link linksItem) {
if (this.links == null) {
this.links = new HashMap<>();
}
this.links.put(key, linksItem);
return this;
}
/**
* Get links
* @return links
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map getLinks() {
return links;
}
public void setLinks(Map links) {
this.links = links;
}
public ApiError status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "400", value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public ApiError code(String code) {
this.code = code;
return this;
}
/**
* Get code
* @return code
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "ValidationError", value = "")
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public ApiError title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "A validation error occurred.", value = "")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public ApiError detail(String detail) {
this.detail = detail;
return this;
}
/**
* Get detail
* @return detail
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "$.data.attributes.suppliedId: is missing but it is required", value = "")
public String getDetail() {
return detail;
}
public void setDetail(String detail) {
this.detail = detail;
}
public ApiError source(ApiErrorSource source) {
this.source = source;
return this;
}
/**
* Get source
* @return source
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public ApiErrorSource getSource() {
return source;
}
public void setSource(ApiErrorSource source) {
this.source = source;
}
public ApiError meta(Map meta) {
this.meta = meta;
return this;
}
public ApiError putMetaItem(String key, String metaItem) {
if (this.meta == null) {
this.meta = new HashMap<>();
}
this.meta.put(key, metaItem);
return this;
}
/**
* Get meta
* @return meta
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map getMeta() {
return meta;
}
public void setMeta(Map meta) {
this.meta = meta;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ApiError apiError = (ApiError) o;
return Objects.equals(this.id, apiError.id) &&
Objects.equals(this.links, apiError.links) &&
Objects.equals(this.status, apiError.status) &&
Objects.equals(this.code, apiError.code) &&
Objects.equals(this.title, apiError.title) &&
Objects.equals(this.detail, apiError.detail) &&
Objects.equals(this.source, apiError.source) &&
Objects.equals(this.meta, apiError.meta);
}
@Override
public int hashCode() {
return Objects.hash(id, links, status, code, title, detail, source, meta);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApiError {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" detail: ").append(toIndentedString(detail)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" meta: ").append(toIndentedString(meta)).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 ");
}
}