public UnmappedAttribute withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of the unmapped attribute, could be one of the following values: "MEDICATION", "MEDICAL_CONDITION",
"ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or "PROTECTED_HEALTH_INFORMATION".
</p>

@param type
       The type of the unmapped attribute, could be one of the following values: "MEDICATION",
       "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or "PROTECTED_HEALTH_INFORMATION".
@return Returns a reference to this object so that method calls can be chained together.
@see EntityType
aws-java-sdk-comprehendmedical/src/main/java/com/amazonaws/services/comprehendmedical/model/UnmappedAttribute.java