public static final class AssembliesGetBillOfMaterialsRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
String |
bomColumnIds() |
Get Ids of the columns to include, or empty if all.
|
AssembliesGetBillOfMaterialsRequest.Builder |
bomColumnIds(String value) |
Set Ids of the columns to include, or empty if all.
|
AssembliesGetBillOfMaterialsResponse |
call(OnshapeDocument document) |
Calls getBillOfMaterials method, Get content of the bill of materials in json format matching the Onshape BOM Standard for the
specified assembly
|
AssembliesGetBillOfMaterialsResponse |
call(String did,
WVM wvmType,
String wvm,
String eid) |
Calls getBillOfMaterials method, Get content of the bill of materials in json format matching the Onshape BOM Standard for the
specified assembly
|
Boolean |
generateIfAbsent() |
Get If this is false and the BOM does not exist for the Assembly a 404 status code will be returned.
|
AssembliesGetBillOfMaterialsRequest.Builder |
generateIfAbsent(Boolean value) |
Set If this is false and the BOM does not exist for the Assembly a 404 status code will be returned.
|
Boolean |
indented() |
Get If true will return an indented bom, otherwise a parts list will be returned
|
AssembliesGetBillOfMaterialsRequest.Builder |
indented(Boolean value) |
Set If true will return an indented bom, otherwise a parts list will be returned
|
String |
metadataWorkspaceId() |
Get if m is specified for [wvm] this workspaceId is required and is used to retrieve metadata, otherwise it is ignored.
|
AssembliesGetBillOfMaterialsRequest.Builder |
metadataWorkspaceId(String value) |
Set if m is specified for [wvm] this workspaceId is required and is used to retrieve metadata, otherwise it is ignored.
|
Boolean |
multiLevel() |
Get Will return a multilevel bom if true, otherwise returns a top level bom.
|
AssembliesGetBillOfMaterialsRequest.Builder |
multiLevel(Boolean value) |
Set Will return a multilevel bom if true, otherwise returns a top level bom.
|
public final String metadataWorkspaceId()
public final AssembliesGetBillOfMaterialsRequest.Builder metadataWorkspaceId(String value)
value - if m is specified for [wvm] this workspaceId is required and is used to retrieve metadata, otherwise it is ignored.public final String bomColumnIds()
public final AssembliesGetBillOfMaterialsRequest.Builder bomColumnIds(String value)
value - Ids of the columns to include, or empty if all. BOM column ids correspond to the ids of metadata properties retrieved from BTRestMetadataSchema, with the exception of billOfMaterialsItemNo and billOfMaterialsQuantity which identify the Item Number and Quantity columns respectivelypublic final Boolean indented()
public final AssembliesGetBillOfMaterialsRequest.Builder indented(Boolean value)
value - If true will return an indented bom, otherwise a parts list will be returnedpublic final Boolean multiLevel()
public final AssembliesGetBillOfMaterialsRequest.Builder multiLevel(Boolean value)
value - Will return a multilevel bom if true, otherwise returns a top level bom. Ignored if indented is false.public final Boolean generateIfAbsent()
public final AssembliesGetBillOfMaterialsRequest.Builder generateIfAbsent(Boolean value)
value - If this is false and the BOM does not exist for the Assembly a 404 status code will be returned. Otherwise, the contents will be generated and returned, without creating the BOM element.public final AssembliesGetBillOfMaterialsResponse call(String did, WVM wvmType, String wvm, String eid) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final AssembliesGetBillOfMaterialsResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.