Class IntegerWithUnits
- java.lang.Object
-
- software.amazon.spapi.models.apluscontent.v2020_11_01.IntegerWithUnits
-
public class IntegerWithUnits extends java.lang.Object
A whole number dimension and its unit of measurement. For example, this can represent 100 pixels.
-
-
Constructor Summary
Constructors Constructor Description IntegerWithUnits()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getUnits()
The unit of measurement.java.lang.Integer
getValue()
The dimension value.int
hashCode()
void
setUnits(java.lang.String units)
void
setValue(java.lang.Integer value)
java.lang.String
toString()
IntegerWithUnits
units(java.lang.String units)
IntegerWithUnits
value(java.lang.Integer value)
-
-
-
Method Detail
-
value
public IntegerWithUnits value(java.lang.Integer value)
-
getValue
public java.lang.Integer getValue()
The dimension value.- Returns:
- value
-
setValue
public void setValue(java.lang.Integer value)
-
units
public IntegerWithUnits units(java.lang.String units)
-
getUnits
public java.lang.String getUnits()
The unit of measurement.- Returns:
- units
-
setUnits
public void setUnits(java.lang.String units)
-
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
-
-