public CreateLinkRequest withResourceTypes(java.util.Collection<String> resourceTypes) {
        setResourceTypes(resourceTypes);
        return this;
    }
<p>
An array of strings that define which types of data that the source account shares with the monitoring account.
</p>

@param resourceTypes
       An array of strings that define which types of data that the source account shares with the monitoring
       account.
@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/CreateLinkRequest.java