Package io.lakefs.clients.api.model
Class Statement
- java.lang.Object
-
- io.lakefs.clients.api.model.Statement
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Statement extends Object
Statement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatement.CustomTypeAdapterFactorystatic classStatement.EffectEnumGets or Sets effect
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACTIONstatic StringSERIALIZED_NAME_EFFECTstatic StringSERIALIZED_NAME_RESOURCE
-
Constructor Summary
Constructors Constructor Description Statement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Statementaction(List<String> action)StatementaddActionItem(String actionItem)Statementeffect(Statement.EffectEnum effect)booleanequals(Object o)static StatementfromJson(String jsonString)Create an instance of Statement given an JSON stringList<String>getAction()Get actionStatement.EffectEnumgetEffect()Get effectStringgetResource()Get resourceinthashCode()Statementresource(String resource)voidsetAction(List<String> action)voidsetEffect(Statement.EffectEnum effect)voidsetResource(String resource)StringtoJson()Convert an instance of Statement to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_EFFECT
public static final String SERIALIZED_NAME_EFFECT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESOURCE
public static final String SERIALIZED_NAME_RESOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACTION
public static final String SERIALIZED_NAME_ACTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
effect
public Statement effect(Statement.EffectEnum effect)
-
getEffect
@Nonnull public Statement.EffectEnum getEffect()
Get effect- Returns:
- effect
-
setEffect
public void setEffect(Statement.EffectEnum effect)
-
setResource
public void setResource(String resource)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Statement
-
fromJson
public static Statement fromJson(String jsonString) throws IOException
Create an instance of Statement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Statement
- Throws:
IOException- if the JSON string is invalid with respect to Statement
-
toJson
public String toJson()
Convert an instance of Statement to an JSON string- Returns:
- JSON string
-
-