public InclusionProtectionFilters withResourceTypes(ProtectedResourceType... resourceTypes) {
        java.util.ArrayList<String> resourceTypesCopy = new java.util.ArrayList<String>(resourceTypes.length);
        for (ProtectedResourceType value : resourceTypes) {
            resourceTypesCopy.add(value.toString());
        }
        if (getResourceTypes() == null) {
            setResourceTypes(resourceTypesCopy);
        } else {
            getResourceTypes().addAll(resourceTypesCopy);
        }
        return this;
    }
<p>
The type of protected resource whose protections you want to retrieve.
</p>

@param resourceTypes
       The type of protected resource whose protections you want to retrieve.
@return Returns a reference to this object so that method calls can be chained together.
@see ProtectedResourceType
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/InclusionProtectionFilters.java