Class EntityPropertiesBuilder
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.analyticsmodeling.fvt.EntityPropertiesBuilder
-
public class EntityPropertiesBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description EntityPropertiesBuilder(String context, String method, InstanceProperties properties)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstancePropertiesbuild()Returns the instance properties objectEntityPropertiesBuilderwithBooleanProperty(String key, Boolean value)Returns the same builderEntityPropertiesBuilderwithIntegerProperty(String key, Integer value)Returns the same builderEntityPropertiesBuilderwithStringProperty(String key, String value)Returns the same builder
-
-
-
Constructor Detail
-
EntityPropertiesBuilder
public EntityPropertiesBuilder(String context, String method, InstanceProperties properties)
Default constructor.- Parameters:
context- the builder is called from.method- the builder is called from.properties- to build.
-
-
Method Detail
-
withStringProperty
public EntityPropertiesBuilder withStringProperty(String key, String value)
Returns the same builder- Parameters:
key- - name of the propertyvalue- - value of the property- Returns:
- the builder to use to return
-
withBooleanProperty
public EntityPropertiesBuilder withBooleanProperty(String key, Boolean value)
Returns the same builder- Parameters:
key- - name of the propertyvalue- - value of the property- Returns:
- the builder to use to return
-
withIntegerProperty
public EntityPropertiesBuilder withIntegerProperty(String key, Integer value)
Returns the same builder- Parameters:
key- - name of the propertyvalue- - value of the property- Returns:
- the builder to use to return
-
build
public InstanceProperties build()
Returns the instance properties object- Returns:
- properties
-
-