io.permit.sdk.openapi.models.DerivedRole 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;
/**
* DerivedRole
*
*
*
*/
@Generated("jsonschema2pojo")
public class DerivedRole {
/**
* Conditions
*
*
*
*/
@SerializedName("conditions")
@Expose
public String conditions;
/**
*
* (Required)
*
*/
@SerializedName("settings")
@Expose
public DerivedRoleSettings settings;
/**
* Rules
*
*
* (Required)
*
*/
@SerializedName("rules")
@Expose
public List rules;
/**
* No args constructor for use in serialization
*
*/
public DerivedRole() {
}
/**
*
* @param settings
* @param rules
*/
public DerivedRole(DerivedRoleSettings settings, List rules) {
super();
this.settings = settings;
this.rules = rules;
}
public DerivedRole withConditions(String conditions) {
this.conditions = conditions;
return this;
}
public DerivedRole withSettings(DerivedRoleSettings settings) {
this.settings = settings;
return this;
}
public DerivedRole withRules(List rules) {
this.rules = rules;
return this;
}
}