@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeywordMatchConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains the settings for a keyword match task.
Constructor and Description |
---|
KeywordMatchConfiguration() |
Modifier and Type | Method and Description |
---|---|
KeywordMatchConfiguration |
clone() |
boolean |
equals(Object obj) |
List<String> |
getKeywords()
The keywords or phrases that you want to match.
|
Boolean |
getNegate()
Matches keywords or phrases on their presence or absence.
|
String |
getRuleName()
The name of the keyword match rule.
|
int |
hashCode() |
Boolean |
isNegate()
Matches keywords or phrases on their presence or absence.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKeywords(Collection<String> keywords)
The keywords or phrases that you want to match.
|
void |
setNegate(Boolean negate)
Matches keywords or phrases on their presence or absence.
|
void |
setRuleName(String ruleName)
The name of the keyword match rule.
|
String |
toString()
Returns a string representation of this object.
|
KeywordMatchConfiguration |
withKeywords(Collection<String> keywords)
The keywords or phrases that you want to match.
|
KeywordMatchConfiguration |
withKeywords(String... keywords)
The keywords or phrases that you want to match.
|
KeywordMatchConfiguration |
withNegate(Boolean negate)
Matches keywords or phrases on their presence or absence.
|
KeywordMatchConfiguration |
withRuleName(String ruleName)
The name of the keyword match rule.
|
public void setRuleName(String ruleName)
The name of the keyword match rule.
ruleName
- The name of the keyword match rule.public String getRuleName()
The name of the keyword match rule.
public KeywordMatchConfiguration withRuleName(String ruleName)
The name of the keyword match rule.
ruleName
- The name of the keyword match rule.public List<String> getKeywords()
The keywords or phrases that you want to match.
public void setKeywords(Collection<String> keywords)
The keywords or phrases that you want to match.
keywords
- The keywords or phrases that you want to match.public KeywordMatchConfiguration withKeywords(String... keywords)
The keywords or phrases that you want to match.
NOTE: This method appends the values to the existing list (if any). Use
setKeywords(java.util.Collection)
or withKeywords(java.util.Collection)
if you want to override
the existing values.
keywords
- The keywords or phrases that you want to match.public KeywordMatchConfiguration withKeywords(Collection<String> keywords)
The keywords or phrases that you want to match.
keywords
- The keywords or phrases that you want to match.public void setNegate(Boolean negate)
Matches keywords or phrases on their presence or absence. If set to TRUE
, the rule matches when all
the specified keywords or phrases are absent. Default: FALSE
.
negate
- Matches keywords or phrases on their presence or absence. If set to TRUE
, the rule matches
when all the specified keywords or phrases are absent. Default: FALSE
.public Boolean getNegate()
Matches keywords or phrases on their presence or absence. If set to TRUE
, the rule matches when all
the specified keywords or phrases are absent. Default: FALSE
.
TRUE
, the rule matches
when all the specified keywords or phrases are absent. Default: FALSE
.public KeywordMatchConfiguration withNegate(Boolean negate)
Matches keywords or phrases on their presence or absence. If set to TRUE
, the rule matches when all
the specified keywords or phrases are absent. Default: FALSE
.
negate
- Matches keywords or phrases on their presence or absence. If set to TRUE
, the rule matches
when all the specified keywords or phrases are absent. Default: FALSE
.public Boolean isNegate()
Matches keywords or phrases on their presence or absence. If set to TRUE
, the rule matches when all
the specified keywords or phrases are absent. Default: FALSE
.
TRUE
, the rule matches
when all the specified keywords or phrases are absent. Default: FALSE
.public String toString()
toString
in class Object
Object.toString()
public KeywordMatchConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.