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

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

Go to download

Domino Data Lab API Client to connect to Domino web services using Java HTTP Client.

There is a newer version: 6.0.1.0
Show newest version
/*
 * Domino Data Lab API v4
 * This API provides access to select Domino functions available in Domino's non-public API. 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.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;


import com.dominodatalab.api.invoker.ApiClient;
/**
 * DominoJobsInterfaceOrchestratorExecutionMetadata
 */
@JsonPropertyOrder({
  DominoJobsInterfaceOrchestratorExecutionMetadata.JSON_PROPERTY_NODE_DOMAIN,
  DominoJobsInterfaceOrchestratorExecutionMetadata.JSON_PROPERTY_NODE_ID,
  DominoJobsInterfaceOrchestratorExecutionMetadata.JSON_PROPERTY_NODE_PROJECT_ID,
  DominoJobsInterfaceOrchestratorExecutionMetadata.JSON_PROPERTY_NODE_WORKFLOW_EXECUTION_NAME,
  DominoJobsInterfaceOrchestratorExecutionMetadata.JSON_PROPERTY_TASK_DOMAIN,
  DominoJobsInterfaceOrchestratorExecutionMetadata.JSON_PROPERTY_TASK_EXECUTION_NAME,
  DominoJobsInterfaceOrchestratorExecutionMetadata.JSON_PROPERTY_TASK_EXECUTION_VERSION,
  DominoJobsInterfaceOrchestratorExecutionMetadata.JSON_PROPERTY_TASK_PROJECT_ID
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T16:37:26.309454-04:00[America/New_York]", comments = "Generator version: 7.8.0")
public class DominoJobsInterfaceOrchestratorExecutionMetadata {
  public static final String JSON_PROPERTY_NODE_DOMAIN = "nodeDomain";
  private String nodeDomain;

  public static final String JSON_PROPERTY_NODE_ID = "nodeId";
  private String nodeId;

  public static final String JSON_PROPERTY_NODE_PROJECT_ID = "nodeProjectId";
  private String nodeProjectId;

  public static final String JSON_PROPERTY_NODE_WORKFLOW_EXECUTION_NAME = "nodeWorkflowExecutionName";
  private String nodeWorkflowExecutionName;

  public static final String JSON_PROPERTY_TASK_DOMAIN = "taskDomain";
  private String taskDomain;

  public static final String JSON_PROPERTY_TASK_EXECUTION_NAME = "taskExecutionName";
  private String taskExecutionName;

  public static final String JSON_PROPERTY_TASK_EXECUTION_VERSION = "taskExecutionVersion";
  private String taskExecutionVersion;

  public static final String JSON_PROPERTY_TASK_PROJECT_ID = "taskProjectId";
  private String taskProjectId;

  public DominoJobsInterfaceOrchestratorExecutionMetadata() { 
  }

  public DominoJobsInterfaceOrchestratorExecutionMetadata nodeDomain(String nodeDomain) {
    this.nodeDomain = nodeDomain;
    return this;
  }

  /**
   * Get nodeDomain
   * @return nodeDomain
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_NODE_DOMAIN)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getNodeDomain() {
    return nodeDomain;
  }


  @JsonProperty(JSON_PROPERTY_NODE_DOMAIN)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setNodeDomain(String nodeDomain) {
    this.nodeDomain = nodeDomain;
  }


  public DominoJobsInterfaceOrchestratorExecutionMetadata nodeId(String nodeId) {
    this.nodeId = nodeId;
    return this;
  }

  /**
   * Get nodeId
   * @return nodeId
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_NODE_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getNodeId() {
    return nodeId;
  }


  @JsonProperty(JSON_PROPERTY_NODE_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setNodeId(String nodeId) {
    this.nodeId = nodeId;
  }


  public DominoJobsInterfaceOrchestratorExecutionMetadata nodeProjectId(String nodeProjectId) {
    this.nodeProjectId = nodeProjectId;
    return this;
  }

  /**
   * Get nodeProjectId
   * @return nodeProjectId
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_NODE_PROJECT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getNodeProjectId() {
    return nodeProjectId;
  }


  @JsonProperty(JSON_PROPERTY_NODE_PROJECT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setNodeProjectId(String nodeProjectId) {
    this.nodeProjectId = nodeProjectId;
  }


  public DominoJobsInterfaceOrchestratorExecutionMetadata nodeWorkflowExecutionName(String nodeWorkflowExecutionName) {
    this.nodeWorkflowExecutionName = nodeWorkflowExecutionName;
    return this;
  }

  /**
   * Get nodeWorkflowExecutionName
   * @return nodeWorkflowExecutionName
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_NODE_WORKFLOW_EXECUTION_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getNodeWorkflowExecutionName() {
    return nodeWorkflowExecutionName;
  }


  @JsonProperty(JSON_PROPERTY_NODE_WORKFLOW_EXECUTION_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setNodeWorkflowExecutionName(String nodeWorkflowExecutionName) {
    this.nodeWorkflowExecutionName = nodeWorkflowExecutionName;
  }


  public DominoJobsInterfaceOrchestratorExecutionMetadata taskDomain(String taskDomain) {
    this.taskDomain = taskDomain;
    return this;
  }

  /**
   * Get taskDomain
   * @return taskDomain
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_TASK_DOMAIN)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getTaskDomain() {
    return taskDomain;
  }


  @JsonProperty(JSON_PROPERTY_TASK_DOMAIN)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTaskDomain(String taskDomain) {
    this.taskDomain = taskDomain;
  }


  public DominoJobsInterfaceOrchestratorExecutionMetadata taskExecutionName(String taskExecutionName) {
    this.taskExecutionName = taskExecutionName;
    return this;
  }

  /**
   * Get taskExecutionName
   * @return taskExecutionName
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_TASK_EXECUTION_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getTaskExecutionName() {
    return taskExecutionName;
  }


  @JsonProperty(JSON_PROPERTY_TASK_EXECUTION_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTaskExecutionName(String taskExecutionName) {
    this.taskExecutionName = taskExecutionName;
  }


  public DominoJobsInterfaceOrchestratorExecutionMetadata taskExecutionVersion(String taskExecutionVersion) {
    this.taskExecutionVersion = taskExecutionVersion;
    return this;
  }

  /**
   * Get taskExecutionVersion
   * @return taskExecutionVersion
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_TASK_EXECUTION_VERSION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getTaskExecutionVersion() {
    return taskExecutionVersion;
  }


  @JsonProperty(JSON_PROPERTY_TASK_EXECUTION_VERSION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTaskExecutionVersion(String taskExecutionVersion) {
    this.taskExecutionVersion = taskExecutionVersion;
  }


  public DominoJobsInterfaceOrchestratorExecutionMetadata taskProjectId(String taskProjectId) {
    this.taskProjectId = taskProjectId;
    return this;
  }

  /**
   * Get taskProjectId
   * @return taskProjectId
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_TASK_PROJECT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getTaskProjectId() {
    return taskProjectId;
  }


  @JsonProperty(JSON_PROPERTY_TASK_PROJECT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTaskProjectId(String taskProjectId) {
    this.taskProjectId = taskProjectId;
  }


  /**
   * Return true if this domino.jobs.interface.OrchestratorExecutionMetadata object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DominoJobsInterfaceOrchestratorExecutionMetadata dominoJobsInterfaceOrchestratorExecutionMetadata = (DominoJobsInterfaceOrchestratorExecutionMetadata) o;
    return Objects.equals(this.nodeDomain, dominoJobsInterfaceOrchestratorExecutionMetadata.nodeDomain) &&
        Objects.equals(this.nodeId, dominoJobsInterfaceOrchestratorExecutionMetadata.nodeId) &&
        Objects.equals(this.nodeProjectId, dominoJobsInterfaceOrchestratorExecutionMetadata.nodeProjectId) &&
        Objects.equals(this.nodeWorkflowExecutionName, dominoJobsInterfaceOrchestratorExecutionMetadata.nodeWorkflowExecutionName) &&
        Objects.equals(this.taskDomain, dominoJobsInterfaceOrchestratorExecutionMetadata.taskDomain) &&
        Objects.equals(this.taskExecutionName, dominoJobsInterfaceOrchestratorExecutionMetadata.taskExecutionName) &&
        Objects.equals(this.taskExecutionVersion, dominoJobsInterfaceOrchestratorExecutionMetadata.taskExecutionVersion) &&
        Objects.equals(this.taskProjectId, dominoJobsInterfaceOrchestratorExecutionMetadata.taskProjectId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(nodeDomain, nodeId, nodeProjectId, nodeWorkflowExecutionName, taskDomain, taskExecutionName, taskExecutionVersion, taskProjectId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoJobsInterfaceOrchestratorExecutionMetadata {\n");
    sb.append("    nodeDomain: ").append(toIndentedString(nodeDomain)).append("\n");
    sb.append("    nodeId: ").append(toIndentedString(nodeId)).append("\n");
    sb.append("    nodeProjectId: ").append(toIndentedString(nodeProjectId)).append("\n");
    sb.append("    nodeWorkflowExecutionName: ").append(toIndentedString(nodeWorkflowExecutionName)).append("\n");
    sb.append("    taskDomain: ").append(toIndentedString(taskDomain)).append("\n");
    sb.append("    taskExecutionName: ").append(toIndentedString(taskExecutionName)).append("\n");
    sb.append("    taskExecutionVersion: ").append(toIndentedString(taskExecutionVersion)).append("\n");
    sb.append("    taskProjectId: ").append(toIndentedString(taskProjectId)).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 `nodeDomain` to the URL query string
    if (getNodeDomain() != null) {
      joiner.add(String.format("%snodeDomain%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNodeDomain()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `nodeId` to the URL query string
    if (getNodeId() != null) {
      joiner.add(String.format("%snodeId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNodeId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `nodeProjectId` to the URL query string
    if (getNodeProjectId() != null) {
      joiner.add(String.format("%snodeProjectId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNodeProjectId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `nodeWorkflowExecutionName` to the URL query string
    if (getNodeWorkflowExecutionName() != null) {
      joiner.add(String.format("%snodeWorkflowExecutionName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNodeWorkflowExecutionName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `taskDomain` to the URL query string
    if (getTaskDomain() != null) {
      joiner.add(String.format("%staskDomain%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTaskDomain()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `taskExecutionName` to the URL query string
    if (getTaskExecutionName() != null) {
      joiner.add(String.format("%staskExecutionName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTaskExecutionName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `taskExecutionVersion` to the URL query string
    if (getTaskExecutionVersion() != null) {
      joiner.add(String.format("%staskExecutionVersion%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTaskExecutionVersion()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `taskProjectId` to the URL query string
    if (getTaskProjectId() != null) {
      joiner.add(String.format("%staskProjectId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTaskProjectId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy