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

com.dominodatalab.api.model.DominoCommonModelproductAppVersionDetails 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.DominoCommonModelproductAppCodeInfoDto;
import com.dominodatalab.api.model.DominoCommonModelproductAppResourceUsage;
import com.dominodatalab.api.model.DominoCommonModelproductEnvironmentDetails;
import com.dominodatalab.api.model.DominoCommonModelproductExecutorDetails;
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;


/**
 * DominoCommonModelproductAppVersionDetails
 */
@JsonPropertyOrder({
  DominoCommonModelproductAppVersionDetails.JSON_PROPERTY_ID,
  DominoCommonModelproductAppVersionDetails.JSON_PROPERTY_STARTED,
  DominoCommonModelproductAppVersionDetails.JSON_PROPERTY_INPUT_COMMIT_ID,
  DominoCommonModelproductAppVersionDetails.JSON_PROPERTY_OUTPUT_COMMIT_ID,
  DominoCommonModelproductAppVersionDetails.JSON_PROPERTY_RESOURCE_USAGE,
  DominoCommonModelproductAppVersionDetails.JSON_PROPERTY_HARDWARE_TIER_NAME,
  DominoCommonModelproductAppVersionDetails.JSON_PROPERTY_EXECUTOR_DETAILS,
  DominoCommonModelproductAppVersionDetails.JSON_PROPERTY_ENVIRONMENT_DETAILS,
  DominoCommonModelproductAppVersionDetails.JSON_PROPERTY_APP_CODE_INFO,
  DominoCommonModelproductAppVersionDetails.JSON_PROPERTY_STATUS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoCommonModelproductAppVersionDetails {
  public static final String JSON_PROPERTY_ID = "id";
  private String id;

  public static final String JSON_PROPERTY_STARTED = "started";
  private Long started;

  public static final String JSON_PROPERTY_INPUT_COMMIT_ID = "inputCommitId";
  private String inputCommitId;

  public static final String JSON_PROPERTY_OUTPUT_COMMIT_ID = "outputCommitId";
  private String outputCommitId;

  public static final String JSON_PROPERTY_RESOURCE_USAGE = "resourceUsage";
  private DominoCommonModelproductAppResourceUsage resourceUsage;

  public static final String JSON_PROPERTY_HARDWARE_TIER_NAME = "hardwareTierName";
  private String hardwareTierName;

  public static final String JSON_PROPERTY_EXECUTOR_DETAILS = "executorDetails";
  private DominoCommonModelproductExecutorDetails executorDetails;

  public static final String JSON_PROPERTY_ENVIRONMENT_DETAILS = "environmentDetails";
  private DominoCommonModelproductEnvironmentDetails environmentDetails;

  public static final String JSON_PROPERTY_APP_CODE_INFO = "appCodeInfo";
  private DominoCommonModelproductAppCodeInfoDto appCodeInfo;

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

  public DominoCommonModelproductAppVersionDetails() { 
  }

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

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

  public String getId() {
    return id;
  }


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


  public DominoCommonModelproductAppVersionDetails started(Long started) {
    this.started = started;
    return this;
  }

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

  public Long getStarted() {
    return started;
  }


  @JsonProperty(JSON_PROPERTY_STARTED)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setStarted(Long started) {
    this.started = started;
  }


  public DominoCommonModelproductAppVersionDetails inputCommitId(String inputCommitId) {
    this.inputCommitId = inputCommitId;
    return this;
  }

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

  public String getInputCommitId() {
    return inputCommitId;
  }


  @JsonProperty(JSON_PROPERTY_INPUT_COMMIT_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setInputCommitId(String inputCommitId) {
    this.inputCommitId = inputCommitId;
  }


  public DominoCommonModelproductAppVersionDetails outputCommitId(String outputCommitId) {
    this.outputCommitId = outputCommitId;
    return this;
  }

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

  public String getOutputCommitId() {
    return outputCommitId;
  }


  @JsonProperty(JSON_PROPERTY_OUTPUT_COMMIT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOutputCommitId(String outputCommitId) {
    this.outputCommitId = outputCommitId;
  }


  public DominoCommonModelproductAppVersionDetails resourceUsage(DominoCommonModelproductAppResourceUsage resourceUsage) {
    this.resourceUsage = resourceUsage;
    return this;
  }

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

  public DominoCommonModelproductAppResourceUsage getResourceUsage() {
    return resourceUsage;
  }


  @JsonProperty(JSON_PROPERTY_RESOURCE_USAGE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setResourceUsage(DominoCommonModelproductAppResourceUsage resourceUsage) {
    this.resourceUsage = resourceUsage;
  }


  public DominoCommonModelproductAppVersionDetails hardwareTierName(String hardwareTierName) {
    this.hardwareTierName = hardwareTierName;
    return this;
  }

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

  public String getHardwareTierName() {
    return hardwareTierName;
  }


  @JsonProperty(JSON_PROPERTY_HARDWARE_TIER_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setHardwareTierName(String hardwareTierName) {
    this.hardwareTierName = hardwareTierName;
  }


  public DominoCommonModelproductAppVersionDetails executorDetails(DominoCommonModelproductExecutorDetails executorDetails) {
    this.executorDetails = executorDetails;
    return this;
  }

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

  public DominoCommonModelproductExecutorDetails getExecutorDetails() {
    return executorDetails;
  }


  @JsonProperty(JSON_PROPERTY_EXECUTOR_DETAILS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setExecutorDetails(DominoCommonModelproductExecutorDetails executorDetails) {
    this.executorDetails = executorDetails;
  }


  public DominoCommonModelproductAppVersionDetails environmentDetails(DominoCommonModelproductEnvironmentDetails environmentDetails) {
    this.environmentDetails = environmentDetails;
    return this;
  }

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

  public DominoCommonModelproductEnvironmentDetails getEnvironmentDetails() {
    return environmentDetails;
  }


  @JsonProperty(JSON_PROPERTY_ENVIRONMENT_DETAILS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEnvironmentDetails(DominoCommonModelproductEnvironmentDetails environmentDetails) {
    this.environmentDetails = environmentDetails;
  }


  public DominoCommonModelproductAppVersionDetails appCodeInfo(DominoCommonModelproductAppCodeInfoDto appCodeInfo) {
    this.appCodeInfo = appCodeInfo;
    return this;
  }

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

  public DominoCommonModelproductAppCodeInfoDto getAppCodeInfo() {
    return appCodeInfo;
  }


  @JsonProperty(JSON_PROPERTY_APP_CODE_INFO)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setAppCodeInfo(DominoCommonModelproductAppCodeInfoDto appCodeInfo) {
    this.appCodeInfo = appCodeInfo;
  }


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

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

  public String getStatus() {
    return status;
  }


  @JsonProperty(JSON_PROPERTY_STATUS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setStatus(String status) {
    this.status = status;
  }


  /**
   * Return true if this domino.common.modelproduct.AppVersionDetails object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DominoCommonModelproductAppVersionDetails dominoCommonModelproductAppVersionDetails = (DominoCommonModelproductAppVersionDetails) o;
    return Objects.equals(this.id, dominoCommonModelproductAppVersionDetails.id) &&
        Objects.equals(this.started, dominoCommonModelproductAppVersionDetails.started) &&
        Objects.equals(this.inputCommitId, dominoCommonModelproductAppVersionDetails.inputCommitId) &&
        Objects.equals(this.outputCommitId, dominoCommonModelproductAppVersionDetails.outputCommitId) &&
        Objects.equals(this.resourceUsage, dominoCommonModelproductAppVersionDetails.resourceUsage) &&
        Objects.equals(this.hardwareTierName, dominoCommonModelproductAppVersionDetails.hardwareTierName) &&
        Objects.equals(this.executorDetails, dominoCommonModelproductAppVersionDetails.executorDetails) &&
        Objects.equals(this.environmentDetails, dominoCommonModelproductAppVersionDetails.environmentDetails) &&
        Objects.equals(this.appCodeInfo, dominoCommonModelproductAppVersionDetails.appCodeInfo) &&
        Objects.equals(this.status, dominoCommonModelproductAppVersionDetails.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, started, inputCommitId, outputCommitId, resourceUsage, hardwareTierName, executorDetails, environmentDetails, appCodeInfo, status);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoCommonModelproductAppVersionDetails {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    started: ").append(toIndentedString(started)).append("\n");
    sb.append("    inputCommitId: ").append(toIndentedString(inputCommitId)).append("\n");
    sb.append("    outputCommitId: ").append(toIndentedString(outputCommitId)).append("\n");
    sb.append("    resourceUsage: ").append(toIndentedString(resourceUsage)).append("\n");
    sb.append("    hardwareTierName: ").append(toIndentedString(hardwareTierName)).append("\n");
    sb.append("    executorDetails: ").append(toIndentedString(executorDetails)).append("\n");
    sb.append("    environmentDetails: ").append(toIndentedString(environmentDetails)).append("\n");
    sb.append("    appCodeInfo: ").append(toIndentedString(appCodeInfo)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).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 `started` to the URL query string
    if (getStarted() != null) {
      joiner.add(String.format("%sstarted%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStarted()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

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

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

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

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

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

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

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

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

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy