All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.permit.sdk.openapi.models.RoleBlockEditable Maven / Gradle / Ivy

There is a newer version: 983f46e
Show newest version

package io.permit.sdk.openapi.models;

import java.util.List;
import java.util.HashMap;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;


/**
 * RoleBlockEditable
 * 

* * */ @Generated("jsonschema2pojo") public class RoleBlockEditable { /** * Name *

* The name of the role * (Required) * */ @SerializedName("name") @Expose public String name; /** * Description *

* optional description string explaining what this role represents, or what permissions are granted to it. * */ @SerializedName("description") @Expose public String description; /** * Permissions *

* list of action keys that define what actions this resource role is permitted to do * */ @SerializedName("permissions") @Expose public List permissions; /** * Attributes *

* optional dictionary of key-value pairs that can be used to store arbitrary metadata about this role. This metadata can be used to filter role using query parameters with attr_ prefix, currently supports only 'equals' operator * */ @SerializedName("attributes") @Expose public HashMap attributes; /** * Granted To *

* Derived role that inherit will be applied on this role * */ @SerializedName("granted_to") @Expose public DerivedRoleBlockEdit grantedTo; /** * No args constructor for use in serialization * */ public RoleBlockEditable() { } /** * * @param name */ public RoleBlockEditable(String name) { super(); this.name = name; } public RoleBlockEditable withName(String name) { this.name = name; return this; } public RoleBlockEditable withDescription(String description) { this.description = description; return this; } public RoleBlockEditable withPermissions(List permissions) { this.permissions = permissions; return this; } public RoleBlockEditable withAttributes(HashMap attributes) { this.attributes = attributes; return this; } public RoleBlockEditable withGrantedTo(DerivedRoleBlockEdit grantedTo) { this.grantedTo = grantedTo; return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy