@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailWordPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about the word policy configured for the guardrail.
| Constructor and Description |
|---|
GuardrailWordPolicy() |
| Modifier and Type | Method and Description |
|---|---|
GuardrailWordPolicy |
clone() |
boolean |
equals(Object obj) |
List<GuardrailManagedWords> |
getManagedWordLists()
A list of managed words configured for the guardrail.
|
List<GuardrailWord> |
getWords()
A list of words configured for the guardrail.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setManagedWordLists(Collection<GuardrailManagedWords> managedWordLists)
A list of managed words configured for the guardrail.
|
void |
setWords(Collection<GuardrailWord> words)
A list of words configured for the guardrail.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailWordPolicy |
withManagedWordLists(Collection<GuardrailManagedWords> managedWordLists)
A list of managed words configured for the guardrail.
|
GuardrailWordPolicy |
withManagedWordLists(GuardrailManagedWords... managedWordLists)
A list of managed words configured for the guardrail.
|
GuardrailWordPolicy |
withWords(Collection<GuardrailWord> words)
A list of words configured for the guardrail.
|
GuardrailWordPolicy |
withWords(GuardrailWord... words)
A list of words configured for the guardrail.
|
public List<GuardrailWord> getWords()
A list of words configured for the guardrail.
public void setWords(Collection<GuardrailWord> words)
A list of words configured for the guardrail.
words - A list of words configured for the guardrail.public GuardrailWordPolicy withWords(GuardrailWord... words)
A list of words configured for the guardrail.
NOTE: This method appends the values to the existing list (if any). Use
setWords(java.util.Collection) or withWords(java.util.Collection) if you want to override the
existing values.
words - A list of words configured for the guardrail.public GuardrailWordPolicy withWords(Collection<GuardrailWord> words)
A list of words configured for the guardrail.
words - A list of words configured for the guardrail.public List<GuardrailManagedWords> getManagedWordLists()
A list of managed words configured for the guardrail.
public void setManagedWordLists(Collection<GuardrailManagedWords> managedWordLists)
A list of managed words configured for the guardrail.
managedWordLists - A list of managed words configured for the guardrail.public GuardrailWordPolicy withManagedWordLists(GuardrailManagedWords... managedWordLists)
A list of managed words configured for the guardrail.
NOTE: This method appends the values to the existing list (if any). Use
setManagedWordLists(java.util.Collection) or withManagedWordLists(java.util.Collection) if you
want to override the existing values.
managedWordLists - A list of managed words configured for the guardrail.public GuardrailWordPolicy withManagedWordLists(Collection<GuardrailManagedWords> managedWordLists)
A list of managed words configured for the guardrail.
managedWordLists - A list of managed words configured for the guardrail.public String toString()
toString in class ObjectObject.toString()public GuardrailWordPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.