Interface LineItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LineItem.Builder,
,LineItem> SdkBuilder<LineItem.Builder,
,LineItem> SdkPojo
- Enclosing class:
LineItem
public static interface LineItem.Builder
extends SdkPojo, CopyableBuilder<LineItem.Builder,LineItem>
-
Method Summary
Modifier and TypeMethodDescriptionassetInformationList
(Collection<LineItemAssetInformation> assetInformationList) Information about assets.assetInformationList
(Consumer<LineItemAssetInformation.Builder>... assetInformationList) Information about assets.assetInformationList
(LineItemAssetInformation... assetInformationList) Information about assets.catalogItemId
(String catalogItemId) The ID of the catalog item.lineItemId
(String lineItemId) The ID of the line item.previousLineItemId
(String previousLineItemId) The ID of the previous line item.previousOrderId
(String previousOrderId) The ID of the previous order.The quantity of the line item.default LineItem.Builder
shipmentInformation
(Consumer<ShipmentInformation.Builder> shipmentInformation) Information about a line item shipment.shipmentInformation
(ShipmentInformation shipmentInformation) Information about a line item shipment.The status of the line item.status
(LineItemStatus status) The status of the line item.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
catalogItemId
The ID of the catalog item.
- Parameters:
catalogItemId
- The ID of the catalog item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lineItemId
The ID of the line item.
- Parameters:
lineItemId
- The ID of the line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quantity
The quantity of the line item.
- Parameters:
quantity
- The quantity of the line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the line item.
- Parameters:
status
- The status of the line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the line item.
- Parameters:
status
- The status of the line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
shipmentInformation
Information about a line item shipment.
- Parameters:
shipmentInformation
- Information about a line item shipment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shipmentInformation
default LineItem.Builder shipmentInformation(Consumer<ShipmentInformation.Builder> shipmentInformation) Information about a line item shipment.
This is a convenience method that creates an instance of theShipmentInformation.Builder
avoiding the need to create one manually viaShipmentInformation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toshipmentInformation(ShipmentInformation)
.- Parameters:
shipmentInformation
- a consumer that will call methods onShipmentInformation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
assetInformationList
Information about assets.
- Parameters:
assetInformationList
- Information about assets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetInformationList
Information about assets.
- Parameters:
assetInformationList
- Information about assets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetInformationList
LineItem.Builder assetInformationList(Consumer<LineItemAssetInformation.Builder>... assetInformationList) Information about assets.
This is a convenience method that creates an instance of theLineItemAssetInformation.Builder
avoiding the need to create one manually viaLineItemAssetInformation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassetInformationList(List<LineItemAssetInformation>)
.- Parameters:
assetInformationList
- a consumer that will call methods onLineItemAssetInformation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
previousLineItemId
The ID of the previous line item.
- Parameters:
previousLineItemId
- The ID of the previous line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
previousOrderId
The ID of the previous order.
- Parameters:
previousOrderId
- The ID of the previous order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-