io.permit.sdk.openapi.models.ActionBlockRead Maven / Gradle / Ivy
Show all versions of permit-sdk-java Show documentation
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;
/**
* ActionBlockRead
*
*
*
*/
@Generated("jsonschema2pojo")
public class ActionBlockRead {
/**
* Name
*
* a more descriptive name for the action
*
*/
@SerializedName("name")
@Expose
public String name;
/**
* Description
*
* optional description string explaining what this action represents in your system
*
*/
@SerializedName("description")
@Expose
public String description;
/**
* Attributes
*
* Arbitrary action attributes that can be used for filtering or enforcement of attribute-based access control policies.
*
*/
@SerializedName("attributes")
@Expose
public HashMap attributes;
/**
* Id
*
* Unique id of the action
* (Required)
*
*/
@SerializedName("id")
@Expose
public String id;
/**
* Key
*
* action key
*
*/
@SerializedName("key")
@Expose
public String key;
/**
* No args constructor for use in serialization
*
*/
public ActionBlockRead() {
}
/**
*
* @param id
*/
public ActionBlockRead(String id) {
super();
this.id = id;
}
public ActionBlockRead withName(String name) {
this.name = name;
return this;
}
public ActionBlockRead withDescription(String description) {
this.description = description;
return this;
}
public ActionBlockRead withAttributes(HashMap attributes) {
this.attributes = attributes;
return this;
}
public ActionBlockRead withId(String id) {
this.id = id;
return this;
}
public ActionBlockRead withKey(String key) {
this.key = key;
return this;
}
}