code: public CreateCloudFormationChangeSetRequest withResourceTypes(String... resourceTypes) {
          if (this.resourceTypes == null) {
              setResourceTypes(new java.util.ArrayList<String>(resourceTypes.length));
          }
          for (String ele : resourceTypes) {
              this.resourceTypes.add(ele);
          }
          return this;
      }
docs: <p>
  This property corresponds to the parameter of the same name for the <i>AWS CloudFormation <a
  href="https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">CreateChangeSet</a> </i>
  API.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setResourceTypes(java.util.Collection)} or {@link #withResourceTypes(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param resourceTypes
  This property corresponds to the parameter of the same name for the <i>AWS CloudFormation <a
  href="https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet"
  >CreateChangeSet</a> </i> API.
  @return Returns a reference to this object so that method calls can be chained together.