public RxNormEntity withAttributes(RxNormAttribute... attributes) {
        if (this.attributes == null) {
            setAttributes(new java.util.ArrayList<RxNormAttribute>(attributes.length));
        }
        for (RxNormAttribute ele : attributes) {
            this.attributes.add(ele);
        }
        return this;
    }
<p>
The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
<code>DOSAGE</code>, <code>DURATION</code>, <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>,
<code>ROUTE_OR_MODE</code>, and <code>STRENGTH</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAttributes(java.util.Collection)} or {@link #withAttributes(java.util.Collection)} if you want to
override the existing values.
</p>

@param attributes
       The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
       <code>DOSAGE</code>, <code>DURATION</code>, <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>,
       <code>ROUTE_OR_MODE</code>, and <code>STRENGTH</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-comprehendmedical/src/main/java/com/amazonaws/services/comprehendmedical/model/RxNormEntity.java