Package org.eclipse.ditto.model.things
Interface FeatureBuilder.FromScratchBuildable
-
- Enclosing interface:
- FeatureBuilder
public static interface FeatureBuilder.FromScratchBuildable
This interface enables the creation of aFeature
object from scratch.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FeatureBuilder.FromScratchBuildable
definition(FeatureDefinition featureDefinition)
Sets the specified Definition to the Feature to be built.FeatureBuilder.FromScratchBuildable
properties(org.eclipse.ditto.json.JsonObject properties)
Sets the properties of the Feature.FeatureBuilder.FromScratchBuildable
properties(FeatureProperties properties)
Sets the properties of the Feature.FeatureBuilder.FeatureBuildable
withId(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.
-
withId
FeatureBuilder.FeatureBuildable withId(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:
NullPointerException
- iffeatureId
isnull
.IllegalArgumentException
- iffeatureId
is empty.
-
-