public void setResourceTypes(java.util.Collection<String> resourceTypes) {
        if (resourceTypes == null) {
            this.resourceTypes = null;
            return;
        }

        this.resourceTypes = new java.util.ArrayList<String>(resourceTypes);
    }
<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.
@see ResourceType
aws-java-sdk-oam/src/main/java/com/amazonaws/services/oam/model/UpdateLinkRequest.java