public DescribeBundleAssociationsRequest withAssociatedResourceTypes(String... associatedResourceTypes) {
        if (this.associatedResourceTypes == null) {
            setAssociatedResourceTypes(new com.amazonaws.internal.SdkInternalList<String>(associatedResourceTypes.length));
        }
        for (String ele : associatedResourceTypes) {
            this.associatedResourceTypes.add(ele);
        }
        return this;
    }
<p>
The resource types of the associated resource.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAssociatedResourceTypes(java.util.Collection)} or
{@link #withAssociatedResourceTypes(java.util.Collection)} if you want to override the existing values.
</p>

@param associatedResourceTypes
       The resource types of the associated resource.
@return Returns a reference to this object so that method calls can be chained together.
@see BundleAssociatedResourceType
aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/DescribeBundleAssociationsRequest.java