code: public Attachment updateWithUploadDetails(UploadContentResponse response) {
          this.id = response.getId();
          this.url = response.getUrl();
          this.size = response.getSize();
          this.type = response.getType();
          return this;
      }
docs: For internal use. Update attachment details with upload APIs response.
  
  @param response Upload content APIs response.
  @return Updated attachment.