Interface TypeAddFieldDefinitionAction

All Superinterfaces:
ResourceUpdateAction<TypeUpdateAction>, TypeUpdateAction
All Known Implementing Classes:
TypeAddFieldDefinitionActionImpl

Defines a new field for a Type. Adding new required fields to a Type that is already referenced by existing entities can put those entities in a temporarily inconsistent state.

If a Type that is already in use requires new fields, we recommend making them optional (required set to false) whenever possible. Alternatively, any new required fields should be added one at a time followed by an update to all the resources using the Type. This prevents validation errors caused by an entity missing more than one required custom field.


Example to create an instance using the builder pattern

     TypeAddFieldDefinitionAction typeAddFieldDefinitionAction = TypeAddFieldDefinitionAction.builder()
             .fieldDefinition(fieldDefinitionBuilder -> fieldDefinitionBuilder)
             .build()