com.docusign.esign.model.AccessCodeFormat 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.SettingsMetadata;
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;
/**
* AccessCodeFormat
*/
public class AccessCodeFormat {
@JsonProperty("formatRequired")
private String formatRequired = null;
@JsonProperty("formatRequiredMetadata")
private SettingsMetadata formatRequiredMetadata = null;
@JsonProperty("letterRequired")
private String letterRequired = null;
@JsonProperty("letterRequiredMetadata")
private SettingsMetadata letterRequiredMetadata = null;
@JsonProperty("minimumLength")
private String minimumLength = null;
@JsonProperty("minimumLengthMetadata")
private SettingsMetadata minimumLengthMetadata = null;
@JsonProperty("numberRequired")
private String numberRequired = null;
@JsonProperty("numberRequiredMetadata")
private SettingsMetadata numberRequiredMetadata = null;
@JsonProperty("specialCharacterRequired")
private String specialCharacterRequired = null;
@JsonProperty("specialCharacterRequiredMetadata")
private SettingsMetadata specialCharacterRequiredMetadata = null;
public AccessCodeFormat formatRequired(String formatRequired) {
this.formatRequired = formatRequired;
return this;
}
/**
*
* @return formatRequired
**/
@ApiModelProperty(value = "")
public String getFormatRequired() {
return formatRequired;
}
public void setFormatRequired(String formatRequired) {
this.formatRequired = formatRequired;
}
public AccessCodeFormat formatRequiredMetadata(SettingsMetadata formatRequiredMetadata) {
this.formatRequiredMetadata = formatRequiredMetadata;
return this;
}
/**
* Get formatRequiredMetadata
* @return formatRequiredMetadata
**/
@ApiModelProperty(value = "")
public SettingsMetadata getFormatRequiredMetadata() {
return formatRequiredMetadata;
}
public void setFormatRequiredMetadata(SettingsMetadata formatRequiredMetadata) {
this.formatRequiredMetadata = formatRequiredMetadata;
}
public AccessCodeFormat letterRequired(String letterRequired) {
this.letterRequired = letterRequired;
return this;
}
/**
*
* @return letterRequired
**/
@ApiModelProperty(value = "")
public String getLetterRequired() {
return letterRequired;
}
public void setLetterRequired(String letterRequired) {
this.letterRequired = letterRequired;
}
public AccessCodeFormat letterRequiredMetadata(SettingsMetadata letterRequiredMetadata) {
this.letterRequiredMetadata = letterRequiredMetadata;
return this;
}
/**
* Get letterRequiredMetadata
* @return letterRequiredMetadata
**/
@ApiModelProperty(value = "")
public SettingsMetadata getLetterRequiredMetadata() {
return letterRequiredMetadata;
}
public void setLetterRequiredMetadata(SettingsMetadata letterRequiredMetadata) {
this.letterRequiredMetadata = letterRequiredMetadata;
}
public AccessCodeFormat minimumLength(String minimumLength) {
this.minimumLength = minimumLength;
return this;
}
/**
*
* @return minimumLength
**/
@ApiModelProperty(value = "")
public String getMinimumLength() {
return minimumLength;
}
public void setMinimumLength(String minimumLength) {
this.minimumLength = minimumLength;
}
public AccessCodeFormat minimumLengthMetadata(SettingsMetadata minimumLengthMetadata) {
this.minimumLengthMetadata = minimumLengthMetadata;
return this;
}
/**
* Get minimumLengthMetadata
* @return minimumLengthMetadata
**/
@ApiModelProperty(value = "")
public SettingsMetadata getMinimumLengthMetadata() {
return minimumLengthMetadata;
}
public void setMinimumLengthMetadata(SettingsMetadata minimumLengthMetadata) {
this.minimumLengthMetadata = minimumLengthMetadata;
}
public AccessCodeFormat numberRequired(String numberRequired) {
this.numberRequired = numberRequired;
return this;
}
/**
*
* @return numberRequired
**/
@ApiModelProperty(value = "")
public String getNumberRequired() {
return numberRequired;
}
public void setNumberRequired(String numberRequired) {
this.numberRequired = numberRequired;
}
public AccessCodeFormat numberRequiredMetadata(SettingsMetadata numberRequiredMetadata) {
this.numberRequiredMetadata = numberRequiredMetadata;
return this;
}
/**
* Get numberRequiredMetadata
* @return numberRequiredMetadata
**/
@ApiModelProperty(value = "")
public SettingsMetadata getNumberRequiredMetadata() {
return numberRequiredMetadata;
}
public void setNumberRequiredMetadata(SettingsMetadata numberRequiredMetadata) {
this.numberRequiredMetadata = numberRequiredMetadata;
}
public AccessCodeFormat specialCharacterRequired(String specialCharacterRequired) {
this.specialCharacterRequired = specialCharacterRequired;
return this;
}
/**
*
* @return specialCharacterRequired
**/
@ApiModelProperty(value = "")
public String getSpecialCharacterRequired() {
return specialCharacterRequired;
}
public void setSpecialCharacterRequired(String specialCharacterRequired) {
this.specialCharacterRequired = specialCharacterRequired;
}
public AccessCodeFormat specialCharacterRequiredMetadata(SettingsMetadata specialCharacterRequiredMetadata) {
this.specialCharacterRequiredMetadata = specialCharacterRequiredMetadata;
return this;
}
/**
* Get specialCharacterRequiredMetadata
* @return specialCharacterRequiredMetadata
**/
@ApiModelProperty(value = "")
public SettingsMetadata getSpecialCharacterRequiredMetadata() {
return specialCharacterRequiredMetadata;
}
public void setSpecialCharacterRequiredMetadata(SettingsMetadata specialCharacterRequiredMetadata) {
this.specialCharacterRequiredMetadata = specialCharacterRequiredMetadata;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccessCodeFormat accessCodeFormat = (AccessCodeFormat) o;
return Objects.equals(this.formatRequired, accessCodeFormat.formatRequired) &&
Objects.equals(this.formatRequiredMetadata, accessCodeFormat.formatRequiredMetadata) &&
Objects.equals(this.letterRequired, accessCodeFormat.letterRequired) &&
Objects.equals(this.letterRequiredMetadata, accessCodeFormat.letterRequiredMetadata) &&
Objects.equals(this.minimumLength, accessCodeFormat.minimumLength) &&
Objects.equals(this.minimumLengthMetadata, accessCodeFormat.minimumLengthMetadata) &&
Objects.equals(this.numberRequired, accessCodeFormat.numberRequired) &&
Objects.equals(this.numberRequiredMetadata, accessCodeFormat.numberRequiredMetadata) &&
Objects.equals(this.specialCharacterRequired, accessCodeFormat.specialCharacterRequired) &&
Objects.equals(this.specialCharacterRequiredMetadata, accessCodeFormat.specialCharacterRequiredMetadata);
}
@Override
public int hashCode() {
return Objects.hash(formatRequired, formatRequiredMetadata, letterRequired, letterRequiredMetadata, minimumLength, minimumLengthMetadata, numberRequired, numberRequiredMetadata, specialCharacterRequired, specialCharacterRequiredMetadata);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccessCodeFormat {\n");
sb.append(" formatRequired: ").append(toIndentedString(formatRequired)).append("\n");
sb.append(" formatRequiredMetadata: ").append(toIndentedString(formatRequiredMetadata)).append("\n");
sb.append(" letterRequired: ").append(toIndentedString(letterRequired)).append("\n");
sb.append(" letterRequiredMetadata: ").append(toIndentedString(letterRequiredMetadata)).append("\n");
sb.append(" minimumLength: ").append(toIndentedString(minimumLength)).append("\n");
sb.append(" minimumLengthMetadata: ").append(toIndentedString(minimumLengthMetadata)).append("\n");
sb.append(" numberRequired: ").append(toIndentedString(numberRequired)).append("\n");
sb.append(" numberRequiredMetadata: ").append(toIndentedString(numberRequiredMetadata)).append("\n");
sb.append(" specialCharacterRequired: ").append(toIndentedString(specialCharacterRequired)).append("\n");
sb.append(" specialCharacterRequiredMetadata: ").append(toIndentedString(specialCharacterRequiredMetadata)).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 ");
}
}