Class EntityRequest.Builder
- All Implemented Interfaces:
EntityRequest._FinalStage,EntityRequest.ExternalIdStage
- Enclosing class:
EntityRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()externalId(@NotNull String externalId) Your own unique identifier for this entity, unique within its namespace.from(EntityRequest other) Human-readable name for the entity.Human-readable name for the entity.Free-form key-value attributes to store with the entity.Free-form key-value attributes to store with the entity.Optional ID of a record schema (created viaPOST /v1/schemas) that governs payload validation and lookup indexing for this entity, and must belong to your account.Optional ID of a record schema (created viaPOST /v1/schemas) that governs payload validation and lookup indexing for this entity, and must belong to your account.The entity's parent ownership edges, each as<namespace>:<value>(for exampleorg:6ba7b810-...).The entity's parent ownership edges, each as<namespace>:<value>(for exampleorg:6ba7b810-...).status(EntityRequestStatus status) Lifecycle status of the entity.status(Optional<EntityRequestStatus> status) Lifecycle status of the entity.
-
Method Details
-
from
- Specified by:
fromin interfaceEntityRequest.ExternalIdStage
-
externalId
Your own unique identifier for this entity, unique within its namespace. Used for idempotent create: if an entity with this
externalIdalready exists in the namespace, it is returned instead of creating a duplicate.Your own unique identifier for this entity, unique within its namespace. Used for idempotent create: if an entity with this
externalIdalready exists in the namespace, it is returned instead of creating a duplicate.- Specified by:
externalIdin interfaceEntityRequest.ExternalIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
scopes
The entity's parent ownership edges, each as
<namespace>:<value>(for exampleorg:6ba7b810-...). At most two parents, each in a DIFFERENT namespace from the entity's own. A<value>is 1-128 characters: a letter or digit first, then letters, digits,_or-. On update, providingscopesREPLACES the full set of parents; omit it to leave ownership unchanged. The entity's own reference (<its namespace>:<its id>) is accepted and ignored, so you can send back thescopesyou read from a GET unchanged; any OTHER value in its own namespace is rejected, because a parent edge always crosses namespaces — a value in this entity's own namespace names a peer, not a parent.- Specified by:
scopesin interfaceEntityRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
scopes
The entity's parent ownership edges, each as
<namespace>:<value>(for exampleorg:6ba7b810-...). At most two parents, each in a DIFFERENT namespace from the entity's own. A<value>is 1-128 characters: a letter or digit first, then letters, digits,_or-. On update, providingscopesREPLACES the full set of parents; omit it to leave ownership unchanged. The entity's own reference (<its namespace>:<its id>) is accepted and ignored, so you can send back thescopesyou read from a GET unchanged; any OTHER value in its own namespace is rejected, because a parent edge always crosses namespaces — a value in this entity's own namespace names a peer, not a parent.- Specified by:
scopesin interfaceEntityRequest._FinalStage
-
schemaId
Optional ID of a record schema (created via
POST /v1/schemas) that governs payload validation and lookup indexing for this entity, and must belong to your account.- Specified by:
schemaIdin interfaceEntityRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
schemaId
Optional ID of a record schema (created via
POST /v1/schemas) that governs payload validation and lookup indexing for this entity, and must belong to your account.- Specified by:
schemaIdin interfaceEntityRequest._FinalStage
-
payload
Free-form key-value attributes to store with the entity. On update, the supplied object replaces the stored payload in full (it is not key-merged); omit it to leave the stored payload unchanged.
- Specified by:
payloadin interfaceEntityRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
payload
Free-form key-value attributes to store with the entity. On update, the supplied object replaces the stored payload in full (it is not key-merged); omit it to leave the stored payload unchanged.
- Specified by:
payloadin interfaceEntityRequest._FinalStage
-
status
Lifecycle status of the entity.
ACTIVEentities can be used normally;SUSPENDEDentities are retained but blocked from new operations.- Specified by:
statusin interfaceEntityRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
Lifecycle status of the entity.
ACTIVEentities can be used normally;SUSPENDEDentities are retained but blocked from new operations.- Specified by:
statusin interfaceEntityRequest._FinalStage
-
name
Human-readable name for the entity.
- Specified by:
namein interfaceEntityRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
Human-readable name for the entity.
- Specified by:
namein interfaceEntityRequest._FinalStage
-
build
- Specified by:
buildin interfaceEntityRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceEntityRequest._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceEntityRequest._FinalStage
-