Interface RetrieveAttributesLiveCommandAnswerBuilder.ResponseFactory
-
- All Superinterfaces:
LiveCommandResponseFactory
- Enclosing interface:
- RetrieveAttributesLiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface RetrieveAttributesLiveCommandAnswerBuilder.ResponseFactory extends LiveCommandResponseFactory
Factory forCommandResponses toRetrieveAttributescommand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.ditto.signals.commands.things.ThingErrorResponseattributesNotAccessibleError()Creates aThingErrorResponsespecifying that no attribute exists or the requesting user does not have enough permission to retrieve it.org.eclipse.ditto.signals.commands.things.query.RetrieveAttributesResponseretrieved(org.eclipse.ditto.model.things.Attributes attributes)Creates aRetrieveAttributesResponsecontaining the retrieved value for theRetrieveAttributescommand.-
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.RetrieveAttributesResponse retrieved(org.eclipse.ditto.model.things.Attributes attributes)
Creates aRetrieveAttributesResponsecontaining the retrieved value for theRetrieveAttributescommand.- Parameters:
attributes- the value of the attributes.- Returns:
- the response.
- Throws:
NullPointerException- ifattributesisnull.
-
attributesNotAccessibleError
@Nonnull org.eclipse.ditto.signals.commands.things.ThingErrorResponse attributesNotAccessibleError()
Creates aThingErrorResponsespecifying that no attribute exists or the requesting user does not have enough permission to retrieve it.- Returns:
- the response.
-
-