io.permit.sdk.openapi.models.UserCreate Maven / Gradle / Ivy
Show all versions of permit-sdk-java Show documentation
package io.permit.sdk.openapi.models;
import java.util.HashMap;
import java.util.List;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* UserCreate
*
*
*
*/
@Generated("jsonschema2pojo")
public class UserCreate {
/**
* Key
*
* A unique id by which Permit will identify the user for permission checks.
* (Required)
*
*/
@SerializedName("key")
@Expose
public java.lang.String key;
/**
* Email
*
* The email of the user. If synced, will be unique inside the environment.
*
*/
@SerializedName("email")
@Expose
public java.lang.String email;
/**
* First Name
*
* First name of the user.
*
*/
@SerializedName("first_name")
@Expose
public java.lang.String firstName;
/**
* Last Name
*
* Last name of the user.
*
*/
@SerializedName("last_name")
@Expose
public java.lang.String lastName;
/**
* Attributes
*
* Arbitrary user attributes that will be used to enforce attribute-based access control policies.
*
*/
@SerializedName("attributes")
@Expose
public HashMap attributes;
/**
* Role Assignments
*
* List of roles to assign to the user in the environment.
*
*/
@SerializedName("role_assignments")
@Expose
public List roleAssignments;
/**
* No args constructor for use in serialization
*
*/
public UserCreate() {
}
/**
*
* @param key
*/
public UserCreate(java.lang.String key) {
super();
this.key = key;
}
public UserCreate withKey(java.lang.String key) {
this.key = key;
return this;
}
public UserCreate withEmail(java.lang.String email) {
this.email = email;
return this;
}
public UserCreate withFirstName(java.lang.String firstName) {
this.firstName = firstName;
return this;
}
public UserCreate withLastName(java.lang.String lastName) {
this.lastName = lastName;
return this;
}
public UserCreate withAttributes(HashMap attributes) {
this.attributes = attributes;
return this;
}
public UserCreate withRoleAssignments(List roleAssignments) {
this.roleAssignments = roleAssignments;
return this;
}
}