Package io.lakefs.clients.sdk.model
Class Statement
- java.lang.Object
-
- io.lakefs.clients.sdk.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 actionMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.Statement.EffectEnumgetEffect()Get effectStringgetResource()Get resourceinthashCode()StatementputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.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 voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element 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)
-
putAdditionalProperty
public Statement putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the Statement instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element 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
-
-