Class ItemQuantity
- java.lang.Object
-
- software.amazon.spapi.models.vendor.shipments.v1.ItemQuantity
-
public class ItemQuantity extends java.lang.Object
Details of item quantity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ItemQuantity.UnitOfMeasureEnum
Unit of measure for the shipped quantity.
-
Constructor Summary
Constructors Constructor Description ItemQuantity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemQuantity
amount(java.lang.Integer amount)
boolean
equals(java.lang.Object o)
java.lang.Integer
getAmount()
Amount of units shipped for a specific item at a shipment level.TotalWeight
getTotalWeight()
Get totalWeightItemQuantity.UnitOfMeasureEnum
getUnitOfMeasure()
Unit of measure for the shipped quantity.java.lang.Integer
getUnitSize()
The case size, in the event that we ordered using cases.int
hashCode()
void
setAmount(java.lang.Integer amount)
void
setTotalWeight(TotalWeight totalWeight)
void
setUnitOfMeasure(ItemQuantity.UnitOfMeasureEnum unitOfMeasure)
void
setUnitSize(java.lang.Integer unitSize)
java.lang.String
toString()
ItemQuantity
totalWeight(TotalWeight totalWeight)
ItemQuantity
unitOfMeasure(ItemQuantity.UnitOfMeasureEnum unitOfMeasure)
ItemQuantity
unitSize(java.lang.Integer unitSize)
-
-
-
Method Detail
-
amount
public ItemQuantity amount(java.lang.Integer amount)
-
getAmount
public java.lang.Integer getAmount()
Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level.- Returns:
- amount
-
setAmount
public void setAmount(java.lang.Integer amount)
-
unitOfMeasure
public ItemQuantity unitOfMeasure(ItemQuantity.UnitOfMeasureEnum unitOfMeasure)
-
getUnitOfMeasure
public ItemQuantity.UnitOfMeasureEnum getUnitOfMeasure()
Unit of measure for the shipped quantity.- Returns:
- unitOfMeasure
-
setUnitOfMeasure
public void setUnitOfMeasure(ItemQuantity.UnitOfMeasureEnum unitOfMeasure)
-
unitSize
public ItemQuantity unitSize(java.lang.Integer unitSize)
-
getUnitSize
public java.lang.Integer getUnitSize()
The case size, in the event that we ordered using cases. Otherwise, 1.- Returns:
- unitSize
-
setUnitSize
public void setUnitSize(java.lang.Integer unitSize)
-
totalWeight
public ItemQuantity totalWeight(TotalWeight totalWeight)
-
getTotalWeight
public TotalWeight getTotalWeight()
Get totalWeight- Returns:
- totalWeight
-
setTotalWeight
public void setTotalWeight(TotalWeight totalWeight)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-