public void setRules(java.util.Map<String, Rule> rules) {
        this.rules = rules;
    }
<p>
Validation rules that are attached to the attribute definition.
</p>

@param rules
       Validation rules that are attached to the attribute definition.
aws-java-sdk-clouddirectory/src/main/java/com/amazonaws/services/clouddirectory/model/TypedLinkAttributeDefinition.java