com.docusign.admin.model.UserProductPermissionProfilesRequest 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;
/** UserProductPermissionProfilesRequest. */
public class UserProductPermissionProfilesRequest {
@JsonProperty("email")
private String email = null;
@JsonProperty("product_permission_profiles")
private java.util.List productPermissionProfiles =
new java.util.ArrayList<>();
/**
* email.
*
* @return UserProductPermissionProfilesRequest
*/
public UserProductPermissionProfilesRequest email(String email) {
this.email = email;
return this;
}
/**
* Get email.
*
* @return email
*/
@Schema(required = true, description = "")
public String getEmail() {
return email;
}
/** setEmail. */
public void setEmail(String email) {
this.email = email;
}
/**
* productPermissionProfiles.
*
* @return UserProductPermissionProfilesRequest
*/
public UserProductPermissionProfilesRequest productPermissionProfiles(
java.util.List productPermissionProfiles) {
this.productPermissionProfiles = productPermissionProfiles;
return this;
}
/**
* addProductPermissionProfilesItem.
*
* @return UserProductPermissionProfilesRequest
*/
public UserProductPermissionProfilesRequest addProductPermissionProfilesItem(
ProductPermissionProfileRequest productPermissionProfilesItem) {
this.productPermissionProfiles.add(productPermissionProfilesItem);
return this;
}
/**
* Get productPermissionProfiles.
*
* @return productPermissionProfiles
*/
@Schema(required = true, description = "")
public java.util.List getProductPermissionProfiles() {
return productPermissionProfiles;
}
/** setProductPermissionProfiles. */
public void setProductPermissionProfiles(
java.util.List productPermissionProfiles) {
this.productPermissionProfiles = productPermissionProfiles;
}
/**
* 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;
}
UserProductPermissionProfilesRequest userProductPermissionProfilesRequest =
(UserProductPermissionProfilesRequest) o;
return Objects.equals(this.email, userProductPermissionProfilesRequest.email)
&& Objects.equals(
this.productPermissionProfiles,
userProductPermissionProfilesRequest.productPermissionProfiles);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(email, productPermissionProfiles);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserProductPermissionProfilesRequest {\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" productPermissionProfiles: ")
.append(toIndentedString(productPermissionProfiles))
.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 ");
}
}