Package co.permify.sdk.model
Class DataWriteBody
java.lang.Object
co.permify.sdk.model.DataWriteBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class DataWriteBody
extends Object
DataWriteRequest defines the structure of a request for writing data. It contains the necessary information such as tenant_id, metadata, tuples and attributes for the write operation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) addTuplesItem(Tuple tuplesItem) attributes(List<Attribute> attributes) booleanReturn true if this Data.WriteBody object is equal to o.attributes contains the list of attributes (entity-attribute-value triples) that need to be written.Get metadatatuples contains the list of tuples (entity-relation-entity triples) that need to be written.inthashCode()metadata(DataWriteRequestMetadata metadata) voidsetAttributes(List<Attribute> attributes) voidsetMetadata(DataWriteRequestMetadata metadata) voidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_TUPLES
- See Also:
-
JSON_PROPERTY_ATTRIBUTES
- See Also:
-
-
Constructor Details
-
DataWriteBody
public DataWriteBody()
-
-
Method Details
-
metadata
-
getMetadata
Get metadata- Returns:
- metadata
-
setMetadata
-
tuples
-
addTuplesItem
-
getTuples
tuples contains the list of tuples (entity-relation-entity triples) that need to be written.- Returns:
- tuples
-
setTuples
-
attributes
-
addAttributesItem
-
getAttributes
attributes contains the list of attributes (entity-attribute-value triples) that need to be written.- Returns:
- attributes
-
setAttributes
-
equals
Return true if this Data.WriteBody object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-