io.permit.sdk.openapi.models.DerivedRoleBlockRead Maven / Gradle / Ivy
Show all versions of permit-sdk-java Show documentation
package io.permit.sdk.openapi.models;
import java.util.List;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* DerivedRoleBlockRead
*
*
*
*/
@Generated("jsonschema2pojo")
public class DerivedRoleBlockRead {
/**
* When
*
* the settings of the derived role
*
*/
@SerializedName("when")
@Expose
public DerivedRoleSettings when;
/**
* Id
*
* The unique id of the derived_role
* (Required)
*
*/
@SerializedName("id")
@Expose
public String id;
/**
* Users With Role
*
* the rules of the derived role
*
*/
@SerializedName("users_with_role")
@Expose
public List usersWithRole;
/**
* No args constructor for use in serialization
*
*/
public DerivedRoleBlockRead() {
}
/**
*
* @param id
*/
public DerivedRoleBlockRead(String id) {
super();
this.id = id;
}
public DerivedRoleBlockRead withWhen(DerivedRoleSettings when) {
this.when = when;
return this;
}
public DerivedRoleBlockRead withId(String id) {
this.id = id;
return this;
}
public DerivedRoleBlockRead withUsersWithRole(List usersWithRole) {
this.usersWithRole = usersWithRole;
return this;
}
}