public void setResource(String resource) {
        this.resource = resource;
    }
<p>
The resource that an external principal has access to. This is the resource associated with the access preview.
</p>

@param resource
       The resource that an external principal has access to. This is the resource associated with the access
       preview.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/AccessPreviewFinding.java