public HPOObjective withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of the metric. Valid values are <code>Maximize</code> and <code>Minimize</code>.
</p>

@param type
       The type of the metric. Valid values are <code>Maximize</code> and <code>Minimize</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-personalize/src/main/java/com/amazonaws/services/personalize/model/HPOObjective.java