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

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

There is a newer version: 983f46e
Show newest version

package io.permit.sdk.openapi.models;

import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;


/**
 * DerivedRoleRuleRead
 * 

* * */ @Generated("jsonschema2pojo") public class DerivedRoleRuleRead { /** * Role Id *

* the role id that needs to exist on the related resource (from the relation) * (Required) * */ @SerializedName("role_id") @Expose public String roleId; /** * Resource Id *

* the resource id that needs to exist on the related role (from the relation) * (Required) * */ @SerializedName("resource_id") @Expose public String resourceId; /** * Relation Id *

* the relation id that needs to exist between the resource and the related resource * (Required) * */ @SerializedName("relation_id") @Expose public String relationId; /** * Role *

* the role key that needs to exist on the related resource (from the relation) * (Required) * */ @SerializedName("role") @Expose public String role; /** * On Resource *

* the resource key that needs to exist on the related role (from the relation) * (Required) * */ @SerializedName("on_resource") @Expose public String onResource; /** * Linked By Relation *

* the relation key that needs to exist between the resource and the related resource * (Required) * */ @SerializedName("linked_by_relation") @Expose public String linkedByRelation; /** * No args constructor for use in serialization * */ public DerivedRoleRuleRead() { } /** * * @param resourceId * @param role * @param roleId * @param linkedByRelation * @param onResource * @param relationId */ public DerivedRoleRuleRead(String roleId, String resourceId, String relationId, String role, String onResource, String linkedByRelation) { super(); this.roleId = roleId; this.resourceId = resourceId; this.relationId = relationId; this.role = role; this.onResource = onResource; this.linkedByRelation = linkedByRelation; } public DerivedRoleRuleRead withRoleId(String roleId) { this.roleId = roleId; return this; } public DerivedRoleRuleRead withResourceId(String resourceId) { this.resourceId = resourceId; return this; } public DerivedRoleRuleRead withRelationId(String relationId) { this.relationId = relationId; return this; } public DerivedRoleRuleRead withRole(String role) { this.role = role; return this; } public DerivedRoleRuleRead withOnResource(String onResource) { this.onResource = onResource; return this; } public DerivedRoleRuleRead withLinkedByRelation(String linkedByRelation) { this.linkedByRelation = linkedByRelation; return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy