io.permit.sdk.openapi.models.UserRole__1 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;
/**
* UserRole
*
*
*
*/
@Generated("jsonschema2pojo")
public class UserRole__1 {
/**
* Role
*
* the role that is assigned
* (Required)
*
*/
@SerializedName("role")
@Expose
public String role;
/**
* Tenant
*
* the tenant the role is associated with
* (Required)
*
*/
@SerializedName("tenant")
@Expose
public String tenant;
/**
* No args constructor for use in serialization
*
*/
public UserRole__1() {
}
/**
*
* @param role
* @param tenant
*/
public UserRole__1(String role, String tenant) {
super();
this.role = role;
this.tenant = tenant;
}
public UserRole__1 withRole(String role) {
this.role = role;
return this;
}
public UserRole__1 withTenant(String tenant) {
this.tenant = tenant;
return this;
}
}