Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Treeverse LakeFS Java SDK Model Statement

From Leeroopedia
Revision as of 16:58, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Treeverse_LakeFS_Java_SDK_Model_Statement.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Knowledge Sources
Domains Java_SDK, Data_Model
Last Updated 2026-02-08 00:00 GMT

Overview

Concrete data transfer object representing a policy statement (permission rule) in the lakeFS Java SDK.

Description

The Statement class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to access control statement fields through getter/setter methods and supports JSON serialization via Gson.

Usage

Use this model when defining permission statements within access control policies through the lakeFS Java SDK API classes.

Code Reference

Source Location

Signature

public class Statement {
    // Fields with @SerializedName annotations
    // Getter/setter methods
    // equals, hashCode, toString
    // JSON type adapter
}

Import

import io.lakefs.clients.sdk.model.Statement;

I/O Contract

Inputs

Name Type Required Description
effect EffectEnum Yes Whether to allow or deny the actions (allow, deny)
resource String Yes Resource ARN pattern the statement applies to
action List<String> Yes List of action strings this statement permits or denies
condition Map<String, Map<String, List<String>>> No Optional conditions for the statement

Outputs

Name Type Description
JSON String Serialized JSON representation of the object

Usage Examples

Creating an Instance

import io.lakefs.clients.sdk.model.Statement;

Statement obj = new Statement();
obj.setEffect(Statement.EffectEnum.ALLOW);
obj.setResource("arn:lakefs:repos:::*");
obj.addActionItem("fs:ReadObject");

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment