Interface RetrieveAttributeLiveCommandAnswerBuilder.ResponseFactory
-
- All Superinterfaces:
LiveCommandResponseFactory
- Enclosing interface:
- RetrieveAttributeLiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface RetrieveAttributeLiveCommandAnswerBuilder.ResponseFactory extends LiveCommandResponseFactory
Factory forCommandResponses toRetrieveAttributecommand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.ditto.signals.commands.things.ThingErrorResponseattributeNotAccessibleError()Creates aThingErrorResponsespecifying that the requested attribute does not exist or the requesting user does not have enough permission to retrieve it.org.eclipse.ditto.signals.commands.things.query.RetrieveAttributeResponseretrieved(org.eclipse.ditto.json.JsonValue attributeValue)Creates aRetrieveAttributeResponsecontaining the retrieved value for theRetrieveAttributecommand.-
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.RetrieveAttributeResponse retrieved(org.eclipse.ditto.json.JsonValue attributeValue)
Creates aRetrieveAttributeResponsecontaining the retrieved value for theRetrieveAttributecommand.- Parameters:
attributeValue- the value of the requested attribute.- Returns:
- the response.
- Throws:
NullPointerException- ifattributeValueisnull
-
attributeNotAccessibleError
@Nonnull org.eclipse.ditto.signals.commands.things.ThingErrorResponse attributeNotAccessibleError()
Creates aThingErrorResponsespecifying that the requested attribute does not exist or the requesting user does not have enough permission to retrieve it.- Returns:
- the response.
-
-