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

com.dominodatalab.api.model.DominoCommonGatewaySearchSearchResultGatewayDTO Maven / Gradle / Ivy

/*
 * Domino Data Lab API v4
 * This API is going to provide access to all the Domino functions available in the user interface. To authenticate your requests, include your API Key (which you can find on your account page) with the header X-Domino-Api-Key. 
 *
 * The version of the OpenAPI document: 4.0.0
 * 
 *
 * 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.dominodatalab.api.model;

import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.dominodatalab.api.model.DominoCommonGatewaySearchFeatureViewSearchResultDTO;
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.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * DominoCommonGatewaySearchSearchResultGatewayDTO
 */
@JsonPropertyOrder({
  DominoCommonGatewaySearchSearchResultGatewayDTO.JSON_PROPERTY_ID,
  DominoCommonGatewaySearchSearchResultGatewayDTO.JSON_PROPERTY_PROJECT_ID,
  DominoCommonGatewaySearchSearchResultGatewayDTO.JSON_PROPERTY_DISPLAY_TEXT,
  DominoCommonGatewaySearchSearchResultGatewayDTO.JSON_PROPERTY_OWNER_ID,
  DominoCommonGatewaySearchSearchResultGatewayDTO.JSON_PROPERTY_PATH,
  DominoCommonGatewaySearchSearchResultGatewayDTO.JSON_PROPERTY_LINK,
  DominoCommonGatewaySearchSearchResultGatewayDTO.JSON_PROPERTY_AREA,
  DominoCommonGatewaySearchSearchResultGatewayDTO.JSON_PROPERTY_FEATURE_VIEW_INFO
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoCommonGatewaySearchSearchResultGatewayDTO {
  public static final String JSON_PROPERTY_ID = "id";
  private String id;

  public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
  private String projectId;

  public static final String JSON_PROPERTY_DISPLAY_TEXT = "displayText";
  private String displayText;

  public static final String JSON_PROPERTY_OWNER_ID = "ownerId";
  private String ownerId;

  public static final String JSON_PROPERTY_PATH = "path";
  private String path;

  public static final String JSON_PROPERTY_LINK = "link";
  private String link;

  public static final String JSON_PROPERTY_AREA = "area";
  private String area;

  public static final String JSON_PROPERTY_FEATURE_VIEW_INFO = "featureViewInfo";
  private DominoCommonGatewaySearchFeatureViewSearchResultDTO featureViewInfo;

  public DominoCommonGatewaySearchSearchResultGatewayDTO() { 
  }

  public DominoCommonGatewaySearchSearchResultGatewayDTO 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 DominoCommonGatewaySearchSearchResultGatewayDTO projectId(String projectId) {
    this.projectId = projectId;
    return this;
  }

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

  public String getProjectId() {
    return projectId;
  }


  @JsonProperty(JSON_PROPERTY_PROJECT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setProjectId(String projectId) {
    this.projectId = projectId;
  }


  public DominoCommonGatewaySearchSearchResultGatewayDTO displayText(String displayText) {
    this.displayText = displayText;
    return this;
  }

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

  public String getDisplayText() {
    return displayText;
  }


  @JsonProperty(JSON_PROPERTY_DISPLAY_TEXT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDisplayText(String displayText) {
    this.displayText = displayText;
  }


  public DominoCommonGatewaySearchSearchResultGatewayDTO ownerId(String ownerId) {
    this.ownerId = ownerId;
    return this;
  }

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

  public String getOwnerId() {
    return ownerId;
  }


  @JsonProperty(JSON_PROPERTY_OWNER_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOwnerId(String ownerId) {
    this.ownerId = ownerId;
  }


  public DominoCommonGatewaySearchSearchResultGatewayDTO path(String path) {
    this.path = path;
    return this;
  }

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

   /**
   * Get link
   * @return link
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_LINK)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getLink() {
    return link;
  }


  @JsonProperty(JSON_PROPERTY_LINK)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setLink(String link) {
    this.link = link;
  }


  public DominoCommonGatewaySearchSearchResultGatewayDTO area(String area) {
    this.area = area;
    return this;
  }

   /**
   * Get area
   * @return area
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_AREA)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getArea() {
    return area;
  }


  @JsonProperty(JSON_PROPERTY_AREA)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setArea(String area) {
    this.area = area;
  }


  public DominoCommonGatewaySearchSearchResultGatewayDTO featureViewInfo(DominoCommonGatewaySearchFeatureViewSearchResultDTO featureViewInfo) {
    this.featureViewInfo = featureViewInfo;
    return this;
  }

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

  public DominoCommonGatewaySearchFeatureViewSearchResultDTO getFeatureViewInfo() {
    return featureViewInfo;
  }


  @JsonProperty(JSON_PROPERTY_FEATURE_VIEW_INFO)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFeatureViewInfo(DominoCommonGatewaySearchFeatureViewSearchResultDTO featureViewInfo) {
    this.featureViewInfo = featureViewInfo;
  }


  /**
   * Return true if this domino.common.gateway.search.SearchResultGatewayDTO object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DominoCommonGatewaySearchSearchResultGatewayDTO dominoCommonGatewaySearchSearchResultGatewayDTO = (DominoCommonGatewaySearchSearchResultGatewayDTO) o;
    return Objects.equals(this.id, dominoCommonGatewaySearchSearchResultGatewayDTO.id) &&
        Objects.equals(this.projectId, dominoCommonGatewaySearchSearchResultGatewayDTO.projectId) &&
        Objects.equals(this.displayText, dominoCommonGatewaySearchSearchResultGatewayDTO.displayText) &&
        Objects.equals(this.ownerId, dominoCommonGatewaySearchSearchResultGatewayDTO.ownerId) &&
        Objects.equals(this.path, dominoCommonGatewaySearchSearchResultGatewayDTO.path) &&
        Objects.equals(this.link, dominoCommonGatewaySearchSearchResultGatewayDTO.link) &&
        Objects.equals(this.area, dominoCommonGatewaySearchSearchResultGatewayDTO.area) &&
        Objects.equals(this.featureViewInfo, dominoCommonGatewaySearchSearchResultGatewayDTO.featureViewInfo);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, projectId, displayText, ownerId, path, link, area, featureViewInfo);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoCommonGatewaySearchSearchResultGatewayDTO {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    projectId: ").append(toIndentedString(projectId)).append("\n");
    sb.append("    displayText: ").append(toIndentedString(displayText)).append("\n");
    sb.append("    ownerId: ").append(toIndentedString(ownerId)).append("\n");
    sb.append("    path: ").append(toIndentedString(path)).append("\n");
    sb.append("    link: ").append(toIndentedString(link)).append("\n");
    sb.append("    area: ").append(toIndentedString(area)).append("\n");
    sb.append("    featureViewInfo: ").append(toIndentedString(featureViewInfo)).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    ");
  }

  /**
   * Convert the instance into URL query string.
   *
   * @return URL query string
   */
  public String toUrlQueryString() {
    return toUrlQueryString(null);
  }

  /**
   * Convert the instance into URL query string.
   *
   * @param prefix prefix of the query string
   * @return URL query string
   */
  public String toUrlQueryString(String prefix) {
    String suffix = "";
    String containerSuffix = "";
    String containerPrefix = "";
    if (prefix == null) {
      // style=form, explode=true, e.g. /pet?name=cat&type=manx
      prefix = "";
    } else {
      // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
      prefix = prefix + "[";
      suffix = "]";
      containerSuffix = "]";
      containerPrefix = "[";
    }

    StringJoiner joiner = new StringJoiner("&");

    // add `id` to the URL query string
    if (getId() != null) {
      joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `projectId` to the URL query string
    if (getProjectId() != null) {
      joiner.add(String.format("%sprojectId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getProjectId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `displayText` to the URL query string
    if (getDisplayText() != null) {
      joiner.add(String.format("%sdisplayText%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDisplayText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `ownerId` to the URL query string
    if (getOwnerId() != null) {
      joiner.add(String.format("%sownerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOwnerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `path` to the URL query string
    if (getPath() != null) {
      joiner.add(String.format("%spath%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPath()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `link` to the URL query string
    if (getLink() != null) {
      joiner.add(String.format("%slink%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLink()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `area` to the URL query string
    if (getArea() != null) {
      joiner.add(String.format("%sarea%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getArea()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `featureViewInfo` to the URL query string
    if (getFeatureViewInfo() != null) {
      joiner.add(getFeatureViewInfo().toUrlQueryString(prefix + "featureViewInfo" + suffix));
    }

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy