code: public void setResourceTypes(java.util.Collection<String> resourceTypes) {
          if (resourceTypes == null) {
              this.resourceTypes = null;
              return;
          }
  
          this.resourceTypes = new com.amazonaws.internal.SdkInternalList<String>(resourceTypes);
      }
docs: <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>.