com.docusign.esign.model.ListItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docusign-esign-java Show documentation
Show all versions of docusign-esign-java Show documentation
The official Docusign eSignature JAVA client is based on version 2.1 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.
package com.docusign.esign.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* ListItem
*/
public class ListItem {
@JsonProperty("selected")
private String selected = null;
@JsonProperty("text")
private String text = null;
@JsonProperty("value")
private String value = null;
public ListItem selected(String selected) {
this.selected = selected;
return this;
}
/**
* When set to **true**, indicates that this item is the default selection shown to a signer. Only one selection can be set as the default.
* @return selected
**/
@ApiModelProperty(value = "When set to **true**, indicates that this item is the default selection shown to a signer. Only one selection can be set as the default.")
public String getSelected() {
return selected;
}
public void setSelected(String selected) {
this.selected = selected;
}
public ListItem text(String text) {
this.text = text;
return this;
}
/**
* Specifies the text that is shown in the dropdown list.
* @return text
**/
@ApiModelProperty(value = "Specifies the text that is shown in the dropdown list. ")
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public ListItem value(String value) {
this.value = value;
return this;
}
/**
* Specifies the value that is used when the list item is selected.
* @return value
**/
@ApiModelProperty(value = "Specifies the value that is used when the list item is selected.")
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListItem listItem = (ListItem) o;
return Objects.equals(this.selected, listItem.selected) &&
Objects.equals(this.text, listItem.text) &&
Objects.equals(this.value, listItem.value);
}
@Override
public int hashCode() {
return Objects.hash(selected, text, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListItem {\n");
sb.append(" selected: ").append(toIndentedString(selected)).append("\n");
sb.append(" text: ").append(toIndentedString(text)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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 ");
}
}