public void setType(String type) {
        this.type = type;
    }
<p>
The type of the entity. Amazon Comprehend supports a variety of <a href=
"https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html#how-targeted-sentiment-entities"
>entity types</a>.
</p>

@param type
       The type of the entity. Amazon Comprehend supports a variety of <a href=
       "https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html#how-targeted-sentiment-entities"
       >entity types</a>.
@see TargetedSentimentEntityType
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/TargetedSentimentMention.java