### Elasticsearch Version

main + all released versions back to 7.9

### Installed Plugins

_No response_

### Java Version

_bundled_

### OS Version

n/a

### Problem Description

It was observed that some transforms behaved badly after the update of **another** (unrelated) transform.

### Steps to Reproduce

1. Update the settings of one transform
2. Observe how these settings get effective for **another** transform

### Logs (if relevant)

_No response_
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/action/UpdateTransformAction.java
return config;
        }
        @Override
        public void writeTo(StreamOutput out) throws IOException {
            super.writeTo(out);
            config.writeTo(out);
        }
        @Override
        public int hashCode() {
            return Objects.hash(super.hashCode(), config);
        }
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj == null || getClass() != obj.getClass()) {
                return false;
            }
            Response other = (Response) obj;
            return Objects.equals(config, other.config) && super.equals(obj);
        }
        @Override
        public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
            super.toXContentCommon(builder, params);
            return config.toXContent(builder, params);
        }
    }
}