public GroupDefinition withType(String type) {
        setType(type);
        return this;
    }
<p>
The string that represents the type of group.
</p>

@param type
       The string that represents the type of group.
@return Returns a reference to this object so that method calls can be chained together.
@see GroupDefinitionType
aws-java-sdk-costexplorer/src/main/java/com/amazonaws/services/costexplorer/model/GroupDefinition.java