Interface RetrieveAttributeLiveCommandAnswerBuilder.ResponseFactory
-
- All Superinterfaces:
LiveCommandResponseFactory
- Enclosing interface:
- RetrieveAttributeLiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface RetrieveAttributeLiveCommandAnswerBuilder.ResponseFactory extends LiveCommandResponseFactory
Factory forCommandResponse
s toRetrieveAttribute
command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.ditto.things.model.signals.commands.ThingErrorResponse
attributeNotAccessibleError()
Creates aThingErrorResponse
specifying that the requested attribute does not exist or the requesting user does not have enough permission to retrieve it.org.eclipse.ditto.things.model.signals.commands.query.RetrieveAttributeResponse
retrieved(org.eclipse.ditto.json.JsonValue attributeValue)
Creates aRetrieveAttributeResponse
containing the retrieved value for theRetrieveAttribute
command.-
Methods inherited from interface org.eclipse.ditto.client.live.commands.base.LiveCommandResponseFactory
errorResponse, errorResponse
-
-
-
-
Method Detail
-
retrieved
@Nonnull org.eclipse.ditto.things.model.signals.commands.query.RetrieveAttributeResponse retrieved(org.eclipse.ditto.json.JsonValue attributeValue)
Creates aRetrieveAttributeResponse
containing the retrieved value for theRetrieveAttribute
command.- Parameters:
attributeValue
- the value of the requested attribute.- Returns:
- the response.
- Throws:
java.lang.NullPointerException
- ifattributeValue
isnull
-
attributeNotAccessibleError
@Nonnull org.eclipse.ditto.things.model.signals.commands.ThingErrorResponse attributeNotAccessibleError()
Creates aThingErrorResponse
specifying that the requested attribute does not exist or the requesting user does not have enough permission to retrieve it.- Returns:
- the response.
-
-