Class Box


  • public class Box
    extends java.lang.Object
    Contains information about a box that is used in the inbound plan. The box is a container that holds multiple items.
    • Constructor Detail

      • Box

        public Box()
    • Method Detail

      • boxId

        public Box boxId​(java.lang.String boxId)
      • getBoxId

        public java.lang.String getBoxId()
        The ID provided by Amazon that identifies a given box. This ID is comprised of the external shipment ID (which is generated after transportation has been confirmed) and the index of the box.
        Returns:
        boxId
      • setBoxId

        public void setBoxId​(java.lang.String boxId)
      • getContentInformationSource

        public BoxContentInformationSource getContentInformationSource()
        Get contentInformationSource
        Returns:
        contentInformationSource
      • destinationRegion

        public Box destinationRegion​(Region destinationRegion)
      • getDestinationRegion

        public Region getDestinationRegion()
        Get destinationRegion
        Returns:
        destinationRegion
      • setDestinationRegion

        public void setDestinationRegion​(Region destinationRegion)
      • getDimensions

        public Dimensions getDimensions()
        Get dimensions
        Returns:
        dimensions
      • setDimensions

        public void setDimensions​(Dimensions dimensions)
      • externalContainerIdentifier

        public Box externalContainerIdentifier​(java.lang.String externalContainerIdentifier)
      • getExternalContainerIdentifier

        public java.lang.String getExternalContainerIdentifier()
        The external identifier for this container / box.
        Returns:
        externalContainerIdentifier
      • setExternalContainerIdentifier

        public void setExternalContainerIdentifier​(java.lang.String externalContainerIdentifier)
      • externalContainerIdentifierType

        public Box externalContainerIdentifierType​(java.lang.String externalContainerIdentifierType)
      • getExternalContainerIdentifierType

        public java.lang.String getExternalContainerIdentifierType()
        Type of the external identifier used. Can be: `AMAZON`, `SSCC`.
        Returns:
        externalContainerIdentifierType
      • setExternalContainerIdentifierType

        public void setExternalContainerIdentifierType​(java.lang.String externalContainerIdentifierType)
      • items

        public Box items​(java.util.List<Item> items)
      • addItemsItem

        public Box addItemsItem​(Item itemsItem)
      • getItems

        public java.util.List<Item> getItems()
        Items contained within the box.
        Returns:
        items
      • setItems

        public void setItems​(java.util.List<Item> items)
      • packageId

        public Box packageId​(java.lang.String packageId)
      • getPackageId

        public java.lang.String getPackageId()
        Primary key to uniquely identify a Package (Box or Pallet).
        Returns:
        packageId
      • setPackageId

        public void setPackageId​(java.lang.String packageId)
      • quantity

        public Box quantity​(java.lang.Integer quantity)
      • getQuantity

        public java.lang.Integer getQuantity()
        The number of containers where all other properties like weight or dimensions are identical. minimum: 1 maximum: 10000
        Returns:
        quantity
      • setQuantity

        public void setQuantity​(java.lang.Integer quantity)
      • templateName

        public Box templateName​(java.lang.String templateName)
      • getTemplateName

        public java.lang.String getTemplateName()
        Template name of the box.
        Returns:
        templateName
      • setTemplateName

        public void setTemplateName​(java.lang.String templateName)
      • weight

        public Box weight​(Weight weight)
      • getWeight

        public Weight getWeight()
        Get weight
        Returns:
        weight
      • setWeight

        public void setWeight​(Weight weight)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object