Class CreateRecordRequest.Builder
- All Implemented Interfaces:
CreateRecordRequest._FinalStage,CreateRecordRequest.BodyStage
- Enclosing class:
CreateRecordRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) body(@NotNull RecordRequest body) build()from(CreateRecordRequest other) Whentrue, if a record with the sameexternalIdalready exists its content is overwritten (the submittedpayloadand mutable fields are applied and the version is bumped) instead of being returned unchanged; the immutableexternalId,schemaId/typeName, and ownership are never changed.Whentrue, if a record with the sameexternalIdalready exists its content is overwritten (the submittedpayloadand mutable fields are applied and the version is bumped) instead of being returned unchanged; the immutableexternalId,schemaId/typeName, and ownership are never changed.
-
Method Details
-
from
- Specified by:
fromin interfaceCreateRecordRequest.BodyStage
-
body
- Specified by:
bodyin interfaceCreateRecordRequest.BodyStage
-
upsert
When
true, if a record with the sameexternalIdalready exists its content is overwritten (the submittedpayloadand mutable fields are applied and the version is bumped) instead of being returned unchanged; the immutableexternalId,schemaId/typeName, and ownership are never changed. A re-applied upsert whose content matches is a no-op (no version bump). Defaults tofalse. Requires therecords:u:<type>scope in addition torecords:c:<type>.- Specified by:
upsertin interfaceCreateRecordRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
upsert
When
true, if a record with the sameexternalIdalready exists its content is overwritten (the submittedpayloadand mutable fields are applied and the version is bumped) instead of being returned unchanged; the immutableexternalId,schemaId/typeName, and ownership are never changed. A re-applied upsert whose content matches is a no-op (no version bump). Defaults tofalse. Requires therecords:u:<type>scope in addition torecords:c:<type>.- Specified by:
upsertin interfaceCreateRecordRequest._FinalStage
-
build
- Specified by:
buildin interfaceCreateRecordRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceCreateRecordRequest._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceCreateRecordRequest._FinalStage
-