io.permit.sdk.openapi.models.AttributeBlockRead Maven / Gradle / Ivy
Show all versions of permit-sdk-java Show documentation
package io.permit.sdk.openapi.models;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* AttributeBlockRead
*
*
*
*/
@Generated("jsonschema2pojo")
public class AttributeBlockRead {
/**
*
* (Required)
*
*/
@SerializedName("type")
@Expose
public AttributeType type;
/**
* Description
*
* optional description string explaining what data this attribute will store
*
*/
@SerializedName("description")
@Expose
public String description;
/**
* Id
*
* Unique id of the attribute
* (Required)
*
*/
@SerializedName("id")
@Expose
public String id;
/**
* Key
*
* action key
*
*/
@SerializedName("key")
@Expose
public String key;
/**
* No args constructor for use in serialization
*
*/
public AttributeBlockRead() {
}
/**
*
* @param id
* @param type
*/
public AttributeBlockRead(AttributeType type, String id) {
super();
this.type = type;
this.id = id;
}
public AttributeBlockRead withType(AttributeType type) {
this.type = type;
return this;
}
public AttributeBlockRead withDescription(String description) {
this.description = description;
return this;
}
public AttributeBlockRead withId(String id) {
this.id = id;
return this;
}
public AttributeBlockRead withKey(String key) {
this.key = key;
return this;
}
}