public SyntaxToken withPartOfSpeech(PartOfSpeechTag partOfSpeech) {
        setPartOfSpeech(partOfSpeech);
        return this;
    }
<p>
Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was
correctly identified. For more information, see <a
href="https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html">Syntax</a> in the Comprehend Developer
Guide.
</p>

@param partOfSpeech
       Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of
       speech was correctly identified. For more information, see <a
       href="https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html">Syntax</a> in the Comprehend
       Developer Guide.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/SyntaxToken.java