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

com.conekta.model.LogsResponseData Maven / Gradle / Ivy

Go to download

This is a java library that allows interaction with https://api.conekta.io API.

The newest version!
/*
 * Conekta API
 * Conekta sdk
 *
 * The version of the OpenAPI document: 2.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.conekta.model;

import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
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 java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.conekta.JSON;


/**
 * LogsResponseData
 */
@JsonPropertyOrder({
  LogsResponseData.JSON_PROPERTY_CREATED_AT,
  LogsResponseData.JSON_PROPERTY_ID,
  LogsResponseData.JSON_PROPERTY_IP_ADDRESS,
  LogsResponseData.JSON_PROPERTY_LIVEMODE,
  LogsResponseData.JSON_PROPERTY_LOGGABLE_ID,
  LogsResponseData.JSON_PROPERTY_LOGGABLE_TYPE,
  LogsResponseData.JSON_PROPERTY_METHOD,
  LogsResponseData.JSON_PROPERTY_OAUTH_TOKEN_ID,
  LogsResponseData.JSON_PROPERTY_QUERY_STRING,
  LogsResponseData.JSON_PROPERTY_RELATED,
  LogsResponseData.JSON_PROPERTY_REQUEST_BODY,
  LogsResponseData.JSON_PROPERTY_REQUEST_HEADERS,
  LogsResponseData.JSON_PROPERTY_RESPONSE_BODY,
  LogsResponseData.JSON_PROPERTY_RESPONSE_HEADERS,
  LogsResponseData.JSON_PROPERTY_SEARCHABLE_TAGS,
  LogsResponseData.JSON_PROPERTY_STATUS,
  LogsResponseData.JSON_PROPERTY_UPDATED_AT,
  LogsResponseData.JSON_PROPERTY_URL,
  LogsResponseData.JSON_PROPERTY_USER_ACCOUNT_ID,
  LogsResponseData.JSON_PROPERTY_VERSION
})
@JsonTypeName("logs_response_data")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
public class LogsResponseData {
  public static final String JSON_PROPERTY_CREATED_AT = "created_at";
  private Long createdAt;

  public static final String JSON_PROPERTY_ID = "id";
  private String id;

  public static final String JSON_PROPERTY_IP_ADDRESS = "ip_address";
  private String ipAddress;

  public static final String JSON_PROPERTY_LIVEMODE = "livemode";
  private Boolean livemode;

  public static final String JSON_PROPERTY_LOGGABLE_ID = "loggable_id";
  private String loggableId;

  public static final String JSON_PROPERTY_LOGGABLE_TYPE = "loggable_type";
  private String loggableType;

  public static final String JSON_PROPERTY_METHOD = "method";
  private String method;

  public static final String JSON_PROPERTY_OAUTH_TOKEN_ID = "oauth_token_id";
  private String oauthTokenId;

  public static final String JSON_PROPERTY_QUERY_STRING = "query_string";
  private Map queryString = new HashMap<>();

  public static final String JSON_PROPERTY_RELATED = "related";
  private String related;

  public static final String JSON_PROPERTY_REQUEST_BODY = "request_body";
  private Object requestBody;

  public static final String JSON_PROPERTY_REQUEST_HEADERS = "request_headers";
  private Map requestHeaders = new HashMap<>();

  public static final String JSON_PROPERTY_RESPONSE_BODY = "response_body";
  private Object responseBody;

  public static final String JSON_PROPERTY_RESPONSE_HEADERS = "response_headers";
  private Map responseHeaders = new HashMap<>();

  public static final String JSON_PROPERTY_SEARCHABLE_TAGS = "searchable_tags";
  private List searchableTags = new ArrayList<>();

  public static final String JSON_PROPERTY_STATUS = "status";
  private String status;

  public static final String JSON_PROPERTY_UPDATED_AT = "updated_at";
  private String updatedAt;

  public static final String JSON_PROPERTY_URL = "url";
  private String url;

