Interface RetrieveThingLiveCommandAnswerBuilder.ResponseFactory
-
- All Superinterfaces:
LiveCommandResponseFactory
- Enclosing interface:
- RetrieveThingLiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface RetrieveThingLiveCommandAnswerBuilder.ResponseFactory extends LiveCommandResponseFactory
Factory forCommandResponses toRetrieveThingcommand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.ditto.signals.commands.things.query.RetrieveThingResponseretrieved(org.eclipse.ditto.model.things.Thing thing)Creates a success response containing the retrieved value for theRetrieveThingcommand.org.eclipse.ditto.signals.commands.things.ThingErrorResponsethingNotAccessibleError()Creates an error response specifying that the requested Thing does not exist or the requesting user does not have enough permission to retrieve it.-
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.RetrieveThingResponse retrieved(org.eclipse.ditto.model.things.Thing thing)
Creates a success response containing the retrieved value for theRetrieveThingcommand.- Parameters:
thing- the value of the requested Thing.- Returns:
- the response.
- Throws:
NullPointerException- ifthingisnull.
-
thingNotAccessibleError
@Nonnull org.eclipse.ditto.signals.commands.things.ThingErrorResponse thingNotAccessibleError()
Creates an error response specifying that the requested Thing does not exist or the requesting user does not have enough permission to retrieve it.- Returns:
- the response.
-
-