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.
io.logicdrop.openapi.models.InlineResponse200 Maven / Gradle / Ivy
/*
* Sparks OpenAPI
* Generated documentation for the Logicdrop Sparks API and OpenAPI clients. Logicdrop Sparks lets users build rules, analyze data, and automate documents. Use it to make decisions faster, generate documents better, and learn from your data. ### Documentation - [User Documentation](https://docs.logicdrop.com) ### Modules - [Sparks Compute](https://docs.logicdrop.com/rules/introduction) - [Sparks Decision Tables](https://docs.logicdrop.com/rules/authoring-decision-tables) - [Sparks Documents](https://docs.logicdrop.com/documents/introduction) ### Clients - [OpenAPI Clients](https://docs.logicdrop.com/development/sample-clients) ### Security - [Authorizing API Requests](https://docs.logicdrop.com/development/authorization)
*
* The version of the OpenAPI document: v_VERSION_, build# _BUILD_
* 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 io.logicdrop.openapi.models;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.logicdrop.openapi.models.InlineResponse200Cookies;
import io.logicdrop.openapi.models.InlineResponse200EntityTag;
import io.logicdrop.openapi.models.InlineResponse200Language;
import io.logicdrop.openapi.models.InlineResponse200Links;
import io.logicdrop.openapi.models.InlineResponse200MediaType;
import io.logicdrop.openapi.models.InlineResponse200StatusInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.net.URI;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* InlineResponse200
*/
@JsonPropertyOrder({
InlineResponse200.JSON_PROPERTY_LENGTH,
InlineResponse200.JSON_PROPERTY_LOCATION,
InlineResponse200.JSON_PROPERTY_LANGUAGE,
InlineResponse200.JSON_PROPERTY_LAST_MODIFIED,
InlineResponse200.JSON_PROPERTY_DATE,
InlineResponse200.JSON_PROPERTY_METADATA,
InlineResponse200.JSON_PROPERTY_STATUS,
InlineResponse200.JSON_PROPERTY_ENTITY,
InlineResponse200.JSON_PROPERTY_COOKIES,
InlineResponse200.JSON_PROPERTY_LINKS,
InlineResponse200.JSON_PROPERTY_STATUS_INFO,
InlineResponse200.JSON_PROPERTY_MEDIA_TYPE,
InlineResponse200.JSON_PROPERTY_ALLOWED_METHODS,
InlineResponse200.JSON_PROPERTY_ENTITY_TAG,
InlineResponse200.JSON_PROPERTY_STRING_HEADERS,
InlineResponse200.JSON_PROPERTY_HEADERS
})
public class InlineResponse200 {
public static final String JSON_PROPERTY_LENGTH = "length";
private Integer length;
public static final String JSON_PROPERTY_LOCATION = "location";
private URI location;
public static final String JSON_PROPERTY_LANGUAGE = "language";
private InlineResponse200Language language;
public static final String JSON_PROPERTY_LAST_MODIFIED = "lastModified";
private OffsetDateTime lastModified;
public static final String JSON_PROPERTY_DATE = "date";
private OffsetDateTime date;
public static final String JSON_PROPERTY_METADATA = "metadata";
private Map> metadata = null;
public static final String JSON_PROPERTY_STATUS = "status";
private Integer status;
public static final String JSON_PROPERTY_ENTITY = "entity";
private Object entity;
public static final String JSON_PROPERTY_COOKIES = "cookies";
private Map cookies = null;
public static final String JSON_PROPERTY_LINKS = "links";
private List links = null;
public static final String JSON_PROPERTY_STATUS_INFO = "statusInfo";
private InlineResponse200StatusInfo statusInfo;
public static final String JSON_PROPERTY_MEDIA_TYPE = "mediaType";
private InlineResponse200MediaType mediaType;
public static final String JSON_PROPERTY_ALLOWED_METHODS = "allowedMethods";
private List allowedMethods = null;
public static final String JSON_PROPERTY_ENTITY_TAG = "entityTag";
private InlineResponse200EntityTag entityTag;
public static final String JSON_PROPERTY_STRING_HEADERS = "stringHeaders";
private Map> stringHeaders = null;
public static final String JSON_PROPERTY_HEADERS = "headers";
private Map> headers = null;
public InlineResponse200 length(Integer length) {
this.length = length;
return this;
}
/**
* Get length
* @return length
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LENGTH)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getLength() {
return length;
}
public void setLength(Integer length) {
this.length = length;
}
public InlineResponse200 location(URI location) {
this.location = location;
return this;
}
/**
* Get location
* @return location
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LOCATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public URI getLocation() {
return location;
}
public void setLocation(URI location) {
this.location = location;
}
public InlineResponse200 language(InlineResponse200Language language) {
this.language = language;
return this;
}
/**
* Get language
* @return language
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LANGUAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public InlineResponse200Language getLanguage() {
return language;
}
public void setLanguage(InlineResponse200Language language) {
this.language = language;
}
public InlineResponse200 lastModified(OffsetDateTime lastModified) {
this.lastModified = lastModified;
return this;
}
/**
* Get lastModified
* @return lastModified
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LAST_MODIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getLastModified() {
return lastModified;
}
public void setLastModified(OffsetDateTime lastModified) {
this.lastModified = lastModified;
}
public InlineResponse200 date(OffsetDateTime date) {
this.date = date;
return this;
}
/**
* Get date
* @return date
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getDate() {
return date;
}
public void setDate(OffsetDateTime date) {
this.date = date;
}
public InlineResponse200 metadata(Map> metadata) {
this.metadata = metadata;
return this;
}
public InlineResponse200 putMetadataItem(String key, List metadataItem) {
if (this.metadata == null) {
this.metadata = new HashMap<>();
}
this.metadata.put(key, metadataItem);
return this;
}
/**
* Get metadata
* @return metadata
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map> getMetadata() {
return metadata;
}
public void setMetadata(Map> metadata) {
this.metadata = metadata;
}
public InlineResponse200 status(Integer status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public InlineResponse200 entity(Object entity) {
this.entity = entity;
return this;
}
/**
* Get entity
* @return entity
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENTITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getEntity() {
return entity;
}
public void setEntity(Object entity) {
this.entity = entity;
}
public InlineResponse200 cookies(Map cookies) {
this.cookies = cookies;
return this;
}
public InlineResponse200 putCookiesItem(String key, InlineResponse200Cookies cookiesItem) {
if (this.cookies == null) {
this.cookies = new HashMap<>();
}
this.cookies.put(key, cookiesItem);
return this;
}
/**
* Get cookies
* @return cookies
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COOKIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getCookies() {
return cookies;
}
public void setCookies(Map cookies) {
this.cookies = cookies;
}
public InlineResponse200 links(List links) {
this.links = links;
return this;
}
public InlineResponse200 addLinksItem(InlineResponse200Links linksItem) {
if (this.links == null) {
this.links = new ArrayList<>();
}
this.links.add(linksItem);
return this;
}
/**
* Get links
* @return links
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LINKS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getLinks() {
return links;
}
public void setLinks(List links) {
this.links = links;
}
public InlineResponse200 statusInfo(InlineResponse200StatusInfo statusInfo) {
this.statusInfo = statusInfo;
return this;
}
/**
* Get statusInfo
* @return statusInfo
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STATUS_INFO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public InlineResponse200StatusInfo getStatusInfo() {
return statusInfo;
}
public void setStatusInfo(InlineResponse200StatusInfo statusInfo) {
this.statusInfo = statusInfo;
}
public InlineResponse200 mediaType(InlineResponse200MediaType mediaType) {
this.mediaType = mediaType;
return this;
}
/**
* Get mediaType
* @return mediaType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MEDIA_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public InlineResponse200MediaType getMediaType() {
return mediaType;
}
public void setMediaType(InlineResponse200MediaType mediaType) {
this.mediaType = mediaType;
}
public InlineResponse200 allowedMethods(List allowedMethods) {
this.allowedMethods = allowedMethods;
return this;
}
public InlineResponse200 addAllowedMethodsItem(String allowedMethodsItem) {
if (this.allowedMethods == null) {
this.allowedMethods = new ArrayList<>();
}
this.allowedMethods.add(allowedMethodsItem);
return this;
}
/**
* Get allowedMethods
* @return allowedMethods
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ALLOWED_METHODS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getAllowedMethods() {
return allowedMethods;
}
public void setAllowedMethods(List allowedMethods) {
this.allowedMethods = allowedMethods;
}
public InlineResponse200 entityTag(InlineResponse200EntityTag entityTag) {
this.entityTag = entityTag;
return this;
}
/**
* Get entityTag
* @return entityTag
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENTITY_TAG)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public InlineResponse200EntityTag getEntityTag() {
return entityTag;
}
public void setEntityTag(InlineResponse200EntityTag entityTag) {
this.entityTag = entityTag;
}
public InlineResponse200 stringHeaders(Map> stringHeaders) {
this.stringHeaders = stringHeaders;
return this;
}
public InlineResponse200 putStringHeadersItem(String key, List stringHeadersItem) {
if (this.stringHeaders == null) {
this.stringHeaders = new HashMap<>();
}
this.stringHeaders.put(key, stringHeadersItem);
return this;
}
/**
* Get stringHeaders
* @return stringHeaders
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STRING_HEADERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map> getStringHeaders() {
return stringHeaders;
}
public void setStringHeaders(Map> stringHeaders) {
this.stringHeaders = stringHeaders;
}
public InlineResponse200 headers(Map> headers) {
this.headers = headers;
return this;
}
public InlineResponse200 putHeadersItem(String key, List headersItem) {
if (this.headers == null) {
this.headers = new HashMap<>();
}
this.headers.put(key, headersItem);
return this;
}
/**
* Get headers
* @return headers
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_HEADERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map> getHeaders() {
return headers;
}
public void setHeaders(Map> headers) {
this.headers = headers;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InlineResponse200 inlineResponse200 = (InlineResponse200) o;
return Objects.equals(this.length, inlineResponse200.length) &&
Objects.equals(this.location, inlineResponse200.location) &&
Objects.equals(this.language, inlineResponse200.language) &&
Objects.equals(this.lastModified, inlineResponse200.lastModified) &&
Objects.equals(this.date, inlineResponse200.date) &&
Objects.equals(this.metadata, inlineResponse200.metadata) &&
Objects.equals(this.status, inlineResponse200.status) &&
Objects.equals(this.entity, inlineResponse200.entity) &&
Objects.equals(this.cookies, inlineResponse200.cookies) &&
Objects.equals(this.links, inlineResponse200.links) &&
Objects.equals(this.statusInfo, inlineResponse200.statusInfo) &&
Objects.equals(this.mediaType, inlineResponse200.mediaType) &&
Objects.equals(this.allowedMethods, inlineResponse200.allowedMethods) &&
Objects.equals(this.entityTag, inlineResponse200.entityTag) &&
Objects.equals(this.stringHeaders, inlineResponse200.stringHeaders) &&
Objects.equals(this.headers, inlineResponse200.headers);
}
@Override
public int hashCode() {
return Objects.hash(length, location, language, lastModified, date, metadata, status, entity, cookies, links, statusInfo, mediaType, allowedMethods, entityTag, stringHeaders, headers);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InlineResponse200 {\n");
sb.append(" length: ").append(toIndentedString(length)).append("\n");
sb.append(" location: ").append(toIndentedString(location)).append("\n");
sb.append(" language: ").append(toIndentedString(language)).append("\n");
sb.append(" lastModified: ").append(toIndentedString(lastModified)).append("\n");
sb.append(" date: ").append(toIndentedString(date)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" entity: ").append(toIndentedString(entity)).append("\n");
sb.append(" cookies: ").append(toIndentedString(cookies)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).append("\n");
sb.append(" statusInfo: ").append(toIndentedString(statusInfo)).append("\n");
sb.append(" mediaType: ").append(toIndentedString(mediaType)).append("\n");
sb.append(" allowedMethods: ").append(toIndentedString(allowedMethods)).append("\n");
sb.append(" entityTag: ").append(toIndentedString(entityTag)).append("\n");
sb.append(" stringHeaders: ").append(toIndentedString(stringHeaders)).append("\n");
sb.append(" headers: ").append(toIndentedString(headers)).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 ");
}
}