public TargetGroupSummary withType(String type) {
        setType(type);
        return this;
    }
<p>
The target group type.
</p>

@param type
       The target group type.
@return Returns a reference to this object so that method calls can be chained together.
@see TargetGroupType
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/TargetGroupSummary.java