@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailWordPolicyConfig extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about the word policy to configured for the guardrail.
Constructor and Description |
---|
GuardrailWordPolicyConfig() |
Modifier and Type | Method and Description |
---|---|
GuardrailWordPolicyConfig |
clone() |
boolean |
equals(Object obj) |
List<GuardrailManagedWordsConfig> |
getManagedWordListsConfig()
A list of managed words to configure for the guardrail.
|
List<GuardrailWordConfig> |
getWordsConfig()
A list of words to configure for the guardrail.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setManagedWordListsConfig(Collection<GuardrailManagedWordsConfig> managedWordListsConfig)
A list of managed words to configure for the guardrail.
|
void |
setWordsConfig(Collection<GuardrailWordConfig> wordsConfig)
A list of words to configure for the guardrail.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailWordPolicyConfig |
withManagedWordListsConfig(Collection<GuardrailManagedWordsConfig> managedWordListsConfig)
A list of managed words to configure for the guardrail.
|
GuardrailWordPolicyConfig |
withManagedWordListsConfig(GuardrailManagedWordsConfig... managedWordListsConfig)
A list of managed words to configure for the guardrail.
|
GuardrailWordPolicyConfig |
withWordsConfig(Collection<GuardrailWordConfig> wordsConfig)
A list of words to configure for the guardrail.
|
GuardrailWordPolicyConfig |
withWordsConfig(GuardrailWordConfig... wordsConfig)
A list of words to configure for the guardrail.
|
public List<GuardrailWordConfig> getWordsConfig()
A list of words to configure for the guardrail.
public void setWordsConfig(Collection<GuardrailWordConfig> wordsConfig)
A list of words to configure for the guardrail.
wordsConfig
- A list of words to configure for the guardrail.public GuardrailWordPolicyConfig withWordsConfig(GuardrailWordConfig... wordsConfig)
A list of words to configure for the guardrail.
NOTE: This method appends the values to the existing list (if any). Use
setWordsConfig(java.util.Collection)
or withWordsConfig(java.util.Collection)
if you want to
override the existing values.
wordsConfig
- A list of words to configure for the guardrail.public GuardrailWordPolicyConfig withWordsConfig(Collection<GuardrailWordConfig> wordsConfig)
A list of words to configure for the guardrail.
wordsConfig
- A list of words to configure for the guardrail.public List<GuardrailManagedWordsConfig> getManagedWordListsConfig()
A list of managed words to configure for the guardrail.
public void setManagedWordListsConfig(Collection<GuardrailManagedWordsConfig> managedWordListsConfig)
A list of managed words to configure for the guardrail.
managedWordListsConfig
- A list of managed words to configure for the guardrail.public GuardrailWordPolicyConfig withManagedWordListsConfig(GuardrailManagedWordsConfig... managedWordListsConfig)
A list of managed words to configure for the guardrail.
NOTE: This method appends the values to the existing list (if any). Use
setManagedWordListsConfig(java.util.Collection)
or
withManagedWordListsConfig(java.util.Collection)
if you want to override the existing values.
managedWordListsConfig
- A list of managed words to configure for the guardrail.public GuardrailWordPolicyConfig withManagedWordListsConfig(Collection<GuardrailManagedWordsConfig> managedWordListsConfig)
A list of managed words to configure for the guardrail.
managedWordListsConfig
- A list of managed words to configure for the guardrail.public String toString()
toString
in class Object
Object.toString()
public GuardrailWordPolicyConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.