public static final class AppElementsUploadBlobSubelementRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
AppElementsUploadBlobSubelementResponse |
call(OnshapeDocument document,
String bid) |
Calls uploadBlobSubelement method, Create a blob subelement in an app element from an uploaded file.
|
AppElementsUploadBlobSubelementResponse |
call(String bid,
String did,
String wid,
String eid) |
Calls uploadBlobSubelement method, Create a blob subelement in an app element from an uploaded file.
|
String |
description() |
Get Description of the change being made, for history tracking
|
AppElementsUploadBlobSubelementRequest.Builder |
description(String value) |
Set Description of the change being made, for history tracking
|
String |
encodedFilename() |
Get Filename override interpreted as a URL-encoded string.
|
AppElementsUploadBlobSubelementRequest.Builder |
encodedFilename(String value) |
Set Filename override interpreted as a URL-encoded string.
|
Blob |
file() |
Get File data to upload.
|
AppElementsUploadBlobSubelementRequest.Builder |
file(Blob value) |
Set File data to upload.
|
Number |
fileContentLength() |
Get The length of the file being uploaded, in bytes.
|
AppElementsUploadBlobSubelementRequest.Builder |
fileContentLength(Number value) |
Set The length of the file being uploaded, in bytes.
|
String |
parentChangeId() |
Get Id of the last change made by this application to this element
|
AppElementsUploadBlobSubelementRequest.Builder |
parentChangeId(String value) |
Set Id of the last change made by this application to this element
|
String |
transactionId() |
Get Id of transaction in which the update should be performed
|
AppElementsUploadBlobSubelementRequest.Builder |
transactionId(String value) |
Set Id of transaction in which the update should be performed
|
public final String transactionId()
public final AppElementsUploadBlobSubelementRequest.Builder transactionId(String value)
value - Id of transaction in which the update should be performedpublic final String parentChangeId()
public final AppElementsUploadBlobSubelementRequest.Builder parentChangeId(String value)
value - Id of the last change made by this application to this elementpublic final String description()
public final AppElementsUploadBlobSubelementRequest.Builder description(String value)
value - Description of the change being made, for history trackingpublic final Blob file()
public final AppElementsUploadBlobSubelementRequest.Builder file(Blob value)
value - File data to upload. This field should normally have a Content-Disposition header field with a "filename" attribute, naming the uploaded file.public final String encodedFilename()
public final AppElementsUploadBlobSubelementRequest.Builder encodedFilename(String value)
value - Filename override interpreted as a URL-encoded string. If specified, this overrides the filename from a Content-Disposition in the file field.public final Number fileContentLength()
public final AppElementsUploadBlobSubelementRequest.Builder fileContentLength(Number value)
value - The length of the file being uploaded, in bytes. If not present, Onshape may restrict the upload size under some operating conditions, as the file contents may need to be buffered in memory. If specified, it should be the actual length of the data being uploaded.public final AppElementsUploadBlobSubelementResponse call(String bid, String did, String wid, String eid) throws OnshapeException
bid - Blob subelement IDdid - Document IDwid - Workspace IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final AppElementsUploadBlobSubelementResponse call(OnshapeDocument document, String bid) throws OnshapeException
document - Document object from Onshape URL.bid - Blob subelement IDOnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.