ModifyAttributeResponse extends AbstractCommandResponse<ModifyAttributeResponse> implements
        ThingModifyCommandResponse<ModifyAttributeResponse> { @Deprecated public static ModifyAttributeResponse modified(final String thingId, final JsonPointer attributePointer, final DittoHeaders dittoHeaders) { return modified(ThingId.of(thingId), attributePointer, dittoHeaders); } private  ModifyAttributeResponse(final ThingId thingId, final HttpStatusCode statusCode,
            final JsonPointer attributePointer, @Nullable final JsonValue attributeValue,
            final DittoHeaders dittoHeaders); @Deprecated static ModifyAttributeResponse created(final String thingId, final JsonPointer attributePointer,
            final JsonValue attributeValue, final DittoHeaders dittoHeaders); static ModifyAttributeResponse created(final ThingId thingId, final JsonPointer attributePointer,
            final JsonValue attributeValue, final DittoHeaders dittoHeaders); @Deprecated static ModifyAttributeResponse modified(final String thingId, final JsonPointer attributePointer,
            final DittoHeaders dittoHeaders); static ModifyAttributeResponse modified(final ThingId thingId, final JsonPointer attributePointer,
            final DittoHeaders dittoHeaders); static ModifyAttributeResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders); static ModifyAttributeResponse fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); @Override ThingId getThingEntityId(); JsonPointer getAttributePointer(); Optional<JsonValue> getAttributeValue(); @Override Optional<JsonValue> getEntity(final JsonSchemaVersion schemaVersion); @Override JsonPointer getResourcePath(); @Override ModifyAttributeResponse setDittoHeaders(final DittoHeaders dittoHeaders); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString(); static final String TYPE; }
@Test(expected = JsonKeyInvalidException.class) public void tryToCreateInstanceWithValidArguments() { ModifyAttributeResponse.modified(TestConstants.Thing.THING_ID, INVALID_JSON_POINTER, TestConstants.EMPTY_DITTO_HEADERS); }
@Test(expected = AttributePointerInvalidException.class) public void createInstanceWithEmptyPointer() { ModifyAttributeResponse.modified(TestConstants.Thing.THING_ID, EMPTY_JSON_POINTER, TestConstants.EMPTY_DITTO_HEADERS); }