com.docusign.esign.model.UserSocialIdResult 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.SocialAccountInformation;
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;
/**
* UserSocialIdResult
*/
public class UserSocialIdResult {
@JsonProperty("socialAccountInformation")
private java.util.List socialAccountInformation = null;
@JsonProperty("userId")
private String userId = null;
public UserSocialIdResult socialAccountInformation(java.util.List socialAccountInformation) {
this.socialAccountInformation = socialAccountInformation;
return this;
}
public UserSocialIdResult addSocialAccountInformationItem(SocialAccountInformation socialAccountInformationItem) {
if (this.socialAccountInformation == null) {
this.socialAccountInformation = new java.util.ArrayList();
}
this.socialAccountInformation.add(socialAccountInformationItem);
return this;
}
/**
* Contains properties that map a DocuSign user to a social account (Facebook, Yahoo, etc.)
* @return socialAccountInformation
**/
@ApiModelProperty(value = "Contains properties that map a DocuSign user to a social account (Facebook, Yahoo, etc.)")
public java.util.List getSocialAccountInformation() {
return socialAccountInformation;
}
public void setSocialAccountInformation(java.util.List socialAccountInformation) {
this.socialAccountInformation = socialAccountInformation;
}
public UserSocialIdResult userId(String userId) {
this.userId = userId;
return this;
}
/**
*
* @return userId
**/
@ApiModelProperty(value = "")
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserSocialIdResult userSocialIdResult = (UserSocialIdResult) o;
return Objects.equals(this.socialAccountInformation, userSocialIdResult.socialAccountInformation) &&
Objects.equals(this.userId, userSocialIdResult.userId);
}
@Override
public int hashCode() {
return Objects.hash(socialAccountInformation, userId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserSocialIdResult {\n");
sb.append(" socialAccountInformation: ").append(toIndentedString(socialAccountInformation)).append("\n");
sb.append(" userId: ").append(toIndentedString(userId)).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 ");
}
}