Class PackedQuantity
- java.lang.Object
-
- software.amazon.spapi.models.vendor.shipments.v1.PackedQuantity
-
public class PackedQuantity extends java.lang.Object
Details of item quantity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PackedQuantity.UnitOfMeasureEnum
Unit of measure for the shipped quantity.
-
Constructor Summary
Constructors Constructor Description PackedQuantity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PackedQuantity
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.PackedQuantity.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
setUnitOfMeasure(PackedQuantity.UnitOfMeasureEnum unitOfMeasure)
void
setUnitSize(java.lang.Integer unitSize)
java.lang.String
toString()
PackedQuantity
unitOfMeasure(PackedQuantity.UnitOfMeasureEnum unitOfMeasure)
PackedQuantity
unitSize(java.lang.Integer unitSize)
-
-
-
Method Detail
-
amount
public PackedQuantity 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 PackedQuantity unitOfMeasure(PackedQuantity.UnitOfMeasureEnum unitOfMeasure)
-
getUnitOfMeasure
public PackedQuantity.UnitOfMeasureEnum getUnitOfMeasure()
Unit of measure for the shipped quantity.- Returns:
- unitOfMeasure
-
setUnitOfMeasure
public void setUnitOfMeasure(PackedQuantity.UnitOfMeasureEnum unitOfMeasure)
-
unitSize
public PackedQuantity 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)
-
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
-
-