public CreateComponentRequest withResourceList(String... resourceList) {
        if (this.resourceList == null) {
            setResourceList(new java.util.ArrayList<String>(resourceList.length));
        }
        for (String ele : resourceList) {
            this.resourceList.add(ele);
        }
        return this;
    }
<p>
The list of resource ARNs that belong to the component.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResourceList(java.util.Collection)} or {@link #withResourceList(java.util.Collection)} if you want to
override the existing values.
</p>

@param resourceList
       The list of resource ARNs that belong to the component.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-applicationinsights/src/main/java/com/amazonaws/services/applicationinsights/model/CreateComponentRequest.java