public static final class DocumentsCreateVersionRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
DocumentsCreateVersionResponse |
call(OnshapeDocument document) |
Calls createVersion method, Create version at the current microversion of the specified workspace or a target microversion.
|
DocumentsCreateVersionResponse |
call(String did) |
Calls createVersion method, Create version at the current microversion of the specified workspace or a target microversion.
|
String |
description() |
Get Version description
|
DocumentsCreateVersionRequest.Builder |
description(String value) |
Set Version description
|
String |
documentId() |
Get Document ID (must match path parameter)
|
DocumentsCreateVersionRequest.Builder |
documentId(String value) |
Set Document ID (must match path parameter)
|
Boolean |
fromHistory() |
Get Specifies whether to create a version at a specific microversion (specified by microversionId)
|
DocumentsCreateVersionRequest.Builder |
fromHistory(Boolean value) |
Set Specifies whether to create a version at a specific microversion (specified by microversionId)
|
String |
microversionId() |
Get Microversion ID at which to create the version if fromHistory is true
|
DocumentsCreateVersionRequest.Builder |
microversionId(String value) |
Set Microversion ID at which to create the version if fromHistory is true
|
String |
name() |
Get Version name
|
DocumentsCreateVersionRequest.Builder |
name(String value) |
Set Version name
|
String |
workspaceId() |
Get Workspace ID of a workspace where the version will be created if fromHistory is false.
|
DocumentsCreateVersionRequest.Builder |
workspaceId(String value) |
Set Workspace ID of a workspace where the version will be created if fromHistory is false.
|
public final String documentId()
public final DocumentsCreateVersionRequest.Builder documentId(String value)
value - Document ID (must match path parameter)public final String workspaceId()
public final DocumentsCreateVersionRequest.Builder workspaceId(String value)
value - Workspace ID of a workspace where the version will be created if fromHistory is false. If fromHistory is false and workspaceId is not set, the default workspace is used.public final String name()
public final DocumentsCreateVersionRequest.Builder name(String value)
value - Version namepublic final String description()
public final DocumentsCreateVersionRequest.Builder description(String value)
value - Version descriptionpublic final String microversionId()
public final DocumentsCreateVersionRequest.Builder microversionId(String value)
value - Microversion ID at which to create the version if fromHistory is truepublic final Boolean fromHistory()
public final DocumentsCreateVersionRequest.Builder fromHistory(Boolean value)
value - Specifies whether to create a version at a specific microversion (specified by microversionId)public final DocumentsCreateVersionResponse call(String did) throws OnshapeException
did - Document IDOnshapeException - On HTTP or serialization errorpublic final DocumentsCreateVersionResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.