public UpdateAccessPolicyRequest withAccessPolicyResource(Resource accessPolicyResource) {
        setAccessPolicyResource(accessPolicyResource);
        return this;
    }
<p>
The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.
</p>

@param accessPolicyResource
       The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a 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/UpdateAccessPolicyRequest.java