  public static final String JSON_PROPERTY_USER_ACCOUNT_ID = "user_account_id";
  private String userAccountId;

  public static final String JSON_PROPERTY_VERSION = "version";
  private String version;

  public LogsResponseData() { 
  }

  public LogsResponseData createdAt(Long createdAt) {
    this.createdAt = createdAt;
    return this;
  }

   /**
   * Get createdAt
   * @return createdAt
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_CREATED_AT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Long getCreatedAt() {
    return createdAt;
  }


  @JsonProperty(JSON_PROPERTY_CREATED_AT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCreatedAt(Long createdAt) {
    this.createdAt = createdAt;
  }


  public LogsResponseData id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getId() {
    return id;
  }


  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setId(String id) {
    this.id = id;
  }


  public LogsResponseData ipAddress(String ipAddress) {
    this.ipAddress = ipAddress;
    return this;
  }

   /**
   * Get ipAddress
   * @return ipAddress
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_IP_ADDRESS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getIpAddress() {
    return ipAddress;
  }


  @JsonProperty(JSON_PROPERTY_IP_ADDRESS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setIpAddress(String ipAddress) {
    this.ipAddress = ipAddress;
  }


  public LogsResponseData livemode(Boolean livemode) {
    this.livemode = livemode;
    return this;
  }

   /**
   * Get livemode
   * @return livemode
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LIVEMODE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getLivemode() {
    return livemode;
  }


  @JsonProperty(JSON_PROPERTY_LIVEMODE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLivemode(Boolean livemode) {
    this.livemode = livemode;
  }


  public LogsResponseData loggableId(String loggableId) {
    this.loggableId = loggableId;
    return this;
  }

   /**
   * Get loggableId
   * @return loggableId
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LOGGABLE_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getLoggableId() {
    return loggableId;
  }


  @JsonProperty(JSON_PROPERTY_LOGGABLE_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLoggableId(String loggableId) {
    this.loggableId = loggableId;
  }


  public LogsResponseData loggableType(String loggableType) {
    this.loggableType = loggableType;
    return this;
  }

   /**
   * Get loggableType
   * @return loggableType
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LOGGABLE_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getLoggableType() {
    return loggableType;
  }


  @JsonProperty(JSON_PROPERTY_LOGGABLE_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLoggableType(String loggableType) {
    this.loggableType = loggableType;
  }


  public LogsResponseData method(String method) {
    this.method = method;
    return this;
  }

   /**
   * Get method
   * @return method
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_METHOD)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getMethod() {
    return method;
  }


  @JsonProperty(JSON_PROPERTY_METHOD)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMethod(String method) {
    this.method = method;
  }


  public LogsResponseData oauthTokenId(String oauthTokenId) {
    this.oauthTokenId = oauthTokenId;
    return this;
  }

   /**
   * Get oauthTokenId
   * @return oauthTokenId
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_OAUTH_TOKEN_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getOauthTokenId() {
    return oauthTokenId;
  }


  @JsonProperty(JSON_PROPERTY_OAUTH_TOKEN_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOauthTokenId(String oauthTokenId) {
    this.oauthTokenId = oauthTokenId;
  }


  public LogsResponseData queryString(Map queryString) {
    this.queryString = queryString;
    return this;
  }

  public LogsResponseData putQueryStringItem(String key, Object queryStringItem) {
    if (this.queryString == null) {
      this.queryString = new HashMap<>();
    }
    this.queryString.put(key, queryStringItem);
    return this;
  }

   /**
   * Get queryString
   * @return queryString
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_QUERY_STRING)
  @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)

  public Map getQueryString() {
    return queryString;
  }


  @JsonProperty(JSON_PROPERTY_QUERY_STRING)
  @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
  public void setQueryString(Map queryString) {
    this.queryString = queryString;
  }


  public LogsResponseData related(String related) {
    this.related = related;
    return this;
  }

   /**
   * Get related
   * @return related
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_RELATED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getRelated() {
    return related;
  }


  @JsonProperty(JSON_PROPERTY_RELATED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRelated(String related) {
    this.related = related;
  }


  public LogsResponseData requestBody(Object requestBody) {
    this.requestBody = requestBody;
    return this;
  }

   /**
   * Get requestBody
   * @return requestBody
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_REQUEST_BODY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Object getRequestBody() {
    return requestBody;
  }


  @JsonProperty(JSON_PROPERTY_REQUEST_BODY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRequestBody(Object requestBody) {
    this.requestBody = requestBody;
  }


  public LogsResponseData requestHeaders(Map requestHeaders) {
    this.requestHeaders = requestHeaders;
    return this;
  }

  public LogsResponseData putRequestHeadersItem(String key, String requestHeadersItem) {
    if (this.requestHeaders == null) {
      this.requestHeaders = new HashMap<>();
    }
    this.requestHeaders.put(key, requestHeadersItem);
    return this;
  }

   /**
   * Get requestHeaders
   * @return requestHeaders
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_REQUEST_HEADERS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Map getRequestHeaders() {
    return requestHeaders;
  }


  @JsonProperty(JSON_PROPERTY_REQUEST_HEADERS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRequestHeaders(Map requestHeaders) {
    this.requestHeaders = requestHeaders;
  }


  public LogsResponseData responseBody(Object responseBody) {
    this.responseBody = responseBody;
    return this;
  }

   /**
   * Get responseBody
   * @return responseBody
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_RESPONSE_BODY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Object getResponseBody() {
    return responseBody;
  }


  @JsonProperty(JSON_PROPERTY_RESPONSE_BODY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setResponseBody(Object responseBody) {
    this.responseBody = responseBody;
  }


  public LogsResponseData responseHeaders(Map responseHeaders) {
    this.responseHeaders = responseHeaders;
    return this;
  }

  public LogsResponseData putResponseHeadersItem(String key, String responseHeadersItem) {
    if (this.responseHeaders == null) {
      this.responseHeaders = new HashMap<>();
    }
    this.responseHeaders.put(key, responseHeadersItem);
    return this;
  }

   /**
   * Get responseHeaders
   * @return responseHeaders
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_RESPONSE_HEADERS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Map getResponseHeaders() {
    return responseHeaders;
  }


  @JsonProperty(JSON_PROPERTY_RESPONSE_HEADERS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setResponseHeaders(Map responseHeaders) {
    this.responseHeaders = responseHeaders;
  }


  public LogsResponseData searchableTags(List searchableTags) {
    this.searchableTags = searchableTags;
    return this;
  }

  public LogsResponseData addSearchableTagsItem(String searchableTagsItem) {
    if (this.searchableTags == null) {
      this.searchableTags = new ArrayList<>();
    }
    this.searchableTags.add(searchableTagsItem);
    return this;
  }

   /**
   * Get searchableTags
   * @return searchableTags
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_SEARCHABLE_TAGS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getSearchableTags() {
    return searchableTags;
  }


  @JsonProperty(JSON_PROPERTY_SEARCHABLE_TAGS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setSearchableTags(List searchableTags) {
    this.searchableTags = searchableTags;
  }


  public LogsResponseData status(String status) {
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @javax.annotation.Nullable
  @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 LogsResponseData updatedAt(String updatedAt) {
    this.updatedAt = updatedAt;
    return this;
  }

   /**
   * Get updatedAt
   * @return updatedAt
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_UPDATED_AT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getUpdatedAt() {
    return updatedAt;
  }


  @JsonProperty(JSON_PROPERTY_UPDATED_AT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setUpdatedAt(String updatedAt) {
    this.updatedAt = updatedAt;
  }


  public LogsResponseData url(String url) {
    this.url = url;
    return this;
  }

   /**
   * Get url
   * @return url
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_URL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getUrl() {
    return url;
  }


  @JsonProperty(JSON_PROPERTY_URL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setUrl(String url) {
    this.url = url;
  }


  public LogsResponseData userAccountId(String userAccountId) {
    this.userAccountId = userAccountId;
    return this;
  }

   /**
   * Get userAccountId
   * @return userAccountId
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_USER_ACCOUNT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getUserAccountId() {
    return userAccountId;
  }


  @JsonProperty(JSON_PROPERTY_USER_ACCOUNT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setUserAccountId(String userAccountId) {
    this.userAccountId = userAccountId;
  }


  public LogsResponseData version(String version) {
    this.version = version;
    return this;
  }

   /**
   * Get version
   * @return version
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_VERSION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getVersion() {
    return version;
  }


  @JsonProperty(JSON_PROPERTY_VERSION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setVersion(String version) {
    this.version = version;
  }


  /**
   * Return true if this logs_response_data object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LogsResponseData logsResponseData = (LogsResponseData) o;
    return Objects.equals(this.createdAt, logsResponseData.createdAt) &&
        Objects.equals(this.id, logsResponseData.id) &&
        Objects.equals(this.ipAddress, logsResponseData.ipAddress) &&
        Objects.equals(this.livemode, logsResponseData.livemode) &&
        Objects.equals(this.loggableId, logsResponseData.loggableId) &&
        Objects.equals(this.loggableType, logsResponseData.loggableType) &&
        Objects.equals(this.method, logsResponseData.method) &&
        Objects.equals(this.oauthTokenId, logsResponseData.oauthTokenId) &&
        Objects.equals(this.queryString, logsResponseData.queryString) &&
        Objects.equals(this.related, logsResponseData.related) &&
        Objects.equals(this.requestBody, logsResponseData.requestBody) &&
        Objects.equals(this.requestHeaders, logsResponseData.requestHeaders) &&
        Objects.equals(this.responseBody, logsResponseData.responseBody) &&
        Objects.equals(this.responseHeaders, logsResponseData.responseHeaders) &&
        Objects.equals(this.searchableTags, logsResponseData.searchableTags) &&
        Objects.equals(this.status, logsResponseData.status) &&
        Objects.equals(this.updatedAt, logsResponseData.updatedAt) &&
        Objects.equals(this.url, logsResponseData.url) &&
        Objects.equals(this.userAccountId, logsResponseData.userAccountId) &&
        Objects.equals(this.version, logsResponseData.version);
  }

  @Override
  public int hashCode() {
    return Objects.hash(createdAt, id, ipAddress, livemode, loggableId, loggableType, method, oauthTokenId, queryString, related, requestBody, requestHeaders, responseBody, responseHeaders, searchableTags, status, updatedAt, url, userAccountId, version);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class LogsResponseData {\n");
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    ipAddress: ").append(toIndentedString(ipAddress)).append("\n");
    sb.append("    livemode: ").append(toIndentedString(livemode)).append("\n");
    sb.append("    loggableId: ").append(toIndentedString(loggableId)).append("\n");
    sb.append("    loggableType: ").append(toIndentedString(loggableType)).append("\n");
    sb.append("    method: ").append(toIndentedString(method)).append("\n");
    sb.append("    oauthTokenId: ").append(toIndentedString(oauthTokenId)).append("\n");
    sb.append("    queryString: ").append(toIndentedString(queryString)).append("\n");
    sb.append("    related: ").append(toIndentedString(related)).append("\n");
    sb.append("    requestBody: ").append(toIndentedString(requestBody)).append("\n");
    sb.append("    requestHeaders: ").append(toIndentedString(requestHeaders)).append("\n");
    sb.append("    responseBody: ").append(toIndentedString(responseBody)).append("\n");
    sb.append("    responseHeaders: ").append(toIndentedString(responseHeaders)).append("\n");
    sb.append("    searchableTags: ").append(toIndentedString(searchableTags)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
    sb.append("    url: ").append(toIndentedString(url)).append("\n");
    sb.append("    userAccountId: ").append(toIndentedString(userAccountId)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).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