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

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

There is a newer version: 983f46e
Show newest version

package io.permit.sdk.openapi.models;

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


/**
 * ConditionSetCreate
 * 

* * */ @Generated("jsonschema2pojo") public class ConditionSetCreate { /** * Key *

* A unique id by which Permit will identify the condition set. The key will be used as the generated rego rule name. * (Required) * */ @SerializedName("key") @Expose public java.lang.String key; /** * the type of the set: UserSet or ResourceSet * */ @SerializedName("type") @Expose public ConditionSetType type; /** * Autogenerated *

* whether the set was autogenerated by the system. * */ @SerializedName("autogenerated") @Expose public Boolean autogenerated = false; /** * Resource Id *

* For ResourceSets, the id of the base resource. * */ @SerializedName("resource_id") @Expose public java.lang.String resourceId; /** * Name *

* A descriptive name for the set, i.e: 'US based employees' or 'Users behind VPN' * (Required) * */ @SerializedName("name") @Expose public java.lang.String name; /** * Description *

* an optional longer description of the set * */ @SerializedName("description") @Expose public java.lang.String description; /** * Conditions *

* a boolean expression that consists of multiple conditions, with and/or logic. * */ @SerializedName("conditions") @Expose public HashMap conditions; /** * Parent Id *

* Parent Condition Set * */ @SerializedName("parent_id") @Expose public java.lang.String parentId; /** * No args constructor for use in serialization * */ public ConditionSetCreate() { } /** * * @param name * @param key */ public ConditionSetCreate(java.lang.String key, java.lang.String name) { super(); this.key = key; this.name = name; } public ConditionSetCreate withKey(java.lang.String key) { this.key = key; return this; } public ConditionSetCreate withType(ConditionSetType type) { this.type = type; return this; } public ConditionSetCreate withAutogenerated(Boolean autogenerated) { this.autogenerated = autogenerated; return this; } public ConditionSetCreate withResourceId(java.lang.String resourceId) { this.resourceId = resourceId; return this; } public ConditionSetCreate withName(java.lang.String name) { this.name = name; return this; } public ConditionSetCreate withDescription(java.lang.String description) { this.description = description; return this; } public ConditionSetCreate withConditions(HashMap conditions) { this.conditions = conditions; return this; } public ConditionSetCreate withParentId(java.lang.String parentId) { this.parentId = parentId; return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy