public GetTemplateSummaryResult withResourceTypes(java.util.Collection<String> resourceTypes) {
        setResourceTypes(resourceTypes);
        return this;
    }
<p>
A list of all the template resource types that are defined in the template, such as
<code>AWS::EC2::Instance</code>, <code>AWS::Dynamo::Table</code>, and <code>Custom::MyCustomInstance</code>.
</p>

@param resourceTypes
       A list of all the template resource types that are defined in the template, such as
       <code>AWS::EC2::Instance</code>, <code>AWS::Dynamo::Table</code>, and
       <code>Custom::MyCustomInstance</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/GetTemplateSummaryResult.java