public DescribeTestSetResult withModality(TestSetModality modality) {
        this.modality = modality.toString();
        return this;
    }
<p>
Indicates whether the test set is audio or text data.
</p>

@param modality
       Indicates whether the test set is audio or text data.
@return Returns a reference to this object so that method calls can be chained together.
@see TestSetModality
aws-java-sdk-lexmodelsv2/src/main/java/com/amazonaws/services/lexmodelsv2/model/DescribeTestSetResult.java