io.permit.sdk.openapi.models.UserRoleRemove Maven / Gradle / Ivy
Show all versions of permit-sdk-java Show documentation
package io.permit.sdk.openapi.models;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* UserRoleRemove
*
*
*
*/
@Generated("jsonschema2pojo")
public class UserRoleRemove {
/**
* Role
*
* the role that will be unassigned (accepts either the role id or the role key)
* (Required)
*
*/
@SerializedName("role")
@Expose
public String role;
/**
* Tenant
*
* the tenant the role is associated with (accepts either the tenant id or the tenant key)
* (Required)
*
*/
@SerializedName("tenant")
@Expose
public String tenant;
/**
* No args constructor for use in serialization
*
*/
public UserRoleRemove() {
}
/**
*
* @param role
* @param tenant
*/
public UserRoleRemove(String role, String tenant) {
super();
this.role = role;
this.tenant = tenant;
}
public UserRoleRemove withRole(String role) {
this.role = role;
return this;
}
public UserRoleRemove withTenant(String tenant) {
this.tenant = tenant;
return this;
}
}