io.permit.sdk.openapi.models.ResourceRead__1 Maven / Gradle / Ivy
Show all versions of permit-sdk-java Show documentation
package io.permit.sdk.openapi.models;
import java.util.Date;
import java.util.HashMap;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* ResourceRead
*
*
*
*/
@Generated("jsonschema2pojo")
public class ResourceRead__1 {
/**
* Key
*
* A URL-friendly name of the resource (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the resource.
* (Required)
*
*/
@SerializedName("key")
@Expose
public java.lang.String key;
/**
* Id
*
* Unique id of the resource
* (Required)
*
*/
@SerializedName("id")
@Expose
public java.lang.String id;
/**
* Organization Id
*
* Unique id of the organization that the resource belongs to.
* (Required)
*
*/
@SerializedName("organization_id")
@Expose
public java.lang.String organizationId;
/**
* Project Id
*
* Unique id of the project that the resource belongs to.
* (Required)
*
*/
@SerializedName("project_id")
@Expose
public java.lang.String projectId;
/**
* Environment Id
*
* Unique id of the environment that the resource belongs to.
* (Required)
*
*/
@SerializedName("environment_id")
@Expose
public java.lang.String environmentId;
/**
* Created At
*
* Date and time when the resource was created (ISO_8601 format).
* (Required)
*
*/
@SerializedName("created_at")
@Expose
public Date createdAt;
/**
* Updated At
*
* Date and time when the resource was last updated/modified (ISO_8601 format).
* (Required)
*
*/
@SerializedName("updated_at")
@Expose
public Date updatedAt;
/**
* Name
*
* The name of the resource
* (Required)
*
*/
@SerializedName("name")
@Expose
public java.lang.String name;
/**
* Urn
*
* The [URN](https://en.wikipedia.org/wiki/Uniform_Resource_Name) (Uniform Resource Name) of the resource
*
*/
@SerializedName("urn")
@Expose
public java.lang.String urn;
/**
* Description
*
* An optional longer description of what this resource respresents in your system
*
*/
@SerializedName("description")
@Expose
public java.lang.String description;
/**
* Actions
*
*
* A actions definition block, typically contained within a resource type definition block.
* The actions represents the ways you can interact with a protected resource.
*
*
*/
@SerializedName("actions")
@Expose
public HashMap actions;
/**
* Attributes
*
* Attributes that each resource of this type defines, and can be used in your ABAC policies.
*
*/
@SerializedName("attributes")
@Expose
public HashMap attributes;
/**
* No args constructor for use in serialization
*
*/
public ResourceRead__1() {
}
/**
*
* @param organizationId
* @param createdAt
* @param environmentId
* @param name
* @param id
* @param projectId
* @param key
* @param updatedAt
*/
public ResourceRead__1(java.lang.String key, java.lang.String id, java.lang.String organizationId, java.lang.String projectId, java.lang.String environmentId, Date createdAt, Date updatedAt, java.lang.String name) {
super();
this.key = key;
this.id = id;
this.organizationId = organizationId;
this.projectId = projectId;
this.environmentId = environmentId;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
this.name = name;
}
public ResourceRead__1 withKey(java.lang.String key) {
this.key = key;
return this;
}
public ResourceRead__1 withId(java.lang.String id) {
this.id = id;
return this;
}
public ResourceRead__1 withOrganizationId(java.lang.String organizationId) {
this.organizationId = organizationId;
return this;
}
public ResourceRead__1 withProjectId(java.lang.String projectId) {
this.projectId = projectId;
return this;
}
public ResourceRead__1 withEnvironmentId(java.lang.String environmentId) {
this.environmentId = environmentId;
return this;
}
public ResourceRead__1 withCreatedAt(Date createdAt) {
this.createdAt = createdAt;
return this;
}
public ResourceRead__1 withUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
return this;
}
public ResourceRead__1 withName(java.lang.String name) {
this.name = name;
return this;
}
public ResourceRead__1 withUrn(java.lang.String urn) {
this.urn = urn;
return this;
}
public ResourceRead__1 withDescription(java.lang.String description) {
this.description = description;
return this;
}
public ResourceRead__1 withActions(HashMap actions) {
this.actions = actions;
return this;
}
public ResourceRead__1 withAttributes(HashMap attributes) {
this.attributes = attributes;
return this;
}
}