@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailCustomWord extends Object implements Serializable, Cloneable, StructuredPojo
A custom word configured in a guardrail.
| Constructor and Description |
|---|
GuardrailCustomWord() |
| Modifier and Type | Method and Description |
|---|---|
GuardrailCustomWord |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The action for the custom word.
|
String |
getMatch()
The match for the custom word.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAction(String action)
The action for the custom word.
|
void |
setMatch(String match)
The match for the custom word.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailCustomWord |
withAction(GuardrailWordPolicyAction action)
The action for the custom word.
|
GuardrailCustomWord |
withAction(String action)
The action for the custom word.
|
GuardrailCustomWord |
withMatch(String match)
The match for the custom word.
|
public void setMatch(String match)
The match for the custom word.
match - The match for the custom word.public String getMatch()
The match for the custom word.
public GuardrailCustomWord withMatch(String match)
The match for the custom word.
match - The match for the custom word.public void setAction(String action)
The action for the custom word.
action - The action for the custom word.GuardrailWordPolicyActionpublic String getAction()
The action for the custom word.
GuardrailWordPolicyActionpublic GuardrailCustomWord withAction(String action)
The action for the custom word.
action - The action for the custom word.GuardrailWordPolicyActionpublic GuardrailCustomWord withAction(GuardrailWordPolicyAction action)
The action for the custom word.
action - The action for the custom word.GuardrailWordPolicyActionpublic String toString()
toString in class ObjectObject.toString()public GuardrailCustomWord clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.