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

com.docusign.esign.model.ConnectSalesforceObject Maven / Gradle / Ivy

Go to download

The official DocuSign eSignature JAVA client is based on version 2 of the DocuSign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.

There is a newer version: 6.0.0
Show newest version
package com.docusign.esign.model;

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

/**
 * A `connectSalesforceObject` is an object that updates envelope and document status or
 * recipient status in your Salesforce account. When you install DocuSign Connect for Salesforce,
 * the service automatically sets up two Connect objects: one that updates envelope status and
 * documents and one that updates recipient status. You can also customize DocuSign Connect for
 * Salesforce by associating DocuSign objects with Salesforce objects so that DocuSign Connect for
 * Salesforce updates or inserts the information into the Salesforce object. For more information,
 * see [DocuSign for Salesforce - Adding Completed Documents to the Notes and
 * Attachments](https://support.docusign.com/articles/DocuSign-for-Salesforce-Adding-Completed-Documents-to-the-Notes-and-Attachments-New)..
 */
@Schema(
    description =
        "A `connectSalesforceObject` is an object that updates envelope and document status or recipient status in your Salesforce account.  When you install DocuSign Connect for Salesforce, the service automatically sets up two Connect objects: one that updates envelope status and documents and one that updates recipient status. You can also customize DocuSign Connect for Salesforce by associating DocuSign objects with Salesforce objects so that DocuSign Connect for Salesforce updates or inserts the information into the Salesforce object. For more information, see  [DocuSign for Salesforce - Adding Completed Documents to the Notes and Attachments](https://support.docusign.com/articles/DocuSign-for-Salesforce-Adding-Completed-Documents-to-the-Notes-and-Attachments-New).")
public class ConnectSalesforceObject {
  @JsonProperty("active")
  private String active = null;

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

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

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

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

  @JsonProperty("selectFields")
  private java.util.List selectFields = null;

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

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

  @JsonProperty("updateFields")
  private java.util.List updateFields = null;

  /**
   * active.
   *
   * @return ConnectSalesforceObject
   */
  public ConnectSalesforceObject active(String active) {
    this.active = active;
    return this;
  }

  /**
   * .
   *
   * @return active
   */
  @Schema(description = "")
  public String getActive() {
    return active;
  }

  /** setActive. */
  public void setActive(String active) {
    this.active = active;
  }

  /**
   * description.
   *
   * @return ConnectSalesforceObject
   */
  public ConnectSalesforceObject description(String description) {
    this.description = description;
    return this;
  }

  /**
   * .
   *
   * @return description
   */
  @Schema(description = "")
  public String getDescription() {
    return description;
  }

  /** setDescription. */
  public void setDescription(String description) {
    this.description = description;
  }

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

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

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

  /**
   * insert.
   *
   * @return ConnectSalesforceObject
   */
  public ConnectSalesforceObject insert(String insert) {
    this.insert = insert;
    return this;
  }

  /**
   * .
   *
   * @return insert
   */
  @Schema(description = "")
  public String getInsert() {
    return insert;
  }

  /** setInsert. */
  public void setInsert(String insert) {
    this.insert = insert;
  }

  /**
   * onCompleteOnly.
   *
   * @return ConnectSalesforceObject
   */
  public ConnectSalesforceObject onCompleteOnly(String onCompleteOnly) {
    this.onCompleteOnly = onCompleteOnly;
    return this;
  }

  /**
   * .
   *
   * @return onCompleteOnly
   */
  @Schema(description = "")
  public String getOnCompleteOnly() {
    return onCompleteOnly;
  }

  /** setOnCompleteOnly. */
  public void setOnCompleteOnly(String onCompleteOnly) {
    this.onCompleteOnly = onCompleteOnly;
  }

  /**
   * selectFields.
   *
   * @return ConnectSalesforceObject
   */
  public ConnectSalesforceObject selectFields(java.util.List selectFields) {
    this.selectFields = selectFields;
    return this;
  }

