com.docusign.admin.model.PermissionsResponse 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;
/** PermissionsResponse. */
public class PermissionsResponse {
@JsonProperty("permissions")
private java.util.List permissions = null;
/**
* permissions.
*
* @return PermissionsResponse
*/
public PermissionsResponse permissions(java.util.List permissions) {
this.permissions = permissions;
return this;
}
/**
* addPermissionsItem.
*
* @return PermissionsResponse
*/
public PermissionsResponse addPermissionsItem(PermissionProfileResponse permissionsItem) {
if (this.permissions == null) {
this.permissions = new java.util.ArrayList<>();
}
this.permissions.add(permissionsItem);
return this;
}
/**
* Get permissions.
*
* @return permissions
*/
@Schema(description = "")
public java.util.List getPermissions() {
return permissions;
}
/** setPermissions. */
public void setPermissions(java.util.List permissions) {
this.permissions = permissions;
}
/**
* 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;
}
PermissionsResponse permissionsResponse = (PermissionsResponse) o;
return Objects.equals(this.permissions, permissionsResponse.permissions);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(permissions);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PermissionsResponse {\n");
sb.append(" permissions: ").append(toIndentedString(permissions)).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 ");
}
}