Package org.eclipse.ditto.things.model
Interface FeatureBuilder.FromScratchBuildable
-
- Enclosing interface:
- FeatureBuilder
public static interface FeatureBuilder.FromScratchBuildableThis interface enables the creation of aFeatureobject from scratch.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FeatureBuilder.FromScratchBuildabledefinition(FeatureDefinition featureDefinition)Sets the specified Definition to the Feature to be built.FeatureBuilder.FromScratchBuildabledesiredProperties(org.eclipse.ditto.json.JsonObject desiredProperties)Sets the desired properties of the Feature.FeatureBuilder.FromScratchBuildabledesiredProperties(FeatureProperties desiredProperties)Sets the desired properties of the Feature.FeatureBuilder.FromScratchBuildableproperties(org.eclipse.ditto.json.JsonObject properties)Sets the properties of the Feature.FeatureBuilder.FromScratchBuildableproperties(FeatureProperties properties)Sets the properties of the Feature.FeatureBuilder.FeatureBuildablewithId(java.lang.String featureId)Sets the provided ID instead of the one which was possibly contained in the Feature's JSON.
-
-
-
Method Detail
-
definition
FeatureBuilder.FromScratchBuildable definition(@Nullable FeatureDefinition featureDefinition)
Sets the specified Definition to the Feature to be built.- Parameters:
featureDefinition- the Definition to be set ornull.- Returns:
- this builder to allow method chaining.
-
properties
FeatureBuilder.FromScratchBuildable properties(@Nullable FeatureProperties properties)
Sets the properties of the Feature.- Parameters:
properties- the properties of the Feature to be created ornull- Returns:
- this builder to allow method chaining.
-
properties
FeatureBuilder.FromScratchBuildable properties(@Nullable org.eclipse.ditto.json.JsonObject properties)
Sets the properties of the Feature.- Parameters:
properties- the properties of the Feature to be created ornull.- Returns:
- this builder to allow method chaining.
-
desiredProperties
FeatureBuilder.FromScratchBuildable desiredProperties(@Nullable FeatureProperties desiredProperties)
Sets the desired properties of the Feature.- Parameters:
desiredProperties- the desired properties of the Feature to be created ornull- Returns:
- this builder to allow method chaining.
- Since:
- 1.5.0
-
desiredProperties
FeatureBuilder.FromScratchBuildable desiredProperties(@Nullable org.eclipse.ditto.json.JsonObject desiredProperties)
Sets the desired properties of the Feature.- Parameters:
desiredProperties- the desired properties of the Feature to be created ornull.- Returns:
- this builder to allow method chaining.
- Since:
- 1.5.0
-
withId
FeatureBuilder.FeatureBuildable withId(java.lang.String featureId)
Sets the provided ID instead of the one which was possibly contained in the Feature's JSON.- Parameters:
featureId- the ID to use in the Feature to be created.- Returns:
- this builder to allow method chaining.
- Throws:
java.lang.NullPointerException- iffeatureIdisnull.java.lang.IllegalArgumentException- iffeatureIdis empty.
-
-