public SubResourceSummary withType(String type) {
        setType(type);
        return this;
    }
<p>
The <code>SubResource</code> type.
</p>

@param type
       The <code>SubResource</code> type.
@return Returns a reference to this object so that method calls can be chained together.
@see SubResourceType
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/SubResourceSummary.java