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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LineItem.BuilderassetInformationList(Collection<LineItemAssetInformation> assetInformationList)Information about assets.LineItem.BuilderassetInformationList(Consumer<LineItemAssetInformation.Builder>... assetInformationList)Information about assets.LineItem.BuilderassetInformationList(LineItemAssetInformation... assetInformationList)Information about assets.LineItem.BuildercatalogItemId(String catalogItemId)The ID of the catalog item.LineItem.BuilderlineItemId(String lineItemId)The ID of the line item.LineItem.BuilderpreviousLineItemId(String previousLineItemId)The ID of the previous line item.LineItem.BuilderpreviousOrderId(String previousOrderId)The ID of the previous order.LineItem.Builderquantity(Integer quantity)The quantity of the line item.default LineItem.BuildershipmentInformation(Consumer<ShipmentInformation.Builder> shipmentInformation)Information about a line item shipment.LineItem.BuildershipmentInformation(ShipmentInformation shipmentInformation)Information about a line item shipment.LineItem.Builderstatus(String status)The status of the line item.LineItem.Builderstatus(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 Detail
-
catalogItemId
LineItem.Builder catalogItemId(String 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
LineItem.Builder lineItemId(String 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
LineItem.Builder quantity(Integer 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
LineItem.Builder status(String 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:
LineItemStatus,LineItemStatus
-
status
LineItem.Builder status(LineItemStatus 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:
LineItemStatus,LineItemStatus
-
shipmentInformation
LineItem.Builder shipmentInformation(ShipmentInformation 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.Builderavoiding the need to create one manually viaShipmentInformation.builder().When the
Consumercompletes,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:
shipmentInformation(ShipmentInformation)
-
assetInformationList
LineItem.Builder assetInformationList(Collection<LineItemAssetInformation> 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(LineItemAssetInformation... 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.Builderavoiding the need to create one manually viaLineItemAssetInformation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#assetInformationList(List.) - 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:
#assetInformationList(java.util.Collection)
-
previousLineItemId
LineItem.Builder previousLineItemId(String 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
LineItem.Builder previousOrderId(String 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.
-
-