code: public TypedLinkAttributeDefinition withRules(java.util.Map<String, Rule> rules) {
          setRules(rules);
          return this;
      }
docs: <p>
  Validation rules that are attached to the attribute definition.
  </p>
  
  @param rules
  Validation rules that are attached to the attribute definition.
  @return Returns a reference to this object so that method calls can be chained together.