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.docusign.esign.model.PropertyMetadata;
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("selectedMetadata")
private PropertyMetadata selectedMetadata = null;
@JsonProperty("text")
private String text = null;
@JsonProperty("textMetadata")
private PropertyMetadata textMetadata = null;
@JsonProperty("value")
private String value = null;
@JsonProperty("valueMetadata")
private PropertyMetadata valueMetadata = 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 selectedMetadata(PropertyMetadata selectedMetadata) {
this.selectedMetadata = selectedMetadata;
return this;
}
/**
* Get selectedMetadata
* @return selectedMetadata
**/
@ApiModelProperty(value = "")
public PropertyMetadata getSelectedMetadata() {
return selectedMetadata;
}
public void setSelectedMetadata(PropertyMetadata selectedMetadata) {
this.selectedMetadata = selectedMetadata;
}
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 textMetadata(PropertyMetadata textMetadata) {
this.textMetadata = textMetadata;
return this;
}
/**
* Get textMetadata
* @return textMetadata
**/
@ApiModelProperty(value = "")
public PropertyMetadata getTextMetadata() {
return textMetadata;
}
public void setTextMetadata(PropertyMetadata textMetadata) {
this.textMetadata = textMetadata;
}
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;
}
public ListItem valueMetadata(PropertyMetadata valueMetadata) {
this.valueMetadata = valueMetadata;
return this;
}
/**
* Get valueMetadata
* @return valueMetadata
**/
@ApiModelProperty(value = "")
public PropertyMetadata getValueMetadata() {
return valueMetadata;
}
public void setValueMetadata(PropertyMetadata valueMetadata) {
this.valueMetadata = valueMetadata;
}
@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.selectedMetadata, listItem.selectedMetadata) &&
Objects.equals(this.text, listItem.text) &&
Objects.equals(this.textMetadata, listItem.textMetadata) &&
Objects.equals(this.value, listItem.value) &&
Objects.equals(this.valueMetadata, listItem.valueMetadata);
}
@Override
public int hashCode() {
return Objects.hash(selected, selectedMetadata, text, textMetadata, value, valueMetadata);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListItem {\n");
sb.append(" selected: ").append(toIndentedString(selected)).append("\n");
sb.append(" selectedMetadata: ").append(toIndentedString(selectedMetadata)).append("\n");
sb.append(" text: ").append(toIndentedString(text)).append("\n");
sb.append(" textMetadata: ").append(toIndentedString(textMetadata)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append(" valueMetadata: ").append(toIndentedString(valueMetadata)).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 ");
}
}