Interface RetrieveFeaturesLiveCommandAnswerBuilder.ResponseFactory
-
- All Superinterfaces:
LiveCommandResponseFactory
- Enclosing interface:
- RetrieveFeaturesLiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface RetrieveFeaturesLiveCommandAnswerBuilder.ResponseFactory extends LiveCommandResponseFactory
Factory forCommandResponses toRetrieveFeaturescommand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.ditto.signals.commands.things.ThingErrorResponsefeaturesNotAccessibleError()Creates an error response specifying that no Features exist or the requesting user does not have enough permission to retrieve them.org.eclipse.ditto.signals.commands.things.query.RetrieveFeaturesResponseretrieved(org.eclipse.ditto.model.things.Features features)Creates a success response containing the retrieved value for theRetrieveFeaturescommand.-
Methods inherited from interface org.eclipse.ditto.signals.commands.live.base.LiveCommandResponseFactory
errorResponse, errorResponse, errorResponse
-
-
-
-
Method Detail
-
retrieved
@Nonnull org.eclipse.ditto.signals.commands.things.query.RetrieveFeaturesResponse retrieved(org.eclipse.ditto.model.things.Features features)
Creates a success response containing the retrieved value for theRetrieveFeaturescommand.- Parameters:
features- the value of the requested Features.- Returns:
- the response.
- Throws:
NullPointerException- iffeaturesisnull.
-
featuresNotAccessibleError
@Nonnull org.eclipse.ditto.signals.commands.things.ThingErrorResponse featuresNotAccessibleError()
Creates an error response specifying that no Features exist or the requesting user does not have enough permission to retrieve them.- Returns:
- the response.
-
-