@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailContentBlock extends Object implements Serializable, Cloneable, StructuredPojo
The content block to be evaluated by the guardrail.
| Constructor and Description |
|---|
GuardrailContentBlock() |
| Modifier and Type | Method and Description |
|---|---|
GuardrailContentBlock |
clone() |
boolean |
equals(Object obj) |
GuardrailTextBlock |
getText()
Text within content block to be evaluated by the guardrail.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setText(GuardrailTextBlock text)
Text within content block to be evaluated by the guardrail.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailContentBlock |
withText(GuardrailTextBlock text)
Text within content block to be evaluated by the guardrail.
|
public void setText(GuardrailTextBlock text)
Text within content block to be evaluated by the guardrail.
text - Text within content block to be evaluated by the guardrail.public GuardrailTextBlock getText()
Text within content block to be evaluated by the guardrail.
public GuardrailContentBlock withText(GuardrailTextBlock text)
Text within content block to be evaluated by the guardrail.
text - Text within content block to be evaluated by the guardrail.public String toString()
toString in class ObjectObject.toString()public GuardrailContentBlock clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.