public ListLakeFormationOptInsRequest withResource(Resource resource) {
        setResource(resource);
        return this;
    }
<p>
A structure for the resource.
</p>

@param resource
       A structure for the resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lakeformation/src/main/java/com/amazonaws/services/lakeformation/model/ListLakeFormationOptInsRequest.java