public Resource withResourceRole(String resourceRole) {
        setResourceRole(resourceRole);
        return this;
    }
<p>
Identifies the role of the resource in the finding. A resource is either the actor or target of the finding
activity,
</p>

@param resourceRole
       Identifies the role of the resource in the finding. A resource is either the actor or target of the
       finding activity,
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/Resource.java