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

com.docusign.maestro.model.DSDocGenStep Maven / Gradle / Ivy

Go to download

The Docusign NuGet package makes integrating Docusign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-maestro-csharp-client repository.

There is a newer version: 2.0.0
Show newest version
package com.docusign.maestro.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Objects;

/** DSDocGenStep. */
public class DSDocGenStep implements Serializable {
  private static final long serialVersionUID = 1L;

  @JsonProperty("config")
  private RecordToNever config = null;

  @JsonProperty("id")
  private String id = null;

  @JsonProperty("input")
  private DSDocGenStepInput input = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("output")
  private java.util.Map output = new java.util.HashMap<>();

  @JsonProperty("type")
  private DSWorkflowStepTypesDSDocGen type = null;

  /**
   * config.
   *
   * @return DSDocGenStep
   */
  public DSDocGenStep config(RecordToNever config) {
    this.config = config;
    return this;
  }

  /**
   * Get config.
   *
   * @return config
   */
  @Schema(required = true, description = "")
  public RecordToNever getConfig() {
    return config;
  }

  /** setConfig. */
  public void setConfig(RecordToNever config) {
    this.config = config;
  }

  /**
   * id.
   *
   * @return DSDocGenStep
   */
  public DSDocGenStep id(String id) {
    this.id = id;
    return this;
  }

  /**
   * Get id.
   *
   * @return id
   */
  @Schema(required = true, description = "")
  public String getId() {
    return id;
  }

  /** setId. */
  public void setId(String id) {
    this.id = id;
  }

  /**
   * input.
   *
   * @return DSDocGenStep
   */
  public DSDocGenStep input(DSDocGenStepInput input) {
    this.input = input;
    return this;
  }

  /**
   * Get input.
   *
   * @return input
   */
  @Schema(required = true, description = "")
  public DSDocGenStepInput getInput() {
    return input;
  }

  /** setInput. */
  public void setInput(DSDocGenStepInput input) {
    this.input = input;
  }

  /**
   * name.
   *
   * @return DSDocGenStep
   */
  public DSDocGenStep name(String name) {
    this.name = name;
    return this;
  }

  /**
   * Get name.
   *
   * @return name
   */
  @Schema(required = true, description = "")
  public String getName() {
    return name;
  }

  /** setName. */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * output.
   *
   * @return DSDocGenStep
   */
  public DSDocGenStep output(java.util.Map output) {
    this.output = output;
    return this;
  }

  /**
   * putOutputItem.
   *
   * @return DSDocGenStep
   */
  public DSDocGenStep putOutputItem(String key, Object outputItem) {
    this.output.put(key, outputItem);
    return this;
  }

  /**
   * A Record of strings to Strings, Variables, or Transformation Expressions.
   *
   * @return output
   */
  @Schema(
      required = true,
      description = "A Record of strings to Strings, Variables, or Transformation Expressions")
  public java.util.Map getOutput() {
    return output;
  }

  /** setOutput. */
  public void setOutput(java.util.Map output) {
    this.output = output;
  }

  /**
   * type.
   *
   * @return DSDocGenStep
   */
  public DSDocGenStep type(DSWorkflowStepTypesDSDocGen type) {
    this.type = type;
    return this;
  }

  /**
   * Get type.
   *
   * @return type
   */
  @Schema(required = true, description = "")
  public DSWorkflowStepTypesDSDocGen getType() {
    return type;
  }

  /** setType. */
  public void setType(DSWorkflowStepTypesDSDocGen type) {
    this.type = type;
  }

  /**
   * Compares objects.
   *
   * @return true or false depending on comparison result.
   */
  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DSDocGenStep dsDocGenStep = (DSDocGenStep) o;
    return Objects.equals(this.config, dsDocGenStep.config)
        && Objects.equals(this.id, dsDocGenStep.id)
        && Objects.equals(this.input, dsDocGenStep.input)
        && Objects.equals(this.name, dsDocGenStep.name)
        && Objects.equals(this.output, dsDocGenStep.output)
        && Objects.equals(this.type, dsDocGenStep.type);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(config, id, input, name, output, type);
  }

  /** Converts the given object to string. */
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DSDocGenStep {\n");

    sb.append("    config: ").append(toIndentedString(config)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    input: ").append(toIndentedString(input)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    output: ").append(toIndentedString(output)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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    ");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy