public ListPermissionsResult withPermissions(java.util.Collection<ResourceSharePermissionSummary> permissions) {
        setPermissions(permissions);
        return this;
    }
<p>
An array of objects with information about the permissions.
</p>

@param permissions
       An array of objects with information about the permissions.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/model/ListPermissionsResult.java