public static final class AnyWorkObjectDefinition.Builder extends Entity.EntityBuilder<AnyWorkObjectDefinition,AnyWorkObjectDefinition.Builder> implements HierarchicalEntity.HierarchicalEntityBuilder<AnyWorkObjectDefinition.Builder>
Builder for an AnyWorkObjectDefinition instance.
| Modifier and Type | Method and Description |
|---|---|
AnyWorkObjectDefinition.Builder |
externalVersion(int externalVersion)
Sets the external version.
|
AnyWorkObjectDefinition.Builder |
id(String id)
Sets the id.
|
AnyWorkObjectDefinition.Builder |
key(String key)
Sets the key.
|
AnyWorkObjectDefinition.Builder |
path(List<String> path)
Sets the path of the entity.
|
AnyWorkObjectDefinition.Builder |
properties(Collection<Property> properties)
Sets the properties.
|
AnyWorkObjectDefinition.Builder |
putProperties(Map<String,String> properties)
Adds the name/value pairs as properties to the current properties.
|
AnyWorkObjectDefinition.Builder |
putProperties(PropertyMap properties)
Adds the name/value pairs as properties to the current properties.
|
<V> AnyWorkObjectDefinition.Builder |
putProperty(PropertyName<V> name,
V value)
Adds the name/value pair as property to the current properties.
|
AnyWorkObjectDefinition.Builder |
putProperty(String name,
String value)
Adds the name/value pair as property to the current properties.
|
AnyWorkObjectDefinition.Builder |
resourceString(String resourceString)
Sets the resource string from which the entity has been derived.
|
AnyWorkObjectDefinition.Builder |
validFrom(Instant validFrom)
Sets the date from which on the entity is valid.
|
AnyWorkObjectDefinition.Builder |
validTo(Instant validTo)
Sets the date until which the entity is valid.
|
AnyWorkObjectDefinition.Builder |
version(int version)
Sets the version.
|
build, creationTime, externalId, globalId, modificationCreatorId, modificationUpdaterId, modificationVersion, name, providerId, tenantId, type, updateTimepublic AnyWorkObjectDefinition.Builder id(String id)
Entity.EntityBuilderSets the id.
id in class Entity.EntityBuilder<AnyWorkObjectDefinition,AnyWorkObjectDefinition.Builder>id - the idpublic AnyWorkObjectDefinition.Builder path(List<String> path)
HierarchicalEntity.HierarchicalEntityBuilderSets the path of the entity.
path in interface HierarchicalEntity.HierarchicalEntityBuilder<AnyWorkObjectDefinition.Builder>path - the path of the entitypublic AnyWorkObjectDefinition.Builder key(String key)
Sets the key.
key - the keypublic AnyWorkObjectDefinition.Builder properties(Collection<Property> properties)
Sets the properties.
properties - the propertiespublic AnyWorkObjectDefinition.Builder putProperty(String name, String value)
Adds the name/value pair as property to the current properties.
name - the name of the propertyvalue - the value of the propertypublic <V> AnyWorkObjectDefinition.Builder putProperty(PropertyName<V> name, V value)
Adds the name/value pair as property to the current properties.
V - the type of the propertyname - the name of the propertyvalue - the value of the propertypublic AnyWorkObjectDefinition.Builder putProperties(Map<String,String> properties)
Adds the name/value pairs as properties to the current properties.
properties - the name/value pairspublic AnyWorkObjectDefinition.Builder putProperties(PropertyMap properties)
Adds the name/value pairs as properties to the current properties.
properties - the name/value pairspublic AnyWorkObjectDefinition.Builder validFrom(Instant validFrom)
Sets the date from which on the entity is valid.
validFrom - the start date from which on the entity is validpublic AnyWorkObjectDefinition.Builder validTo(Instant validTo)
Sets the date until which the entity is valid.
validTo - the end date until which the entity is validpublic AnyWorkObjectDefinition.Builder version(int version)
Sets the version.
version - the versionpublic AnyWorkObjectDefinition.Builder externalVersion(int externalVersion)
Sets the external version.
externalVersion - the external versionpublic AnyWorkObjectDefinition.Builder resourceString(String resourceString)
Sets the resource string from which the entity has been derived.
resourceString - the resource stringCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.