public UpdateLinkRequest withResourceTypes(ResourceType... resourceTypes) {
        java.util.ArrayList<String> resourceTypesCopy = new java.util.ArrayList<String>(resourceTypes.length);
        for (ResourceType value : resourceTypes) {
            resourceTypesCopy.add(value.toString());
        }
        if (getResourceTypes() == null) {
            setResourceTypes(resourceTypesCopy);
        } else {
            getResourceTypes().addAll(resourceTypesCopy);
        }
        return this;
    }
<p>
An array of strings that define which types of data that the source account will send to the monitoring account.
</p>
<p>
Your input here replaces the current set of data types that are shared.
</p>

@param resourceTypes
       An array of strings that define which types of data that the source account will send to the monitoring
       account.</p>
       <p>
       Your input here replaces the current set of data types that are shared.
@return Returns a reference to this object so that method calls can be chained together.
@see ResourceType
aws-java-sdk-oam/src/main/java/com/amazonaws/services/oam/model/UpdateLinkRequest.java