com.docusign.esign.model.AuthenticationMethod 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;
/**
* Contains information about the method used for authentication.
*/
@ApiModel(description = "Contains information about the method used for authentication.")
public class AuthenticationMethod {
@JsonProperty("authenticationType")
private String authenticationType = null;
@JsonProperty("lastProvider")
private String lastProvider = null;
@JsonProperty("lastTimestamp")
private String lastTimestamp = null;
@JsonProperty("totalCount")
private String totalCount = null;
public AuthenticationMethod authenticationType(String authenticationType) {
this.authenticationType = authenticationType;
return this;
}
/**
* Indicates the type of authentication. Valid values are: PhoneAuth, STAN, ISCheck, OFAC, AccessCode, AgeVerify, or SSOAuth.
* @return authenticationType
**/
@ApiModelProperty(value = "Indicates the type of authentication. Valid values are: PhoneAuth, STAN, ISCheck, OFAC, AccessCode, AgeVerify, or SSOAuth. ")
public String getAuthenticationType() {
return authenticationType;
}
public void setAuthenticationType(String authenticationType) {
this.authenticationType = authenticationType;
}
public AuthenticationMethod lastProvider(String lastProvider) {
this.lastProvider = lastProvider;
return this;
}
/**
* The last provider that authenticated the user.
* @return lastProvider
**/
@ApiModelProperty(value = "The last provider that authenticated the user. ")
public String getLastProvider() {
return lastProvider;
}
public void setLastProvider(String lastProvider) {
this.lastProvider = lastProvider;
}
public AuthenticationMethod lastTimestamp(String lastTimestamp) {
this.lastTimestamp = lastTimestamp;
return this;
}
/**
* The data and time the user last used the authentication method.
* @return lastTimestamp
**/
@ApiModelProperty(value = " The data and time the user last used the authentication method. ")
public String getLastTimestamp() {
return lastTimestamp;
}
public void setLastTimestamp(String lastTimestamp) {
this.lastTimestamp = lastTimestamp;
}
public AuthenticationMethod totalCount(String totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* The number of times the authentication method was used.
* @return totalCount
**/
@ApiModelProperty(value = "The number of times the authentication method was used. ")
public String getTotalCount() {
return totalCount;
}
public void setTotalCount(String totalCount) {
this.totalCount = totalCount;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AuthenticationMethod authenticationMethod = (AuthenticationMethod) o;
return Objects.equals(this.authenticationType, authenticationMethod.authenticationType) &&
Objects.equals(this.lastProvider, authenticationMethod.lastProvider) &&
Objects.equals(this.lastTimestamp, authenticationMethod.lastTimestamp) &&
Objects.equals(this.totalCount, authenticationMethod.totalCount);
}
@Override
public int hashCode() {
return Objects.hash(authenticationType, lastProvider, lastTimestamp, totalCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AuthenticationMethod {\n");
sb.append(" authenticationType: ").append(toIndentedString(authenticationType)).append("\n");
sb.append(" lastProvider: ").append(toIndentedString(lastProvider)).append("\n");
sb.append(" lastTimestamp: ").append(toIndentedString(lastTimestamp)).append("\n");
sb.append(" totalCount: ").append(toIndentedString(totalCount)).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 ");
}
}