io.permit.sdk.openapi.models.PaginatedResultRoleRead 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;
/**
* PaginatedResult[RoleRead]
*
*
*
*/
@Generated("jsonschema2pojo")
public class PaginatedResultRoleRead {
/**
* Data
*
* List of Roles
* (Required)
*
*/
@SerializedName("data")
@Expose
public List data;
/**
* Total Count
*
*
* (Required)
*
*/
@SerializedName("total_count")
@Expose
public Integer totalCount;
/**
* Page Count
*
*
*
*/
@SerializedName("page_count")
@Expose
public Integer pageCount = 0;
/**
* No args constructor for use in serialization
*
*/
public PaginatedResultRoleRead() {
}
/**
*
* @param data
* @param totalCount
*/
public PaginatedResultRoleRead(List data, Integer totalCount) {
super();
this.data = data;
this.totalCount = totalCount;
}
public PaginatedResultRoleRead withData(List data) {
this.data = data;
return this;
}
public PaginatedResultRoleRead withTotalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public PaginatedResultRoleRead withPageCount(Integer pageCount) {
this.pageCount = pageCount;
return this;
}
}