  /**
   * addSelectFieldsItem.
   *
   * @return ConnectSalesforceObject
   */
  public ConnectSalesforceObject addSelectFieldsItem(ConnectSalesforceField selectFieldsItem) {
    if (this.selectFields == null) {
      this.selectFields = new java.util.ArrayList<>();
    }
    this.selectFields.add(selectFieldsItem);
    return this;
  }

  /**
   * .
   *
   * @return selectFields
   */
  @Schema(description = "")
  public java.util.List getSelectFields() {
    return selectFields;
  }

  /** setSelectFields. */
  public void setSelectFields(java.util.List selectFields) {
    this.selectFields = selectFields;
  }

  /**
   * sfObject.
   *
   * @return ConnectSalesforceObject
   */
  public ConnectSalesforceObject sfObject(String sfObject) {
    this.sfObject = sfObject;
    return this;
  }

  /**
   * .
   *
   * @return sfObject
   */
  @Schema(description = "")
  public String getSfObject() {
    return sfObject;
  }

  /** setSfObject. */
  public void setSfObject(String sfObject) {
    this.sfObject = sfObject;
  }

  /**
   * sfObjectName.
   *
   * @return ConnectSalesforceObject
   */
  public ConnectSalesforceObject sfObjectName(String sfObjectName) {
    this.sfObjectName = sfObjectName;
    return this;
  }

  /**
   * .
   *
   * @return sfObjectName
   */
  @Schema(description = "")
  public String getSfObjectName() {
    return sfObjectName;
  }

  /** setSfObjectName. */
  public void setSfObjectName(String sfObjectName) {
    this.sfObjectName = sfObjectName;
  }

  /**
   * updateFields.
   *
   * @return ConnectSalesforceObject
   */
  public ConnectSalesforceObject updateFields(java.util.List updateFields) {
    this.updateFields = updateFields;
    return this;
  }

  /**
   * addUpdateFieldsItem.
   *
   * @return ConnectSalesforceObject
   */
  public ConnectSalesforceObject addUpdateFieldsItem(ConnectSalesforceField updateFieldsItem) {
    if (this.updateFields == null) {
      this.updateFields = new java.util.ArrayList<>();
    }
    this.updateFields.add(updateFieldsItem);
    return this;
  }

  /**
   * .
   *
   * @return updateFields
   */
  @Schema(description = "")
  public java.util.List getUpdateFields() {
    return updateFields;
  }

  /** setUpdateFields. */
  public void setUpdateFields(java.util.List updateFields) {
    this.updateFields = updateFields;
  }

  /**
   * 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;
    }
    ConnectSalesforceObject connectSalesforceObject = (ConnectSalesforceObject) o;
    return Objects.equals(this.active, connectSalesforceObject.active)
        && Objects.equals(this.description, connectSalesforceObject.description)
        && Objects.equals(this.id, connectSalesforceObject.id)
        && Objects.equals(this.insert, connectSalesforceObject.insert)
        && Objects.equals(this.onCompleteOnly, connectSalesforceObject.onCompleteOnly)
        && Objects.equals(this.selectFields, connectSalesforceObject.selectFields)
        && Objects.equals(this.sfObject, connectSalesforceObject.sfObject)
        && Objects.equals(this.sfObjectName, connectSalesforceObject.sfObjectName)
        && Objects.equals(this.updateFields, connectSalesforceObject.updateFields);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(
        active,
        description,
        id,
        insert,
        onCompleteOnly,
        selectFields,
        sfObject,
        sfObjectName,
        updateFields);
  }

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

    sb.append("    active: ").append(toIndentedString(active)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    insert: ").append(toIndentedString(insert)).append("\n");
    sb.append("    onCompleteOnly: ").append(toIndentedString(onCompleteOnly)).append("\n");
    sb.append("    selectFields: ").append(toIndentedString(selectFields)).append("\n");
    sb.append("    sfObject: ").append(toIndentedString(sfObject)).append("\n");
    sb.append("    sfObjectName: ").append(toIndentedString(sfObjectName)).append("\n");
    sb.append("    updateFields: ").append(toIndentedString(updateFields)).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