Interface RetrieveFeatureDefinitionLiveCommandAnswerBuilder.ResponseFactory
-
- All Superinterfaces:
LiveCommandResponseFactory
- Enclosing interface:
- RetrieveFeatureDefinitionLiveCommandAnswerBuilder
@AllValuesAreNonnullByDefault public static interface RetrieveFeatureDefinitionLiveCommandAnswerBuilder.ResponseFactory extends LiveCommandResponseFactory
Factory forCommandResponse
s toRetrieveFeatureDefinition
command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.ditto.things.model.signals.commands.ThingErrorResponse
featureDefinitionNotAccessibleError()
Creates aThingErrorResponse
specifying that no Feature Definition exist or the requesting user does not have enough permission to retrieve it.org.eclipse.ditto.things.model.signals.commands.query.RetrieveFeatureDefinitionResponse
retrieved(org.eclipse.ditto.things.model.FeatureDefinition featureDefinition)
Creates aRetrieveFeatureDefinitionResponse
containing the retrieved value for theRetrieveFeatureDefinition
command.-
Methods inherited from interface org.eclipse.ditto.client.live.commands.base.LiveCommandResponseFactory
errorResponse, errorResponse
-
-
-
-
Method Detail
-
retrieved
org.eclipse.ditto.things.model.signals.commands.query.RetrieveFeatureDefinitionResponse retrieved(org.eclipse.ditto.things.model.FeatureDefinition featureDefinition)
Creates aRetrieveFeatureDefinitionResponse
containing the retrieved value for theRetrieveFeatureDefinition
command.- Parameters:
featureDefinition
- the value of the requested Feature Definition- Returns:
- a response containing the requested value
- Throws:
java.lang.NullPointerException
- iffeatureDefinition
isnull
-
featureDefinitionNotAccessibleError
org.eclipse.ditto.things.model.signals.commands.ThingErrorResponse featureDefinitionNotAccessibleError()
Creates aThingErrorResponse
specifying that no Feature Definition exist or the requesting user does not have enough permission to retrieve it.- Returns:
- the error response
-
-