public ElasticsearchDestinationConfiguration withTypeName(String typeName) {
        setTypeName(typeName);
        return this;
    }
<p>
The Elasticsearch type name. For Elasticsearch 6.x, there can be only one type per index. If you try to specify a
new type for an existing index that already has another type, Firehose returns an error during run time.
</p>
<p>
For Elasticsearch 7.x, don't specify a <code>TypeName</code>.
</p>

@param typeName
       The Elasticsearch type name. For Elasticsearch 6.x, there can be only one type per index. If you try to
       specify a new type for an existing index that already has another type, Firehose returns an error during
       run time.</p>
       <p>
       For Elasticsearch 7.x, don't specify a <code>TypeName</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/ElasticsearchDestinationConfiguration.java