@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailTextBlock extends Object implements Serializable, Cloneable, StructuredPojo
The text block to be evaluated by the guardrail.
| Constructor and Description |
|---|
GuardrailTextBlock() |
| Modifier and Type | Method and Description |
|---|---|
GuardrailTextBlock |
clone() |
boolean |
equals(Object obj) |
List<String> |
getQualifiers()
The qualifiers describing the text block.
|
String |
getText()
The input text details to be evaluated by the guardrail.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setQualifiers(Collection<String> qualifiers)
The qualifiers describing the text block.
|
void |
setText(String text)
The input text details to be evaluated by the guardrail.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailTextBlock |
withQualifiers(Collection<String> qualifiers)
The qualifiers describing the text block.
|
GuardrailTextBlock |
withQualifiers(GuardrailContentQualifier... qualifiers)
The qualifiers describing the text block.
|
GuardrailTextBlock |
withQualifiers(String... qualifiers)
The qualifiers describing the text block.
|
GuardrailTextBlock |
withText(String text)
The input text details to be evaluated by the guardrail.
|
public void setText(String text)
The input text details to be evaluated by the guardrail.
text - The input text details to be evaluated by the guardrail.public String getText()
The input text details to be evaluated by the guardrail.
public GuardrailTextBlock withText(String text)
The input text details to be evaluated by the guardrail.
text - The input text details to be evaluated by the guardrail.public List<String> getQualifiers()
The qualifiers describing the text block.
GuardrailContentQualifierpublic void setQualifiers(Collection<String> qualifiers)
The qualifiers describing the text block.
qualifiers - The qualifiers describing the text block.GuardrailContentQualifierpublic GuardrailTextBlock withQualifiers(String... qualifiers)
The qualifiers describing the text block.
NOTE: This method appends the values to the existing list (if any). Use
setQualifiers(java.util.Collection) or withQualifiers(java.util.Collection) if you want to
override the existing values.
qualifiers - The qualifiers describing the text block.GuardrailContentQualifierpublic GuardrailTextBlock withQualifiers(Collection<String> qualifiers)
The qualifiers describing the text block.
qualifiers - The qualifiers describing the text block.GuardrailContentQualifierpublic GuardrailTextBlock withQualifiers(GuardrailContentQualifier... qualifiers)
The qualifiers describing the text block.
qualifiers - The qualifiers describing the text block.GuardrailContentQualifierpublic String toString()
toString in class ObjectObject.toString()public GuardrailTextBlock clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.