io.permit.sdk.openapi.models.Statistics 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;
/**
* Statistics
*
*
*
*/
@Generated("jsonschema2pojo")
public class Statistics {
/**
* Roles
*
*
* (Required)
*
*/
@SerializedName("roles")
@Expose
public Integer roles;
/**
* Users
*
*
* (Required)
*
*/
@SerializedName("users")
@Expose
public Integer users;
/**
* Policies
*
*
* (Required)
*
*/
@SerializedName("policies")
@Expose
public Integer policies;
/**
* Resources
*
*
* (Required)
*
*/
@SerializedName("resources")
@Expose
public Integer resources;
/**
* Tenants
*
*
* (Required)
*
*/
@SerializedName("tenants")
@Expose
public Integer tenants;
/**
* Has Decision Logs
*
*
* (Required)
*
*/
@SerializedName("has_decision_logs")
@Expose
public Boolean hasDecisionLogs;
/**
* No args constructor for use in serialization
*
*/
public Statistics() {
}
/**
*
* @param tenants
* @param roles
* @param policies
* @param resources
* @param hasDecisionLogs
* @param users
*/
public Statistics(Integer roles, Integer users, Integer policies, Integer resources, Integer tenants, Boolean hasDecisionLogs) {
super();
this.roles = roles;
this.users = users;
this.policies = policies;
this.resources = resources;
this.tenants = tenants;
this.hasDecisionLogs = hasDecisionLogs;
}
public Statistics withRoles(Integer roles) {
this.roles = roles;
return this;
}
public Statistics withUsers(Integer users) {
this.users = users;
return this;
}
public Statistics withPolicies(Integer policies) {
this.policies = policies;
return this;
}
public Statistics withResources(Integer resources) {
this.resources = resources;
return this;
}
public Statistics withTenants(Integer tenants) {
this.tenants = tenants;
return this;
}
public Statistics withHasDecisionLogs(Boolean hasDecisionLogs) {
this.hasDecisionLogs = hasDecisionLogs;
return this;
}
}