io.permit.sdk.openapi.models.UserRoleCreate 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;
/**
* UserRoleCreate
*
*
*
*/
@Generated("jsonschema2pojo")
public class UserRoleCreate {
/**
* Role
*
* the role that will be assigned (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)
*
*/
@SerializedName("tenant")
@Expose
public String tenant;
/**
* Resource Instance
*
* the resource instance the role is associated with (accepts either the resource instance id or key using this format resource_type:resource_instance)
*
*/
@SerializedName("resource_instance")
@Expose
public String resourceInstance;
/**
* No args constructor for use in serialization
*
*/
public UserRoleCreate() {
}
/**
*
* @param role
*/
public UserRoleCreate(String role) {
super();
this.role = role;
}
public UserRoleCreate(String role, String tenant) {
super();
this.role = role;
this.tenant = tenant;
}
public UserRoleCreate withRole(String role) {
this.role = role;
return this;
}
public UserRoleCreate withTenant(String tenant) {
this.tenant = tenant;
return this;
}
public UserRoleCreate withResourceInstance(String resourceInstance) {
this.resourceInstance = resourceInstance;
return this;
}
}