public CreateTableOptimizerRequest withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of table optimizer. Currently, the only valid value is <code>compaction</code>.
</p>

@param type
       The type of table optimizer. Currently, the only valid value is <code>compaction</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see TableOptimizerType
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/CreateTableOptimizerRequest.java