public Finding withResource(Resource resource) {
        setResource(resource);
        return this;
    }
<p>
The resource where Amazon CodeGuru Security detected a finding.
</p>

@param resource
       The resource where Amazon CodeGuru Security detected a finding.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codegurusecurity/src/main/java/com/amazonaws/services/codegurusecurity/model/Finding.java