com.docusign.admin.model.DSGroupUsersResponse 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;
/** DSGroupUsersResponse. */
public class DSGroupUsersResponse {
@JsonProperty("page")
private Integer page = null;
@JsonProperty("page_size")
private Integer pageSize = null;
@JsonProperty("total_count")
private Integer totalCount = null;
@JsonProperty("users")
private java.util.List users = null;
/**
* page.
*
* @return DSGroupUsersResponse
*/
public DSGroupUsersResponse page(Integer page) {
this.page = page;
return this;
}
/**
* Get page.
*
* @return page
*/
@Schema(description = "")
public Integer getPage() {
return page;
}
/** setPage. */
public void setPage(Integer page) {
this.page = page;
}
/**
* pageSize.
*
* @return DSGroupUsersResponse
*/
public DSGroupUsersResponse pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* Get pageSize.
*
* @return pageSize
*/
@Schema(description = "")
public Integer getPageSize() {
return pageSize;
}
/** setPageSize. */
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
/**
* totalCount.
*
* @return DSGroupUsersResponse
*/
public DSGroupUsersResponse totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* Get totalCount.
*
* @return totalCount
*/
@Schema(description = "")
public Integer getTotalCount() {
return totalCount;
}
/** setTotalCount. */
public void setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
}
/**
* users.
*
* @return DSGroupUsersResponse
*/
public DSGroupUsersResponse users(java.util.List users) {
this.users = users;
return this;
}
/**
* addUsersItem.
*
* @return DSGroupUsersResponse
*/
public DSGroupUsersResponse addUsersItem(DSGroupUserResponse usersItem) {
if (this.users == null) {
this.users = new java.util.ArrayList<>();
}
this.users.add(usersItem);
return this;
}
/**
* Get users.
*
* @return users
*/
@Schema(description = "")
public java.util.List getUsers() {
return users;
}
/** setUsers. */
public void setUsers(java.util.List users) {
this.users = users;
}
/**
* 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;
}
DSGroupUsersResponse dsGroupUsersResponse = (DSGroupUsersResponse) o;
return Objects.equals(this.page, dsGroupUsersResponse.page)
&& Objects.equals(this.pageSize, dsGroupUsersResponse.pageSize)
&& Objects.equals(this.totalCount, dsGroupUsersResponse.totalCount)
&& Objects.equals(this.users, dsGroupUsersResponse.users);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(page, pageSize, totalCount, users);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DSGroupUsersResponse {\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n");
sb.append(" users: ").append(toIndentedString(users)).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 ");
}
}