Class DocumentSize
- java.lang.Object
-
- software.amazon.spapi.models.shipping.v2.DocumentSize
-
public class DocumentSize extends java.lang.Object
The size dimensions of the label.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DocumentSize.UnitEnum
The unit of measurement.
-
Constructor Summary
Constructors Constructor Description DocumentSize()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.math.BigDecimal
getLength()
The length of the document measured in the units specified.DocumentSize.UnitEnum
getUnit()
The unit of measurement.java.math.BigDecimal
getWidth()
The width of the document measured in the units specified.int
hashCode()
DocumentSize
length(java.math.BigDecimal length)
void
setLength(java.math.BigDecimal length)
void
setUnit(DocumentSize.UnitEnum unit)
void
setWidth(java.math.BigDecimal width)
java.lang.String
toString()
DocumentSize
unit(DocumentSize.UnitEnum unit)
DocumentSize
width(java.math.BigDecimal width)
-
-
-
Method Detail
-
width
public DocumentSize width(java.math.BigDecimal width)
-
getWidth
public java.math.BigDecimal getWidth()
The width of the document measured in the units specified.- Returns:
- width
-
setWidth
public void setWidth(java.math.BigDecimal width)
-
length
public DocumentSize length(java.math.BigDecimal length)
-
getLength
public java.math.BigDecimal getLength()
The length of the document measured in the units specified.- Returns:
- length
-
setLength
public void setLength(java.math.BigDecimal length)
-
unit
public DocumentSize unit(DocumentSize.UnitEnum unit)
-
getUnit
public DocumentSize.UnitEnum getUnit()
The unit of measurement.- Returns:
- unit
-
setUnit
public void setUnit(DocumentSize.UnitEnum unit)
-
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
-
-