io.permit.sdk.openapi.models.UserRead 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;
/**
* UserRead
*
*
*
*/
@Generated("jsonschema2pojo")
public class UserRead {
/**
* Key
*
* A unique id by which Permit will identify the user for permission checks.
* (Required)
*
*/
@SerializedName("key")
@Expose
public java.lang.String key;
/**
* Id
*
* Unique id of the user
* (Required)
*
*/
@SerializedName("id")
@Expose
public java.lang.String id;
/**
* Organization Id
*
* Unique id of the organization that the user belongs to.
* (Required)
*
*/
@SerializedName("organization_id")
@Expose
public java.lang.String organizationId;
/**
* Project Id
*
* Unique id of the project that the user belongs to.
* (Required)
*
*/
@SerializedName("project_id")
@Expose
public java.lang.String projectId;
/**
* Environment Id
*
* Unique id of the environment that the user belongs to.
* (Required)
*
*/
@SerializedName("environment_id")
@Expose
public java.lang.String environmentId;
/**
* Associated Tenants
*
*
*
*/
@SerializedName("associated_tenants")
@Expose
public List associatedTenants;
/**
* Roles
*
*
*
*/
@SerializedName("roles")
@Expose
public List roles;
/**
* 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;
/**
* No args constructor for use in serialization
*
*/
public UserRead() {
}
/**
*
* @param organizationId
* @param environmentId
* @param id
* @param projectId
* @param key
*/
public UserRead(java.lang.String key, java.lang.String id, java.lang.String organizationId, java.lang.String projectId, java.lang.String environmentId) {
super();
this.key = key;
this.id = id;
this.organizationId = organizationId;
this.projectId = projectId;
this.environmentId = environmentId;
}
public UserRead withKey(java.lang.String key) {
this.key = key;
return this;
}
public UserRead withId(java.lang.String id) {
this.id = id;
return this;
}
public UserRead withOrganizationId(java.lang.String organizationId) {
this.organizationId = organizationId;
return this;
}
public UserRead withProjectId(java.lang.String projectId) {
this.projectId = projectId;
return this;
}
public UserRead withEnvironmentId(java.lang.String environmentId) {
this.environmentId = environmentId;
return this;
}
public UserRead withAssociatedTenants(List associatedTenants) {
this.associatedTenants = associatedTenants;
return this;
}
public UserRead withRoles(List roles) {
this.roles = roles;
return this;
}
public UserRead withEmail(java.lang.String email) {
this.email = email;
return this;
}
public UserRead withFirstName(java.lang.String firstName) {
this.firstName = firstName;
return this;
}
public UserRead withLastName(java.lang.String lastName) {
this.lastName = lastName;
return this;
}
public UserRead withAttributes(HashMap attributes) {
this.attributes = attributes;
return this;
}
}