@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Rule extends Object implements Serializable, Cloneable, StructuredPojo
An object containing RuleName, and MatchingKeys.
| Constructor and Description |
|---|
Rule() |
| Modifier and Type | Method and Description |
|---|---|
Rule |
clone() |
boolean |
equals(Object obj) |
List<String> |
getMatchingKeys()
A list of
MatchingKeys. |
String |
getRuleName()
A name for the matching rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMatchingKeys(Collection<String> matchingKeys)
A list of
MatchingKeys. |
void |
setRuleName(String ruleName)
A name for the matching rule.
|
String |
toString()
Returns a string representation of this object.
|
Rule |
withMatchingKeys(Collection<String> matchingKeys)
A list of
MatchingKeys. |
Rule |
withMatchingKeys(String... matchingKeys)
A list of
MatchingKeys. |
Rule |
withRuleName(String ruleName)
A name for the matching rule.
|
public List<String> getMatchingKeys()
A list of MatchingKeys. The MatchingKeys must have been defined in the
SchemaMapping. Two records are considered to match according to this rule if all of the
MatchingKeys match.
MatchingKeys. The MatchingKeys must have been defined in the
SchemaMapping. Two records are considered to match according to this rule if all of the
MatchingKeys match.public void setMatchingKeys(Collection<String> matchingKeys)
A list of MatchingKeys. The MatchingKeys must have been defined in the
SchemaMapping. Two records are considered to match according to this rule if all of the
MatchingKeys match.
matchingKeys - A list of MatchingKeys. The MatchingKeys must have been defined in the
SchemaMapping. Two records are considered to match according to this rule if all of the
MatchingKeys match.public Rule withMatchingKeys(String... matchingKeys)
A list of MatchingKeys. The MatchingKeys must have been defined in the
SchemaMapping. Two records are considered to match according to this rule if all of the
MatchingKeys match.
NOTE: This method appends the values to the existing list (if any). Use
setMatchingKeys(java.util.Collection) or withMatchingKeys(java.util.Collection) if you want to
override the existing values.
matchingKeys - A list of MatchingKeys. The MatchingKeys must have been defined in the
SchemaMapping. Two records are considered to match according to this rule if all of the
MatchingKeys match.public Rule withMatchingKeys(Collection<String> matchingKeys)
A list of MatchingKeys. The MatchingKeys must have been defined in the
SchemaMapping. Two records are considered to match according to this rule if all of the
MatchingKeys match.
matchingKeys - A list of MatchingKeys. The MatchingKeys must have been defined in the
SchemaMapping. Two records are considered to match according to this rule if all of the
MatchingKeys match.public void setRuleName(String ruleName)
A name for the matching rule.
ruleName - A name for the matching rule.public String getRuleName()
A name for the matching rule.
public Rule withRuleName(String ruleName)
A name for the matching rule.
ruleName - A name for the matching rule.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.