@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TextResponsePart extends Object implements Serializable, Cloneable, StructuredPojo
Text response part
Constructor and Description |
---|
TextResponsePart() |
Modifier and Type | Method and Description |
---|---|
TextResponsePart |
clone() |
boolean |
equals(Object obj) |
Span |
getSpan() |
String |
getText()
Response part in text
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSpan(Span span) |
void |
setText(String text)
Response part in text
|
String |
toString()
Returns a string representation of this object.
|
TextResponsePart |
withSpan(Span span) |
TextResponsePart |
withText(String text)
Response part in text
|
public void setText(String text)
Response part in text
text
- Response part in textpublic String getText()
Response part in text
public TextResponsePart withText(String text)
Response part in text
text
- Response part in textpublic void setSpan(Span span)
span
- public Span getSpan()
public TextResponsePart withSpan(Span span)
span
- public String toString()
toString
in class Object
Object.toString()
public TextResponsePart clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.