@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailConverseTextBlock extends Object implements Serializable, Cloneable, StructuredPojo
A text block that contains text that you want to assess with a guardrail. For more information, see GuardrailConverseContentBlock.
| Constructor and Description |
|---|
GuardrailConverseTextBlock() |
| Modifier and Type | Method and Description |
|---|---|
GuardrailConverseTextBlock |
clone() |
boolean |
equals(Object obj) |
String |
getText()
The text that you want to guard.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setText(String text)
The text that you want to guard.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailConverseTextBlock |
withText(String text)
The text that you want to guard.
|
public void setText(String text)
The text that you want to guard.
text - The text that you want to guard.public String getText()
The text that you want to guard.
public GuardrailConverseTextBlock withText(String text)
The text that you want to guard.
text - The text that you want to guard.public String toString()
toString in class ObjectObject.toString()public GuardrailConverseTextBlock clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2024. All rights reserved.