Class TextItem
- java.lang.Object
-
- software.amazon.spapi.models.apluscontent.v2020_11_01.TextItem
-
public class TextItem extends java.lang.Object
Rich positional text that is usually presented as a collection of bullet points.
-
-
Constructor Summary
Constructors Constructor Description TextItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Integer
getPosition()
The rank or index of this text item within the collection.TextComponent
getText()
Get textint
hashCode()
TextItem
position(java.lang.Integer position)
void
setPosition(java.lang.Integer position)
void
setText(TextComponent text)
TextItem
text(TextComponent text)
java.lang.String
toString()
-
-
-
Method Detail
-
position
public TextItem position(java.lang.Integer position)
-
getPosition
public java.lang.Integer getPosition()
The rank or index of this text item within the collection. Different items cannot occupy the same position within a single collection. minimum: 1 maximum: 100- Returns:
- position
-
setPosition
public void setPosition(java.lang.Integer position)
-
text
public TextItem text(TextComponent text)
-
getText
public TextComponent getText()
Get text- Returns:
- text
-
setText
public void setText(TextComponent text)
-
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
-
-