Set the resource name before building the operations.