com.docusign.admin.model.NewUserResponseAccountProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docusign-admin-java Show documentation
Show all versions of docusign-admin-java Show documentation
The DocuSign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.
package com.docusign.admin.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
/** NewUserResponseAccountProperties. */
public class NewUserResponseAccountProperties {
@JsonProperty("id")
private java.util.UUID id = null;
@JsonProperty("site_id")
private Integer siteId = null;
@JsonProperty("permission_profile")
private PermissionProfileResponse permissionProfile = null;
@JsonProperty("groups")
private java.util.List groups = null;
@JsonProperty("company_name")
private String companyName = null;
@JsonProperty("job_title")
private String jobTitle = null;
/**
* id.
*
* @return NewUserResponseAccountProperties
*/
public NewUserResponseAccountProperties id(java.util.UUID id) {
this.id = id;
return this;
}
/**
* Get id.
*
* @return id
*/
@Schema(example = "00000000-0000-0000-0000-000000000000", description = "")
public java.util.UUID getId() {
return id;
}
/** setId. */
public void setId(java.util.UUID id) {
this.id = id;
}
/**
* siteId.
*
* @return NewUserResponseAccountProperties
*/
public NewUserResponseAccountProperties siteId(Integer siteId) {
this.siteId = siteId;
return this;
}
/**
* Get siteId.
*
* @return siteId
*/
@Schema(description = "")
public Integer getSiteId() {
return siteId;
}
/** setSiteId. */
public void setSiteId(Integer siteId) {
this.siteId = siteId;
}
/**
* permissionProfile.
*
* @return NewUserResponseAccountProperties
*/
public NewUserResponseAccountProperties permissionProfile(
PermissionProfileResponse permissionProfile) {
this.permissionProfile = permissionProfile;
return this;
}
/**
* Get permissionProfile.
*
* @return permissionProfile
*/
@Schema(description = "")
public PermissionProfileResponse getPermissionProfile() {
return permissionProfile;
}
/** setPermissionProfile. */
public void setPermissionProfile(PermissionProfileResponse permissionProfile) {
this.permissionProfile = permissionProfile;
}
/**
* groups.
*
* @return NewUserResponseAccountProperties
*/
public NewUserResponseAccountProperties groups(java.util.List groups) {
this.groups = groups;
return this;
}
/**
* addGroupsItem.
*
* @return NewUserResponseAccountProperties
*/
public NewUserResponseAccountProperties addGroupsItem(MemberGroupResponse groupsItem) {
if (this.groups == null) {
this.groups = new java.util.ArrayList<>();
}
this.groups.add(groupsItem);
return this;
}
/**
* Get groups.
*
* @return groups
*/
@Schema(description = "")
public java.util.List getGroups() {
return groups;
}
/** setGroups. */
public void setGroups(java.util.List groups) {
this.groups = groups;
}
/**
* companyName.
*
* @return NewUserResponseAccountProperties
*/
public NewUserResponseAccountProperties companyName(String companyName) {
this.companyName = companyName;
return this;
}
/**
* Get companyName.
*
* @return companyName
*/
@Schema(description = "")
public String getCompanyName() {
return companyName;
}
/** setCompanyName. */
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
/**
* jobTitle.
*
* @return NewUserResponseAccountProperties
*/
public NewUserResponseAccountProperties jobTitle(String jobTitle) {
this.jobTitle = jobTitle;
return this;
}
/**
* Get jobTitle.
*
* @return jobTitle
*/
@Schema(description = "")
public String getJobTitle() {
return jobTitle;
}
/** setJobTitle. */
public void setJobTitle(String jobTitle) {
this.jobTitle = jobTitle;
}
/**
* Compares objects.
*
* @return true or false depending on comparison result.
*/
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NewUserResponseAccountProperties newUserResponseAccountProperties =
(NewUserResponseAccountProperties) o;
return Objects.equals(this.id, newUserResponseAccountProperties.id)
&& Objects.equals(this.siteId, newUserResponseAccountProperties.siteId)
&& Objects.equals(
this.permissionProfile, newUserResponseAccountProperties.permissionProfile)
&& Objects.equals(this.groups, newUserResponseAccountProperties.groups)
&& Objects.equals(this.companyName, newUserResponseAccountProperties.companyName)
&& Objects.equals(this.jobTitle, newUserResponseAccountProperties.jobTitle);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(id, siteId, permissionProfile, groups, companyName, jobTitle);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NewUserResponseAccountProperties {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n");
sb.append(" permissionProfile: ").append(toIndentedString(permissionProfile)).append("\n");
sb.append(" groups: ").append(toIndentedString(groups)).append("\n");
sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n");
sb.append(" jobTitle: ").append(toIndentedString(jobTitle)).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 ");
}
}