@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailConverseContentBlock extends Object implements Serializable, Cloneable, StructuredPojo
A content block for selective guarding with the Converse or ConverseStream API operations.
| Constructor and Description |
|---|
GuardrailConverseContentBlock() |
| Modifier and Type | Method and Description |
|---|---|
GuardrailConverseContentBlock |
clone() |
boolean |
equals(Object obj) |
GuardrailConverseTextBlock |
getText()
The text to guard.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setText(GuardrailConverseTextBlock text)
The text to guard.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailConverseContentBlock |
withText(GuardrailConverseTextBlock text)
The text to guard.
|
public void setText(GuardrailConverseTextBlock text)
The text to guard.
text - The text to guard.public GuardrailConverseTextBlock getText()
The text to guard.
public GuardrailConverseContentBlock withText(GuardrailConverseTextBlock text)
The text to guard.
text - The text to guard.public String toString()
toString in class ObjectObject.toString()public GuardrailConverseContentBlock clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.