public AccessPolicySummary withResource(Resource resource) {
        setResource(resource);
        return this;
    }
<p>
The IoT SiteWise Monitor resource (a portal or project).
</p>

@param resource
       The IoT SiteWise Monitor resource (a portal or project).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotsitewise/src/main/java/com/amazonaws/services/iotsitewise/model/AccessPolicySummary.java