public FindingSummaryV2 withResource(String resource) {
        setResource(resource);
        return this;
    }
<p>
The resource that the external principal has access to.
</p>

@param resource
       The resource that the external principal has access to.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/FindingSummaryV2.java