public ClarifyInferenceConfig withFeatureTypes(String... featureTypes) {
        if (this.featureTypes == null) {
            setFeatureTypes(new java.util.ArrayList<String>(featureTypes.length));
        }
        for (String ele : featureTypes) {
            this.featureTypes.add(ele);
        }
        return this;
    }
<p>
A list of data types of the features (optional). Applicable only to NLP explainability. If provided,
<code>FeatureTypes</code> must have at least one <code>'text'</code> string (for example, <code>['text']</code>).
If <code>FeatureTypes</code> is not provided, the explainer infers the feature types based on the baseline data.
The feature types are included in the endpoint response payload. For additional information see the <a href=
"https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-invoke-endpoint.html#clarify-online-explainability-response"
>response</a> section under <b>Invoke the endpoint</b> in the Developer Guide for more information.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFeatureTypes(java.util.Collection)} or {@link #withFeatureTypes(java.util.Collection)} if you want to
override the existing values.
</p>

@param featureTypes
       A list of data types of the features (optional). Applicable only to NLP explainability. If provided,
       <code>FeatureTypes</code> must have at least one <code>'text'</code> string (for example,
       <code>['text']</code>). If <code>FeatureTypes</code> is not provided, the explainer infers the feature
       types based on the baseline data. The feature types are included in the endpoint response payload. For
       additional information see the <a href=
       "https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-invoke-endpoint.html#clarify-online-explainability-response"
       >response</a> section under <b>Invoke the endpoint</b> in the Developer Guide for more information.
@return Returns a reference to this object so that method calls can be chained together.
@see ClarifyFeatureType
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ClarifyInferenceConfig.java